<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Xecty</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Tue, 10 Nov 2026 23:20:32 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Working in Cyberjaya + DTS</title>
            <link>http://forum.lowyat.net/topic/1520862</link>
            <description>Anyone working in Cyberjaya using DTS service? &lt;br /&gt;&lt;a href='http://cyberjaya.name/dts.htm' target='_blank'&gt;http://cyberjaya.name/dts.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Q1: I would like know especially route 702, will the traffic very jam during these hour: 6 or 7 am (From Gombak) and 6 pm (From Cyberjaya)&lt;br /&gt;Q2: Approximate time duration needed from Gombak to Cyberjaya and Cyberjaya to Gombak for Q1&lt;br /&gt;Q3: Where can buy monthly pass for DTS beside DTS Office Addres - Cyberview Sdn Bhd</description>
            <author>Xecty</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Tue, 10 Aug 2010 17:19:01 +0800</pubDate>
        </item>
        <item>
            <title>Read user input from a text file</title>
            <link>http://forum.lowyat.net/topic/504657</link>
            <description>My program is to receive Student ID that input by user then to check whether the Student ID (SID) is duplicate or not, if the user input  the same Student ID (SID), the system will reject the data and will ask user to key in again until the user key in correct Student ID which is not found in the student.txt&lt;br /&gt;After that the program will save the Student ID into student.txt&lt;br /&gt;The problem is how can i do to check whether the Student ID is duplicate or not without using array, i am thinking of looping to read input from student.txt but not success &lt;br /&gt;The detail of student.txt as follow: //10000-10003 = student ID&lt;br /&gt;10000 name1 70 80 50&lt;br /&gt;10001 name2 50 30 20&lt;br /&gt;10002 name3 50 60 70&lt;br /&gt;10003 name4 80 90 60&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;#include &amp;#60;cstdlib&amp;#62;&lt;br /&gt;#include &amp;#60;fstream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; int SID, ID, m1, m2, m3;&lt;br /&gt; &amp;nbsp; &amp;nbsp; string name;&lt;br /&gt; &amp;nbsp; &amp;nbsp; ifstream input;&lt;br /&gt; &amp;nbsp; &amp;nbsp; ofstream output;&lt;br /&gt; &amp;nbsp; &amp;nbsp; input.open&amp;#40;&quot;student.txt&quot;&amp;#41;; &amp;nbsp; // open student.txt&lt;br /&gt; &amp;nbsp; &amp;nbsp; input &amp;#62;&amp;#62; ID &amp;#62;&amp;#62; name &amp;#62;&amp;#62; m1 &amp;#62;&amp;#62; m2 &amp;#62;&amp;#62; m3; &amp;nbsp;// read student ID from the student.txt&lt;br /&gt; &amp;nbsp; &amp;nbsp; cout &amp;#60;&amp;#60; &amp;#34; Enter student ID&amp;#58; &amp;#34;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; cin &amp;#62;&amp;#62; SID; &amp;nbsp; // read Student ID that key in by user&lt;br /&gt; &amp;nbsp; &amp;nbsp; //After this, what to do?&lt;br /&gt; &amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;</description>
            <author>Xecty</author>
            <category>Codemasters</category>
            <pubDate>Wed, 15 Aug 2007 01:08:27 +0800</pubDate>
        </item>
    </channel>
</rss>
