<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by tzeteng</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Thu, 11 Jun 2026 12:27:39 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Urgent with the C++ assignment... pls help</title>
            <link>http://forum.lowyat.net/topic/353036</link>
            <description>Assigned to read each line of the data files (vehicles.dat) that contains sth like this...&lt;br /&gt;&lt;br /&gt;AE45005   car&lt;br /&gt;AS88925 lorry&lt;br /&gt;AS15511 van&lt;br /&gt;ASASAS lorry&lt;br /&gt;.....etc&lt;br /&gt;&lt;br /&gt;I have to file in them then sort the plate numbers into separate files according to vehicle type&amp;lt;--that&amp;#39;s for file out display.. like &amp;quot;car.dat&amp;quot;... in C++ programme my display will have to display the number of each type of vehicles. I&amp;#39;ve done half a little bit which I doubted correct or not..&lt;br /&gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;#include &amp;lt;fstream.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ifstream file_in(&amp;quot;vehicles.dat&amp;quot;);&lt;br /&gt;&lt;br /&gt;if (file_in.fail())&lt;br /&gt;{&lt;br /&gt;cerr&amp;lt;&amp;lt;&amp;quot;File not found in disk.&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;ofstream file_out1(&amp;quot;car.dat&amp;quot;),file_out2(&amp;quot;van.dat&amp;quot;);&lt;br /&gt;ofstream file_out3(&amp;quot;lorry.dat&amp;quot;), file_out4(&amp;quot;motorcycle.dat&amp;quot;);&lt;br /&gt;char data1[1000], data2[1000], data3[1000], data4[1000];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;file_out1&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;tType of Vehicles - CAR &amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;file_out2&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;tType of Vehicles - MOTORCYCLE &amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;file_out3&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;tType of Vehicles - LORRY &amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;file_out4&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;tType of Vehicles - VAN &amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;&lt;br /&gt;char type = &amp;quot;apple&amp;quot;;&lt;br /&gt;for (int i=1; &amp;#33;file_in.eof(); i++)&lt;br /&gt;{&lt;br /&gt;file_in.getline(data1,1000);&lt;br /&gt;file_out1&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;data1;&lt;br /&gt;file_in.getline(data2,1000);&lt;br /&gt;file_out2&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;data2;&lt;br /&gt;file_in.getline(data3,1000);&lt;br /&gt;file_out3&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;data3;&lt;br /&gt;file_in.getline(data4,1000);&lt;br /&gt;file_out4&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;&amp;#092;t&amp;quot;&amp;lt;&amp;lt;data4;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please help...</description>
            <author>tzeteng</author>
            <category>Codemasters</category>
            <pubDate>Thu, 12 Oct 2006 22:10:41 +0800</pubDate>
        </item>
        <item>
            <title>Please check my simple code..</title>
            <link>http://forum.lowyat.net/topic/329291</link>
            <description>#include &amp;lt;iostream.h&amp;gt;&lt;br /&gt;#include &amp;lt;math.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;int speed;&lt;br /&gt;float height;&lt;br /&gt;char weather;&lt;br /&gt;&lt;br /&gt;cout&amp;lt;&amp;lt;&amp;quot;Please enter the speed of wind&amp;quot; &amp;lt;&amp;lt;endl;&lt;br /&gt;cin&amp;gt;&amp;gt;speed;&lt;br /&gt;cout&amp;lt;&amp;lt;&amp;quot;Please enter the height of waves&amp;quot; &amp;lt;&amp;lt;endl;&lt;br /&gt;cin&amp;gt;&amp;gt;height;&lt;br /&gt;cout&amp;lt;&amp;lt;&amp;quot;Please enter the weather condition, T for thunder, R for rain, O for others&amp;quot; &amp;lt;&amp;lt;endl;&lt;br /&gt;cin&amp;gt;&amp;gt;weather;&lt;br /&gt;&lt;br /&gt;if (speed &amp;gt;= 45)||(height &amp;gt;= 3)||(weather==&amp;#39;T&amp;#39;)&lt;br /&gt;cout&amp;lt;&amp;lt; endl &amp;lt;&amp;lt; &amp;quot;The condition is dangerous.&amp;quot;;&lt;br /&gt;&lt;br /&gt;else if (30 &amp;lt; speed &amp;lt;= 45)||(1.5 &amp;lt; height &amp;lt;=3)||(weather=&amp;#39;R&amp;#39;)&lt;br /&gt;cout&amp;lt;&amp;lt; endl &amp;lt;&amp;lt;&amp;quot;The condition is cautious.&amp;quot;;&lt;br /&gt;&lt;br /&gt;else if (speed &amp;lt;=30)||(height&amp;lt;=1.5)||(weather==&amp;#39;O&amp;#39;)&lt;br /&gt;cout&amp;lt;&amp;lt; endl &amp;lt;&amp;lt;&amp;quot;The condition is safe.&amp;quot;;&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;cout&amp;lt;&amp;lt;&amp;quot;Invalid&amp;quot;;&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t understand why I get Expression Syntax and Ambigous...error...&lt;br /&gt;it indicates there&amp;#39;s an error in the &amp;quot;if&amp;quot; parts</description>
            <author>tzeteng</author>
            <category>Codemasters</category>
            <pubDate>Sun, 20 Aug 2006 00:08:04 +0800</pubDate>
        </item>
        <item>
            <title>[WTA] Statics Question.... Please help</title>
            <link>http://forum.lowyat.net/topic/322803</link>
            <description>&lt;img src='http://i2.photobucket.com/albums/y25/tzeteng/help11222222.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;Can anyone try to solve this?&lt;br /&gt;&lt;br /&gt;I got stuck here&lt;br /&gt;&lt;br /&gt;3 T cos @ = 400, T = tension of each spring, @ = angle of spring with vertical axis&lt;br /&gt;L sin @ = 0.5&lt;br /&gt;L cos @ = h&lt;br /&gt;tan @ = 0.5/h&lt;br /&gt;&lt;br /&gt;with L = length of spring &lt;br /&gt;&lt;br /&gt;T = 1000 times x where x is the stretch length&lt;br /&gt;&lt;br /&gt;3000x cos @ = 400&lt;br /&gt;x = L - 0.5&lt;br /&gt;3000 (L-0.5) cos @ = 400&lt;br /&gt;3000 (h) - 1500 cos @ = 400&lt;br /&gt;3000 (h) = 400 + 1500 cos @&lt;br /&gt;h = (400 + 1500 cos @) / 3000&lt;br /&gt;&lt;br /&gt;and the I don&amp;#39;t know how...&lt;br /&gt;&lt;br /&gt;Furthermore I just directly used 1000 N/m stiffness given, maybe I should increase the value of stiffness since they are like in parallel arrangement...&lt;br /&gt;&lt;br /&gt;</description>
            <author>tzeteng</author>
            <category>Education Essentials</category>
            <pubDate>Fri, 04 Aug 2006 21:41:29 +0800</pubDate>
        </item>
        <item>
            <title>[WTA] Domain Name</title>
            <link>http://forum.lowyat.net/topic/297637</link>
            <description>Can I use a paid domain name with free hosting? Are the compatible together?</description>
            <author>tzeteng</author>
            <category>Internet Related</category>
            <pubDate>Tue, 06 Jun 2006 01:46:06 +0800</pubDate>
        </item>
        <item>
            <title>[WTA] Domain Name</title>
            <link>http://forum.lowyat.net/topic/291865</link>
            <description>Sorry but i don&amp;#39;t know where to post... my question is about paid domain name registration... I saw a lot registration provided by many company.. Is it necessary to get new paid domain from a trusted company? Is it possible that I will lose my domain if that company is close?&lt;br /&gt;&lt;br /&gt;For example I saw this&lt;br /&gt;&lt;br /&gt;&lt;a href='https://www.godaddy.com/gdshop/registrar/contact.asp?se=%2B&amp;app%5Fhdr=&amp;display=' target='_blank'&gt;https://www.godaddy.com/gdshop/registrar/co...5Fhdr=&amp;display=&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How much usually it costs? about RM30sth annually? &lt;br /&gt;&lt;br /&gt;I would also like to know the annual fee for webhosting....&lt;br /&gt;&lt;br /&gt;What about lowyat.net?</description>
            <author>tzeteng</author>
            <category>Internet Related</category>
            <pubDate>Mon, 22 May 2006 23:31:10 +0800</pubDate>
        </item>
        <item>
            <title>For IPTA applicants who know this...</title>
            <link>http://forum.lowyat.net/topic/280058</link>
            <description>I&amp;#39;m currently waiting for my IPTA result which they say probably will be announced by the end of June.... But I would like to ask all the ex-IPTA applicants here if they got  their first choice or not? I&amp;#39;m not sure how do the selections work... is it very hard to get the &amp;quot;First Choice&amp;quot; ?</description>
            <author>tzeteng</author>
            <category>Education Essentials</category>
            <pubDate>Sun, 23 Apr 2006 20:53:21 +0800</pubDate>
        </item>
        <item>
            <title>Life in Local Public Universities of Malaysia</title>
            <link>http://forum.lowyat.net/topic/280025</link>
            <description>For those who have/had been experiencing the life in local University in Malaysia, mind to share the experiences with us? Maybe about some significant incidents.... or lecturers, etc..&lt;br /&gt;&lt;br /&gt;I would also like to know... the first year we get admitted into the U, must we stay in the hostel there? And if we&amp;#39;re going to stay there... is there internet connection available in every room? Can we buy desktop computer or laptop and bring there?</description>
            <author>tzeteng</author>
            <category>Education Essentials</category>
            <pubDate>Sun, 23 Apr 2006 19:10:29 +0800</pubDate>
        </item>
    </channel>
</rss>
