<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by carefree</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 26 Jun 2026 19:08:35 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>[WTS] Apple iPhone 5W charger</title>
            <link>http://forum.lowyat.net/topic/4743344</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; Apple 5W charger&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; The charger as in image&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;  RM60&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt; None&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; COD&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt; Kota Kemuning, Subang Jaya&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt; New Unused from iPhone box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/0JHXC5' target='_blank'&gt;&lt;img src='https://pictr.com/images/2019/02/24/0JHXC5.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt; &lt;br /&gt;Not using&lt;br /&gt;</description>
            <author>carefree</author>
            <category>Mobile Phones &amp;amp; Tablets Garage Sales</category>
            <pubDate>Sun, 24 Feb 2019 18:41:13 +0800</pubDate>
        </item>
        <item>
            <title>[WTS] Apple EarPods &amp;amp; Sennheiser CX 300</title>
            <link>http://forum.lowyat.net/topic/4743343</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; Original Apple Earpods with 3.5mm Headphone Jack,&lt;br /&gt;Sennheiser CX 300-II&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; Brand new in box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;  Apple Earpods: RM100, Sennheiser CX 300-II: RM280&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt; None&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; COD&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt; Kota Kemuning, Subang Jaya&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt; Brand new sealed in box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/0JHKGV' target='_blank'&gt;&lt;img src='https://pictr.com/images/2019/02/24/0JHKGV.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/0JHJ7v' target='_blank'&gt;&lt;img src='https://pictr.com/images/2019/02/24/0JHJ7v.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt; &lt;br /&gt;Not using, clearing stuff...&lt;br /&gt;</description>
            <author>carefree</author>
            <category>Music Players and Audio Accessories Garage Sales</category>
            <pubDate>Sun, 24 Feb 2019 18:34:30 +0800</pubDate>
        </item>
        <item>
            <title>[WTS] Brand new iPad 6th Gen</title>
            <link>http://forum.lowyat.net/topic/4743325</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; Brand New iPad 6th gen 128 GB Wi-Fi, Space Grey.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; Sealed box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;  SOLD&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt; 1yr Apple warranty&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; C.O.D&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt; Mon-Fri after 7pm: Kota kemuning.&lt;br /&gt;Sat &amp;amp; Sun: Kota Kemuning &amp;amp; Sunway &amp;amp; Subang Jaya&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt; Brand New Sealed in box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/0JHji9' target='_blank'&gt;&lt;img src='https://pictr.com/images/2019/02/24/0JHji9.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/0JHA3U' target='_blank'&gt;&lt;img src='https://pictr.com/images/2019/02/24/0JHA3U.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt; &lt;br /&gt;Gift... Already have an iPad at home</description>
            <author>carefree</author>
            <category>Tablets Garage Sales</category>
            <pubDate>Sun, 24 Feb 2019 18:04:20 +0800</pubDate>
        </item>
        <item>
            <title>[WTS] Klipsch The One Bluetooth Speaker</title>
            <link>http://forum.lowyat.net/topic/4410767</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt;&lt;br /&gt;Klipsch The One Bluetooth Speaker&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt;&lt;br /&gt;The speaker, box, charger.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;&lt;br /&gt;Rm1,000&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt;&lt;br /&gt;Bought speaker on 1st Apr 2017, 6 months warranty left&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt;&lt;br /&gt;COD&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location of seller:&lt;/b&gt;&lt;br /&gt;Kota Kemuning&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt;&lt;br /&gt;Pm Me&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Age of item:&lt;/b&gt;&lt;br /&gt;6 months&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt;&lt;br /&gt;Good as new, working perfectly - seldom use&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;Refer attachment&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt;&lt;br /&gt;Not using it&lt;br /&gt;&lt;br /&gt;Product webpage:&lt;br /&gt;&lt;a href='http://www.klipsch.com/products/the-one' target='_blank'&gt;Klipsch The One&lt;/a&gt;</description>
            <author>carefree</author>
            <category>Music Players and Audio Accessories Garage Sales</category>
            <pubDate>Sat, 16 Sep 2017 18:37:49 +0800</pubDate>
        </item>
        <item>
            <title>WTS: Used iPhone 5s Gold 16GB</title>
            <link>http://forum.lowyat.net/topic/3742950</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt;iPhone 5s Gold 16GB&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt;Whole box with original unused accessories&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt; -- Sold --&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt;None&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt;COD&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location of seller:&lt;/b&gt;Subang Jaya/USJ/PJ/Puchong&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt;PM &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Age of item:&lt;/b&gt;2 years plus&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt;Good condition, in protective case since day 1, &lt;br /&gt;and installed screen protector front and back of the phone.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;Will update tonight&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt;Upgrade to iPhone 6s</description>
            <author>carefree</author>
            <category>Mobile Phones Garage Sales</category>
            <pubDate>Wed, 14 Oct 2015 08:53:10 +0800</pubDate>
        </item>
        <item>
            <title>WTS: Used iPhone 6 Silver 64GB</title>
            <link>http://forum.lowyat.net/topic/3734203</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt;iPhone 6 Silver 64GB&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt;Whole set with box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;--- Sold ---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt;10 months SG telco warranty&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt;COD in JB/Sunway/Subang area. PM for arrangements as I am working in SG&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location of seller:&lt;/b&gt;Singapore&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt;PM me&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Age of item:&lt;/b&gt;2 months&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt;In case and screen protector since day one. No fault or anything, like new&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;[attachmentid=5075592][attachmentid=5075602]&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt;Upgrade to iPhone 6s&lt;br /&gt;&lt;br /&gt;Edit: Price updated&amp;#33;</description>
            <author>carefree</author>
            <category>Mobile Phones Garage Sales</category>
            <pubDate>Mon, 05 Oct 2015 14:20:51 +0800</pubDate>
        </item>
        <item>
            <title>WTS BNIB iPhone 6s</title>
            <link>http://forum.lowyat.net/topic/3726127</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; iPhone 6s Gold 128GB,&lt;br /&gt;iPhone 6s Rose Gold 128GB,&lt;br /&gt;iPhone 6s+ Gold 128GB,&lt;br /&gt;iPhone 6s+ Rose Gold 128GB&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; Brand New In Box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt; RM4,650 for 6s, RM5,150 for 6s+ &lt;b&gt;OR&lt;/b&gt; S&amp;#036;1,450 for 6s, S&amp;#036;1,630 for 6s+&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt; Apple Store Warranty&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; COD at KL/PJ/Subang this coming saturday (3rd Oct 2015).&lt;br /&gt;Deposit of RM300 required to avoid ffk.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location of seller:&lt;/b&gt; Subang/Sunway&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM Me&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Age of item:&lt;/b&gt; Brand New&lt;br /&gt;&lt;br /&gt;Edit: Price Reduced&amp;#33;&lt;br /&gt;&lt;br /&gt;[attachmentid=5022412]</description>
            <author>carefree</author>
            <category>Mobile Phones Garage Sales</category>
            <pubDate>Mon, 28 Sep 2015 15:05:59 +0800</pubDate>
        </item>
        <item>
            <title>[WTS/WTL]Kemuning Utama</title>
            <link>http://forum.lowyat.net/topic/2775445</link>
            <description>Freehold double Story house in Kemuning Utama (Indah Residence) for sale/let.&lt;br /&gt;&lt;br /&gt;Property Type:2-sty Terrace/Link House&lt;br /&gt;Tenure:Freehold &lt;br /&gt;Title Type:Individual&lt;br /&gt;Land Area:22x70 sq. ft.&lt;br /&gt;Built-Up:2,100 sq. ft.&lt;br /&gt;Asking PriceRM 750,000&lt;br /&gt;Bedrooms:4&lt;br /&gt;Bathrooms:4&lt;br /&gt;Unit type:Intermediate&lt;br /&gt;Occupancy:Owner Occupied&lt;br /&gt;Furnishing:Partly Furnished&lt;br /&gt;&lt;br /&gt;Contemporary and Modern Design, Indah Residence is a Gated and Guarded Housing Community which was developed by Paramount Corporation and located at kemuning utama&lt;br /&gt;&lt;br /&gt;1] Perimeter Fencing [by Phase - abt 100 house/phase] &lt;br /&gt;2] 24 hour guarded with card access system &lt;br /&gt;3] Park and walkway in the housing community &lt;br /&gt;4] Freehold &lt;br /&gt;5] Giant, Pizza Hut &amp;amp; KFC is just located within 5 minutes driving distance&lt;br /&gt;&lt;br /&gt;Kemuning Utama is superbly located in Shah Alam with multiple accessible via:&lt;br /&gt;&lt;br /&gt;• North Klang Valley Expressway (NKVE) &lt;br /&gt;• North–South Expressway Central Link (ELITE) &lt;br /&gt;• Shah Alam Expressway (KESAS) &lt;br /&gt;• Lebuhraya Kemuning-Shah Alam (LKSA) highway connects directly Federal Highway and the KESAS highway. &lt;br /&gt;&lt;br /&gt;It will also connect you via a 10-minutes drive to the Shah Alam city centre, a 15-minute drive to Klang, Subang Jaya, Petaling Jaya and a 35-minute drive to Kuala Lumpur.&lt;br /&gt;&lt;br /&gt;&lt;a href='http://imageshack.us/photo/my-images/835/img0462ry.jpg/' target='_blank'&gt;&lt;img src='http://imageshack.us/a/img835/9500/img0462ry.th.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;</description>
            <author>carefree</author>
            <category>Property For Sale</category>
            <pubDate>Mon, 15 Apr 2013 20:56:32 +0800</pubDate>
        </item>
        <item>
            <title>Cant connect to modem/router</title>
            <link>http://forum.lowyat.net/topic/1864830</link>
            <description>&lt;u&gt;Broadband provider&lt;/u&gt;&lt;br /&gt;ISP/package: UNIFI 5MB&lt;br /&gt;Location: Kemuning Utama&lt;br /&gt;Have you called your ISP&amp;#39;s helpline?: Nop&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Personal equipment&lt;/u&gt;&lt;br /&gt;Modem: D-Link DIR615&lt;br /&gt;Router: D-Link DIR615&lt;br /&gt;Firewall used: N/A&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Problem details&lt;/u&gt;&lt;br /&gt;First occurence of problem: Since UNIFI installation&lt;br /&gt;Problem frequency: Permanent&lt;br /&gt;Problem description: &lt;br /&gt;Since the day TM came to install UNIFI, I can connect the modem to laptop via cable and wifi.&lt;br /&gt;But when I plug the cable into my computer, my computer does not detect the modem, and so cant the modem detect my computer.&lt;br /&gt;The network icon in the system tray keeps on going through &amp;quot;Identifying&amp;quot; -&amp;gt; &amp;quot;Not connected&amp;quot;.&lt;br /&gt;But when I use another router to bridge between the D-Link and my computer, it works, but I do not want one more extra equipment.&lt;br /&gt;So I figured its the OS corrupted, and formatted the PC, no luck.&lt;br /&gt;&lt;br /&gt;So I set my computer to use static IP address, and set the D-Link to reserve that IP for my computer... still no luck. &lt;br /&gt;Anyone have this kind of problem before?</description>
            <author>carefree</author>
            <category>Networks and Broadband</category>
            <pubDate>Thu, 05 May 2011 14:18:28 +0800</pubDate>
        </item>
        <item>
            <title>WTA Computer Spec</title>
            <link>http://forum.lowyat.net/topic/1233493</link>
            <description>Hi all, would like your help on deciding the spec for a computer i am about to purchase. Below is my Configuration for it.&lt;br /&gt;&lt;br /&gt;DUAL CORE E5300 2.6GHz&lt;br /&gt;4GB KINGSTON PC 800 D2 (2GB x 2)&lt;br /&gt;ASUS P5QPL-AM&lt;br /&gt;COOLER MASTER ELITE SERIES + 460W&lt;br /&gt;WESTERN D. 500GB&lt;br /&gt;LG INT DVDRW&lt;br /&gt;ASUS EN9400GT&lt;br /&gt;&lt;br /&gt;Getting it as a gift and normally the usage will be lite internet surfing, Yahoo&amp;#33; games and like...&lt;br /&gt;The above spec come in to RM 1,454. My only concern is on the casing and HDD...&lt;br /&gt;&lt;br /&gt;Hope got comments.... thx &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>carefree</author>
            <category>Price &amp;amp; Dealers Guide</category>
            <pubDate>Fri, 20 Nov 2009 09:05:14 +0800</pubDate>
        </item>
        <item>
            <title>Myvi Driver seat height adjustment</title>
            <link>http://forum.lowyat.net/topic/615444</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;   Was wondering if Myvi cars can adjust the height of its driver seat or not?&lt;br /&gt;If I remember correctly, I was told by the salesman that Myvi seat height can be adjusted...</description>
            <author>carefree</author>
            <category>The Fast &amp;amp; The Furious</category>
            <pubDate>Sat, 19 Jan 2008 23:32:48 +0800</pubDate>
        </item>
        <item>
            <title>Car Window Tinting</title>
            <link>http://forum.lowyat.net/topic/612748</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;    Would like to hear from you guys if you have heard of armocoat?&lt;br /&gt;Coz my agent recommends me this brand of tint coz it reinforces the window&lt;br /&gt;and people can hardly break the window after applying it.&lt;br /&gt;&lt;br /&gt;Problem is, it&amp;#39;ll cost me MYR 1,150.00... &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>carefree</author>
            <category>The Fast &amp;amp; The Furious</category>
            <pubDate>Tue, 15 Jan 2008 23:03:34 +0800</pubDate>
        </item>
        <item>
            <title>Trying to create a String class</title>
            <link>http://forum.lowyat.net/topic/584788</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;   Was trying to create a String class for fun... But a problem with a function in it. The error was : &lt;br /&gt;&lt;br /&gt;                  error C2664: &amp;#39;strcmp&amp;#39; : cannot convert parameter 1 from &amp;#39;String&amp;#39; to &amp;#39;const char *&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code for that particular function : &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;bool String&amp;#58;&amp;#58;strcmp&amp;#40; const String &amp;amp;left, const String &amp;amp;right &amp;#41; const&lt;br /&gt;{&lt;br /&gt;	if&amp;#40; left.length &amp;#33;= right.length &amp;#41;&lt;br /&gt; &amp;nbsp;return false;&lt;br /&gt;	else&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;for&amp;#40; int i = 0; i &amp;#60; left.length; i++ &amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	if&amp;#40; left.ptr&amp;#91; i &amp;#93; &amp;#33;= right.ptr&amp;#91; i &amp;#93; &amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;	}&lt;br /&gt;	return true;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;[addedon]December 4, 2007, 10:24 pm[/addedon]Full code here:&lt;br /&gt;&lt;br /&gt;Main.cpp&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('ada6e3f5ed991a3ff3f60ab7e232f443')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;ada6e3f5ed991a3ff3f60ab7e232f443&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;#include &amp;#34;String.h&amp;#34;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;	String name&amp;#40; &amp;#34;Adam&amp;#34; &amp;#41;;&lt;br /&gt;	String second&amp;#40; &amp;#34;David&amp;#34; &amp;#41;;&lt;br /&gt;	String third&amp;#40; second &amp;#41;;&lt;br /&gt;	String fourth = name;&lt;br /&gt;&lt;br /&gt;	cout &amp;#60;&amp;#60; third &amp;#60;&amp;#60; endl;&lt;br /&gt;&lt;br /&gt;	if&amp;#40; strcmp&amp;#40; name, second&amp;#41; &amp;#41;&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;Good&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;Bad&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;&lt;br /&gt;	system&amp;#40; &amp;#34;pause&amp;#34; &amp;#41;;&lt;br /&gt;	return 0;&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;String.h&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('835b0256d84090e26c5429a7bdd87dee')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;835b0256d84090e26c5429a7bdd87dee&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;#ifndef STRING_H&lt;br /&gt;#define STRING_H&lt;br /&gt;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using std&amp;#58;&amp;#58;ostream;&lt;br /&gt;using std&amp;#58;&amp;#58;cout;&lt;br /&gt;using std&amp;#58;&amp;#58;endl;&lt;br /&gt;&lt;br /&gt;class String&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;	friend ostream &amp;amp;operator&amp;#60;&amp;#60;&amp;#40; ostream &amp;amp;, const String &amp;amp; &amp;#41;;&lt;br /&gt;&lt;br /&gt;public&amp;#58;&lt;br /&gt;&lt;br /&gt;	String&amp;#40; const char * = &amp;#34;&amp;#34; &amp;#41;;&lt;br /&gt;	String&amp;#40; const String &amp;amp; &amp;#41;;&lt;br /&gt;	~String&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;	const String &amp;amp;operator=&amp;#40; const char * &amp;#41;;&lt;br /&gt;	const String &amp;amp;operator=&amp;#40; const String &amp;amp; &amp;#41;;&lt;br /&gt;&lt;br /&gt;	bool strcmp&amp;#40; const String &amp;amp;, const String &amp;amp; &amp;#41; const;&lt;br /&gt;&lt;br /&gt;private&amp;#58;&lt;br /&gt;&lt;br /&gt;	char *ptr;&lt;br /&gt;	int length;&lt;br /&gt;&lt;br /&gt;	int getLen&amp;#40; const char * &amp;#41;;&lt;br /&gt;	void strcpy&amp;#40; char * , const char * &amp;#41;;&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;#endif&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;String.cpp&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('4b8f96dffd40f077ea54fc20ffda1d48')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;4b8f96dffd40f077ea54fc20ffda1d48&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;#include &amp;#34;String.h&amp;#34;&lt;br /&gt;&lt;br /&gt;String&amp;#58;&amp;#58;String&amp;#40; const char *s &amp;#41;&lt;br /&gt;&amp;#58; length&amp;#40; getLen&amp;#40; s &amp;#41; + 1 &amp;#41;&lt;br /&gt;{&lt;br /&gt;	ptr = new char&amp;#91; length &amp;#93;;&lt;br /&gt;	strcpy&amp;#40; ptr, s &amp;#41;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;String&amp;#58;&amp;#58;~String&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;	delete &amp;#91;&amp;#93; ptr;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;String&amp;#58;&amp;#58;String&amp;#40; const String &amp;amp;right &amp;#41;&lt;br /&gt;{&lt;br /&gt;	length = getLen&amp;#40; right.ptr &amp;#41; + 1;&lt;br /&gt;	ptr = new char&amp;#91; length &amp;#93;;&lt;br /&gt;	strcpy&amp;#40; ptr, right.ptr &amp;#41;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int String&amp;#58;&amp;#58;getLen&amp;#40; const char *right &amp;#41;&lt;br /&gt;{&lt;br /&gt;	int i = 0;&lt;br /&gt;	for&amp;#40;&amp;#59; *right &amp;#33;= &amp;#39;&amp;#092;0&amp;#39;; right++ &amp;#41;&lt;br /&gt; &amp;nbsp;i++;&lt;br /&gt;	return i;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void String&amp;#58;&amp;#58;strcpy&amp;#40; char *destination, const char *source &amp;#41;&lt;br /&gt;{&lt;br /&gt;	if&amp;#40; getLen&amp;#40; destination &amp;#41; &amp;#33;= getLen&amp;#40; source &amp;#41; &amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;delete &amp;#91;&amp;#93; ptr;&lt;br /&gt; &amp;nbsp;length = getLen&amp;#40; source &amp;#41; + 1;&lt;br /&gt; &amp;nbsp;ptr = new char&amp;#91; length &amp;#93;;&lt;br /&gt; &amp;nbsp;for&amp;#40;&amp;#59; *source &amp;#33;= &amp;#39;&amp;#092;0&amp;#39;; destination++, source++ &amp;#41;&lt;br /&gt; &amp;nbsp;	*destination = *source;&lt;br /&gt; &amp;nbsp;ptr&amp;#91; length - 1 &amp;#93; =&amp;#39;&amp;#092;0&amp;#39;;&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;for&amp;#40;&amp;#59; *source &amp;#33;= &amp;#39;&amp;#092;0&amp;#39;; destination++, source++ &amp;#41;&lt;br /&gt; &amp;nbsp;	*destination = *source;&lt;br /&gt; &amp;nbsp;ptr&amp;#91; length - 1 &amp;#93; =&amp;#39;&amp;#092;0&amp;#39;;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;const String &amp;amp;String&amp;#58;&amp;#58;operator=&amp;#40; const char *right &amp;#41;&lt;br /&gt;{&lt;br /&gt;	strcpy&amp;#40; ptr, right &amp;#41;;&lt;br /&gt;	return *this;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;const String &amp;amp;String&amp;#58;&amp;#58;operator=&amp;#40; const String &amp;amp;right &amp;#41;&lt;br /&gt;{&lt;br /&gt;	if&amp;#40; this &amp;#33;= &amp;amp;right &amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;strcpy&amp;#40; ptr, right.ptr &amp;#41;;&lt;br /&gt; &amp;nbsp;return *this;&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;Error&amp;#33; Attempt to assign String to itself&amp;#33;&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;	return *this;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ostream &amp;amp;operator&amp;#60;&amp;#60;&amp;#40; ostream &amp;amp;output, const String &amp;amp;out &amp;#41;&lt;br /&gt;{&lt;br /&gt;	output &amp;#60;&amp;#60; out.ptr;&lt;br /&gt;	return output;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;bool String&amp;#58;&amp;#58;strcmp&amp;#40; const String &amp;amp;left, const String &amp;amp;right &amp;#41; const&lt;br /&gt;{&lt;br /&gt;	if&amp;#40; left.length &amp;#33;= right.length &amp;#41;&lt;br /&gt; &amp;nbsp;return false;&lt;br /&gt;	else&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;for&amp;#40; int i = 0; i &amp;#60; left.length; i++ &amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	if&amp;#40; left.ptr&amp;#91; i &amp;#93; &amp;#33;= right.ptr&amp;#91; i &amp;#93; &amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;	}&lt;br /&gt;	return true;&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;Noob in programming here  &lt;!--emo&amp;:blush:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/blush.gif' border='0' style='vertical-align:middle' alt='blush.gif' /&gt;&lt;!--endemo--&gt;  Please do help me  &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>carefree</author>
            <category>Codemasters</category>
            <pubDate>Tue, 04 Dec 2007 21:56:00 +0800</pubDate>
        </item>
        <item>
            <title>Resignation</title>
            <link>http://forum.lowyat.net/topic/556781</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;    The story is like this. I just got an offer from other company which wants me in asap.&lt;br /&gt;I resigned from my current job last friday and plan to join the new company today but&lt;br /&gt;current company refuse to let me go and retain me for two weeks. ( my new company is willing to pay the compensation )&lt;br /&gt;&lt;br /&gt;    The question is, can my current company do that? To retain me for another two more weeks&lt;br /&gt;although I can pay the compensation. And moreover, the company ask me to train their&lt;br /&gt;existing staff to take over my job. If he ask me to pass over my job to an existing staff, I could do so but&lt;br /&gt;ask me to train them... can they force me to do so?</description>
            <author>carefree</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Mon, 19 Nov 2007 11:58:28 +0800</pubDate>
        </item>
        <item>
            <title>Added RAM from 2GB to 4GB</title>
            <link>http://forum.lowyat.net/topic/539417</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;Just added 2GB of ram to my computer today to a total of 4GB.&lt;br /&gt;But it only shows 3582MB in the system Summary. Is it suppose to show 3582MB?&lt;br /&gt;&lt;br /&gt;It is suppose to show 4096, right? I tried CPU-Z and shows there are 4096MB&lt;br /&gt;but why is my Vista showing only 3582MB?&lt;br /&gt;&lt;br /&gt;Anyone? Thanks  &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>carefree</author>
            <category>Technical Support</category>
            <pubDate>Sat, 20 Oct 2007 19:23:02 +0800</pubDate>
        </item>
        <item>
            <title>Simple Hare and Tortise race game in C++</title>
            <link>http://forum.lowyat.net/topic/519729</link>
            <description>Hi all, I was trying to complete a very simple game of the Hare and Tortise race. Below are the codes I wrote... Although it compiled ok and runs ok, but during compilation there&amp;#39;s an error message : &amp;quot;main.cpp(17) : warning C4244: &amp;#39;argument&amp;#39; : conversion from &amp;#39;time_t&amp;#39; to &amp;#39;unsigned int&amp;#39;, possible loss of data&amp;quot; could anyone take a look at the codes and see what&amp;#39;s wrong with it?&lt;br /&gt;&lt;br /&gt;Also, if u take a look at the game, the screen updates the position of the hare and tortise super fast... especially on my Core2 comp. How do I say.... make it update the position like every second? Thanks.&lt;br /&gt;&lt;br /&gt;And is there a better way of writing the &amp;quot;printBoard&amp;quot; function in Board.cpp? The one I did look kindda messy....&lt;br /&gt;&lt;br /&gt;*Code edited to change with board size  &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('68f3e81aa4b6e0332fc0189d96ada335')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;68f3e81aa4b6e0332fc0189d96ada335&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Main.cpp****/&lt;br /&gt;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;#include &amp;#60;cstdlib&amp;#62;&lt;br /&gt;using std&amp;#58;&amp;#58;rand;&lt;br /&gt;using std&amp;#58;&amp;#58;srand;&lt;br /&gt;&lt;br /&gt;#include &amp;#60;ctime&amp;#62;&lt;br /&gt;using std&amp;#58;&amp;#58;time;&lt;br /&gt;&lt;br /&gt;#include &amp;#34;Board.h&amp;#34;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41; //Start Main&lt;br /&gt;{&lt;br /&gt;	srand&amp;#40; time&amp;#40; 0 &amp;#41; &amp;#41;;&lt;br /&gt;	Tortise s1; //Creates player &amp;#34;Tortise&amp;#34;&lt;br /&gt;	Hare s2; //creates player &amp;#34;Hare/Rabbit&amp;#34;&lt;br /&gt;&lt;br /&gt;	Board game&amp;#40; &amp;amp;s1, &amp;amp;s2, 100 &amp;#41;; //Game starts&amp;#33; Std board size 70, but specified 100&lt;br /&gt;&lt;br /&gt;	system&amp;#40; &amp;#34;pause&amp;#34; &amp;#41;;&lt;br /&gt;	return 0;&lt;br /&gt;} //End main&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('da37bfbad16a810e20be02bd103e443a')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;da37bfbad16a810e20be02bd103e443a&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Tortise.h****/&lt;br /&gt;&lt;br /&gt;#ifndef TORTISE_H&lt;br /&gt;#define TORTISE_H&lt;br /&gt;&lt;br /&gt;class Tortise&lt;br /&gt;{&lt;br /&gt;public&amp;#58;&lt;br /&gt;	Tortise&amp;#40; int = 0 &amp;#41;;&lt;br /&gt;	~Tortise&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;	int getLocation&amp;#40;&amp;#41; const;&lt;br /&gt;	void genMovement&amp;#40;&amp;#41;;&lt;br /&gt;private&amp;#58;&lt;br /&gt;	int currentLocation;&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;#endif&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('3c59316710f71d84d1f55b8e9c1d02e0')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;3c59316710f71d84d1f55b8e9c1d02e0&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Tortise.cpp****/&lt;br /&gt;&lt;br /&gt;#include &amp;#34;Tortise.h&amp;#34;&lt;br /&gt;&lt;br /&gt;#include &amp;#60;cstdlib&amp;#62;&lt;br /&gt;using std&amp;#58;&amp;#58;rand;&lt;br /&gt;&lt;br /&gt;Tortise&amp;#58;&amp;#58;Tortise&amp;#40; int cur_loc &amp;#41;&lt;br /&gt;&amp;#58; currentLocation&amp;#40; cur_loc &amp;#41;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Tortise&amp;#58;&amp;#58;~Tortise&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int Tortise&amp;#58;&amp;#58;getLocation&amp;#40;&amp;#41; const&lt;br /&gt;{&lt;br /&gt;	return currentLocation;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void Tortise&amp;#58;&amp;#58;genMovement&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;	int p = 1 + rand&amp;#40;&amp;#41; % 10;&lt;br /&gt;	if&amp;#40; p &amp;#62;=1 &amp;amp;&amp;amp; p &amp;#60;= 5 &amp;#41;&lt;br /&gt; &amp;nbsp;currentLocation += 3; //Fast plod&lt;br /&gt;	else if&amp;#40; p &amp;#62;= 6 &amp;amp;&amp;amp; p &amp;#60;= 8 &amp;#41; //Slip&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if&amp;#40; currentLocation &amp;#60; 6 &amp;#41;&lt;br /&gt; &amp;nbsp;	currentLocation = 0;&lt;br /&gt; &amp;nbsp;else&lt;br /&gt; &amp;nbsp;	currentLocation -= 6;&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;currentLocation += 1; //Slow plod&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('677ae85fde40e3d9ca69c8ef03f5f4e5')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;677ae85fde40e3d9ca69c8ef03f5f4e5&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Hare.h****/&lt;br /&gt;&lt;br /&gt;#ifndef HARE_H&lt;br /&gt;#define HARE_H&lt;br /&gt;&lt;br /&gt;class Hare&lt;br /&gt;{&lt;br /&gt;public&amp;#58;&lt;br /&gt;	Hare&amp;#40; int = 0 &amp;#41;;&lt;br /&gt;	~Hare&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;	int getLocation&amp;#40;&amp;#41; const;&lt;br /&gt;	void genMovement&amp;#40;&amp;#41;;&lt;br /&gt;private&amp;#58;&lt;br /&gt;	int currentLocation;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;#endif&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('ac24a1c2cd63e4f67d817486b6238687')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;ac24a1c2cd63e4f67d817486b6238687&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Hare.cpp****/&lt;br /&gt;&lt;br /&gt;#include &amp;#34;Hare.h&amp;#34;&lt;br /&gt;&lt;br /&gt;#include &amp;#60;cstdlib&amp;#62;&lt;br /&gt;using std&amp;#58;&amp;#58;rand;&lt;br /&gt;&lt;br /&gt;Hare&amp;#58;&amp;#58;Hare&amp;#40; int cur_loc &amp;#41;&lt;br /&gt;&amp;#58; currentLocation&amp;#40; cur_loc &amp;#41;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hare&amp;#58;&amp;#58;~Hare&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void Hare&amp;#58;&amp;#58;genMovement&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;	int p = 1 + rand&amp;#40;&amp;#41; % 10;&lt;br /&gt;	if&amp;#40; p == 1 || p == 2 &amp;#41;&lt;br /&gt; &amp;nbsp;currentLocation += 0; //Sleep&lt;br /&gt;	else if&amp;#40; p == 3 || p == 4 &amp;#41;&lt;br /&gt; &amp;nbsp;currentLocation += 9; //Big hop&lt;br /&gt;	else if&amp;#40; p == 5 &amp;#41; //Big slip&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if&amp;#40; currentLocation &amp;#60; 12 &amp;#41;&lt;br /&gt; &amp;nbsp;	currentLocation = 0;&lt;br /&gt; &amp;nbsp;else&lt;br /&gt; &amp;nbsp;	currentLocation -=12;&lt;br /&gt;	}&lt;br /&gt;	else if&amp;#40; p == 6 || p == 7 || p == 8 &amp;#41;&lt;br /&gt; &amp;nbsp;currentLocation += 1; //Small hop&lt;br /&gt;	else //Small slip&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if&amp;#40; currentLocation &amp;#60; 2 &amp;#41;&lt;br /&gt; &amp;nbsp;	currentLocation = 0;&lt;br /&gt; &amp;nbsp;else&lt;br /&gt; &amp;nbsp;	currentLocation -= 2;&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int Hare&amp;#58;&amp;#58;getLocation&amp;#40;&amp;#41; const&lt;br /&gt;{&lt;br /&gt;	return currentLocation;&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('fe589d16281e0d7affcdf566e649edca')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;fe589d16281e0d7affcdf566e649edca&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Board.h****/&lt;br /&gt;&lt;br /&gt;#ifndef BOARD_H&lt;br /&gt;#define BOARD_H&lt;br /&gt;&lt;br /&gt;#include &amp;#34;Tortise.h&amp;#34;&lt;br /&gt;#include &amp;#34;Hare.h&amp;#34;&lt;br /&gt;&lt;br /&gt;class Board&lt;br /&gt;{&lt;br /&gt;public&amp;#58;&lt;br /&gt;	Board&amp;#40; Tortise *, Hare *, const int = 70 &amp;#41;;&lt;br /&gt;	~Board&amp;#40;&amp;#41;;&lt;br /&gt;	&lt;br /&gt;private&amp;#58;&lt;br /&gt;	char *board;&lt;br /&gt;	int boardSize;&lt;br /&gt;&lt;br /&gt;	void initialiseBoard&amp;#40;&amp;#41;;&lt;br /&gt;	void printBoard&amp;#40; Tortise *, Hare * &amp;#41;;&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;#endif&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('3316f231c845e37f8b9bd41c1e56d0ba')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;3316f231c845e37f8b9bd41c1e56d0ba&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/****Board.cpp****/&lt;br /&gt;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;#include &amp;#34;Board.h&amp;#34;&lt;br /&gt;&lt;br /&gt;Board&amp;#58;&amp;#58;Board&amp;#40; Tortise *s1, Hare *s2, const int B &amp;#41;&lt;br /&gt;{&lt;br /&gt;	boardSize = B;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;board = new char&amp;#91; boardSize &amp;#93;;&lt;br /&gt;	initialiseBoard&amp;#40;&amp;#41;;&lt;br /&gt;	printBoard&amp;#40; s1, s2 &amp;#41;;&lt;br /&gt;	system&amp;#40; &amp;#34;pause&amp;#34; &amp;#41;;&lt;br /&gt;	do {&lt;br /&gt; &amp;nbsp;s1-&amp;#62;genMovement&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp;s2-&amp;#62;genMovement&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp;system&amp;#40; &amp;#34;cls&amp;#34; &amp;#41;;&lt;br /&gt; &amp;nbsp;printBoard&amp;#40; s1, s2 &amp;#41;;&lt;br /&gt; &amp;nbsp;//system&amp;#40; &amp;#34;pause&amp;#34; &amp;#41;;&lt;br /&gt;	} while&amp;#40; s1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60; boardSize - 1 &amp;amp;&amp;amp; s2-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60; boardSize - 1 &amp;#41;;&lt;br /&gt;	if&amp;#40; s1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#62;= boardSize - 1 &amp;amp;&amp;amp; s2-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60; boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;&amp;#092;nYay&amp;#33; Tortise won&amp;#33;&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;	else if&amp;#40; s2-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#62;= boardSize - 1 &amp;amp;&amp;amp; s1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60; boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;&amp;#092;n&amp;#58;&amp;#40; The Hare won...&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;&amp;#092;nOuch&amp;#33; It&amp;#39;s a tie&amp;#33;&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Board&amp;#58;&amp;#58;~Board&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp;delete &amp;#91;&amp;#93; board;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void Board&amp;#58;&amp;#58;initialiseBoard&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;	for&amp;#40; int i = 0; i &amp;#60; boardSize; i++ &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; i &amp;#93; = &amp;#39;-&amp;#39;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void Board&amp;#58;&amp;#58;printBoard&amp;#40; Tortise *loc, Hare *loc1 &amp;#41;&lt;br /&gt;{&lt;br /&gt;	if&amp;#40; loc1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60;= boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; loc1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#93; = &amp;#39;H&amp;#39;;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;board&amp;#91; boardSize - 1 &amp;#93; = &amp;#39;H&amp;#39;;&lt;br /&gt;	if&amp;#40; loc-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60;= boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; loc-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#93; = &amp;#39;T&amp;#39;;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;board&amp;#91; boardSize - 1 &amp;#93; = &amp;#39;T&amp;#39;;&lt;br /&gt;	if&amp;#40; loc-&amp;#62;getLocation&amp;#40;&amp;#41; == loc1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; loc-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#93; = &amp;#39;X&amp;#39;;&lt;br /&gt;	for&amp;#40; int i = 0; i &amp;#60; boardSize; i++ &amp;#41;&lt;br /&gt; &amp;nbsp;cout &amp;#60;&amp;#60; board&amp;#91; i &amp;#93;;&lt;br /&gt;	cout &amp;#60;&amp;#60; endl;&lt;br /&gt;	if&amp;#40; loc-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60;= boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; loc-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#93; = &amp;#39;-&amp;#39;;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;board&amp;#91; boardSize - 1 &amp;#93; = &amp;#39;-&amp;#39;;&lt;br /&gt;	if&amp;#40; loc1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#60;= boardSize - 1 &amp;#41;&lt;br /&gt; &amp;nbsp;board&amp;#91; loc1-&amp;#62;getLocation&amp;#40;&amp;#41; &amp;#93; = &amp;#39;-&amp;#39;;&lt;br /&gt;	else&lt;br /&gt; &amp;nbsp;board&amp;#91; boardSize - 1 &amp;#93; = &amp;#39;-&amp;#39;;&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;</description>
            <author>carefree</author>
            <category>Codemasters</category>
            <pubDate>Thu, 13 Sep 2007 08:14:16 +0800</pubDate>
        </item>
        <item>
            <title>C++ Functions problem</title>
            <link>http://forum.lowyat.net/topic/498526</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;inline int result&amp;#40;char type, int num1 , int num2&amp;#41;&lt;br /&gt;{ //Start of function defination&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch&amp;#40;type&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; { //Starts select case&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &amp;#39;*&amp;#39;&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return product&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &amp;#39;-&amp;#39;&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return minus&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &amp;#39;+&amp;#39;&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return plus&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; default&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i=genRandNum&amp;#40;1&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while&amp;#40;i&amp;#62;3&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=genRandNum&amp;#40;1&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch&amp;#40;i&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ //Starts select case&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case 1&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return product&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case 2&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return minus&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case 3&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return plus&amp;#40;num1,num2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} //Ends select case&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; } //Ends select case&lt;br /&gt;} //End of function defination&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hi all, I&amp;#39;m currently trying to complete an exercise while I&amp;#39;m self studying C++.&lt;br /&gt;&lt;br /&gt;Please take at the code above and find out why the compiler gives me the error &amp;quot; &amp;#39;minus&amp;#39; undeclared (first use this function)&amp;quot; when compiled using Dev-C++&lt;br /&gt;&lt;br /&gt;If I compile it using VC Ex 2005, it gives me the error &amp;quot;No debugging information&amp;#33;&amp;quot; but the code runs fine.&lt;br /&gt;&lt;br /&gt;Is it because I asked function &amp;quot;minus&amp;quot; to use the parameter &amp;quot;num1, and num2&amp;quot; from function &amp;quot;result&amp;quot;?&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt; Thank you for your time.</description>
            <author>carefree</author>
            <category>Codemasters</category>
            <pubDate>Fri, 03 Aug 2007 11:45:30 +0800</pubDate>
        </item>
        <item>
            <title>EPF</title>
            <link>http://forum.lowyat.net/topic/470825</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;   Anybody here applied for KWSP online? I recently checked my efp and found out my epf is two months late. My company bank in December 2006 EPF for me in March 2007 as stated in the epf statement.&lt;br /&gt;&lt;br /&gt;   This year, they bank in this month (June 2007) for March 2007 EPF. Anybody have this problem? Is this the KWSP slow system update or is this the company?&lt;br /&gt;&lt;br /&gt;But as I see it, most likely it&amp;#39;s the company coz it&amp;#39;s stated &amp;quot;Tarikh Tansaksi&amp;quot; is Jun and &amp;quot;Bulan Caruman&amp;quot; is March. Asked the company but told me it&amp;#39;s the KWSP slow updating.</description>
            <author>carefree</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Mon, 11 Jun 2007 11:05:55 +0800</pubDate>
        </item>
        <item>
            <title>External Drive</title>
            <link>http://forum.lowyat.net/topic/469737</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;    A very suai day today. Just borrowed an external HDD from friend and accidentally stepped on it. Then after plug it into the pc, my pc can&amp;#39;t detect it anymore.&lt;br /&gt;&lt;br /&gt;   Is it possible that the HDD is spoilt or only the casing? Thx. Oh and looks like it&amp;#39;s a 2.5&amp;quot; Samsung Drive...</description>
            <author>carefree</author>
            <category>Technical Support</category>
            <pubDate>Fri, 08 Jun 2007 20:28:31 +0800</pubDate>
        </item>
        <item>
            <title>Spectacles</title>
            <link>http://forum.lowyat.net/topic/464183</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;    Could anyone here suggest where to buy a &amp;quot;clip on&amp;quot; glasses? I prefer a price tag of around 200-300 MYR. But moderate quality and style. The power for both eyes are 300+ and 400+. Area around KL or Shah Alam, or PJ.&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt; Thank you.</description>
            <author>carefree</author>
            <category>Health &amp;amp; Fitness</category>
            <pubDate>Tue, 29 May 2007 00:33:29 +0800</pubDate>
        </item>
    </channel>
</rss>
