<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by AaronZe</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sat, 20 Jun 2026 04:29:52 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>How to add our own plugins?</title>
            <link>http://forum.lowyat.net/topic/400594</link>
            <description>Hi, i have started a blog with blogsentral.com&lt;br /&gt;I want to add my own plugins, and also some google adsense ads in the blog, but i can&amp;#39;t seem to find anyway to add plugins. The only way is to upload into wp-contents folder but obviously i do no have access for that because i am not the site owner. &lt;br /&gt;Please help. Thanks  &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt; &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>AaronZe</author>
            <category>Content Creators, Blogmasters &amp;amp; Webmasters</category>
            <pubDate>Fri, 19 Jan 2007 18:30:31 +0800</pubDate>
        </item>
        <item>
            <title>Pointers</title>
            <link>http://forum.lowyat.net/topic/377137</link>
            <description>Hi,  i stumbled across this problem about pointers, we have this code&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;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char * mystring = &amp;#34;Hello&amp;#34;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;#60;&amp;#60; mystring &amp;#60;&amp;#60; endl;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;#60;&amp;#60; *mystring &amp;#60;&amp;#60; endl;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;The mystring pointer would points to the address of the memory locations that store the string &amp;quot;Hello&amp;quot;. In other words, mystring supposed to print the address of the string, and *mystring would print the value pointed to by the pointer...but the output of the above 2 cout statements are:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hello&lt;br /&gt;H&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;the first cout outputs the string Hello and the second cout outputs the first char pointed by the pointer, in this case the char &amp;#39;H&amp;#39;&lt;br /&gt;&lt;br /&gt;My question is how do i get the &lt;b&gt;address&lt;/b&gt;, in other words the value stored in the pointer mystring? the first cout statement supposed to output the value stored in mystring, which is the address of the string &amp;quot;Hello&amp;quot; but somehow it output the string &amp;quot;Hello&amp;quot; instead of the address.. &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt; &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>AaronZe</author>
            <category>Codemasters</category>
            <pubDate>Mon, 04 Dec 2006 02:20:28 +0800</pubDate>
        </item>
        <item>
            <title>ifstream</title>
            <link>http://forum.lowyat.net/topic/369766</link>
            <description>Hi, i have another problem with files  &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;usually i used only one file for input&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('5e281f511b5e30974e86238588c5f81a')&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;5e281f511b5e30974e86238588c5f81a&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;#include &amp;#60;fstream&amp;#62;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifstream in_stream;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;in_stream.open&amp;#40;&amp;#34;somefile.txt&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;but now i want to let the user specify which file he/she wants to open...&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;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;#include &amp;#60;stream&amp;#62;&lt;br /&gt;#include &amp;#60;string&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifstream in_stream;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;string thefile;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;#60;&amp;#60; &amp;#34;Please enter the name of the file&amp;#092;n&amp;#34;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;cin &amp;#62;&amp;#62; thefile;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;in_stream.open&amp;#40;thefile&amp;#41;;//somehow this is an error here&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;how do i open files &amp;quot;dynamically&amp;quot; or whatever it is called?  &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;  &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;</description>
            <author>AaronZe</author>
            <category>Codemasters</category>
            <pubDate>Sun, 19 Nov 2006 16:48:18 +0800</pubDate>
        </item>
        <item>
            <title>for loop</title>
            <link>http://forum.lowyat.net/topic/369295</link>
            <description>Hi&amp;#33; I have this question about &lt;b&gt;for&lt;/b&gt; loop &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt; &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;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;for &amp;#40;int i=0;i&amp;#60;=10;i++&amp;#41;//i starts at 0 loop until 10&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;#60;&amp;#60; i &amp;#60;&amp;#60; &amp;#34; first loop&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;for &amp;#40;int i;i&amp;#60;=20;i++&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;#60;&amp;#60; i &amp;#60;&amp;#60; &amp;#34; second loop&amp;#34; &amp;#60;&amp;#60; endl;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;system &amp;#40;&amp;#34;PAUSE&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;Let&amp;#39;s see the code, in the first &lt;b&gt;for&lt;/b&gt; loop, the counter variable &lt;b&gt;i&lt;/b&gt; is initialized to 0, then it loop all the way to 10, then it stops. Then the second &lt;b&gt;for&lt;/b&gt; loop is executed, and it also uses the same name for its counter variable, which is the variable name &lt;b&gt;i&lt;/b&gt;. The second loop starts from where the first loop stops, which is the value 11 and loop till 20.&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('645f78109d7948922a11c22055a2e529')&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;645f78109d7948922a11c22055a2e529&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;img src='http://img92.imageshack.us/img92/8646/loopda8.png' border='0' alt='user posted image' /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;My question is that isn&amp;#39;t the variable &lt;b&gt;i&lt;/b&gt; should be &lt;b&gt;local&lt;/b&gt; to its own &lt;b&gt;for&lt;/b&gt; loop and won&amp;#39;t affect other &lt;b&gt;i&lt;/b&gt; outside the braces?&lt;br /&gt;&lt;br /&gt;I read from a book that this is due to the pre-standard compiler that i use, which means my compiler is an old compiler. I use dev-c++ with mingw 3.0+ something...&lt;br /&gt;probably that is an old compiler.&lt;br /&gt;&lt;br /&gt;Another question is that in the book, it state that the possible solutions to this  problem is to use different names for the counter variable(eg. use i, j , k etc.).&lt;br /&gt;i understand this  solution, but not the second one&lt;br /&gt;&lt;br /&gt;The second solution goes like this &amp;quot;&lt;i&gt;if you prefer to use the same name for several for structures, define the control variable before the first &lt;b&gt;for&lt;/b&gt; structure&lt;/i&gt;&amp;quot;. What does this means? &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;  &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>AaronZe</author>
            <category>Codemasters</category>
            <pubDate>Sat, 18 Nov 2006 14:06:07 +0800</pubDate>
        </item>
        <item>
            <title>functions</title>
            <link>http://forum.lowyat.net/topic/368438</link>
            <description>Hi, i encountered this problem&lt;br /&gt;let&amp;#39;s say we have a function main_menu()&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;#include &amp;#60;iostream&amp;#62;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;void main_menu&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; start&amp;#58;&lt;br /&gt;int variable1;&lt;br /&gt;&lt;br /&gt;cout &amp;#60;&amp;#60; &amp;#34;please input an integer&amp;#092;n&amp;#34;;&lt;br /&gt;cin &amp;#62;&amp;#62; variable1;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;variable1 == 1&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout&amp;#60;&amp;#60; &amp;#34;Hello World&amp;#092;n&amp;#34;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &amp;nbsp; &amp;nbsp; else&lt;br /&gt; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; goto start;&lt;br /&gt; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; &amp;nbsp;main_menu&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return0;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;the problem here is that when main_menu() is executed for the first time, if  the user enters an integer 2, then when it execute the statement goto start, it somehow skips the &lt;br /&gt;&lt;b&gt;cout &amp;lt;&amp;lt; &amp;quot;please input an integer&amp;#092;n&amp;quot;;&lt;/b&gt; and &lt;b&gt;cin &amp;gt;&amp;gt; variable1&lt;/b&gt; part and jump directly to the if...else structure...which means when it restart, the variable already contain the value 2, and it keep executing the &amp;quot;else&amp;quot; body of the if..else structure..so my question is how to make it cin again a new value if the value is not 1?&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&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;</description>
            <author>AaronZe</author>
            <category>Codemasters</category>
            <pubDate>Thu, 16 Nov 2006 19:58:15 +0800</pubDate>
        </item>
        <item>
            <title>There is no website configured at this address&amp;#33;</title>
            <link>http://forum.lowyat.net/topic/304402</link>
            <description>Hi, &lt;br /&gt;&lt;br /&gt;The other day I created subdomain on my website www.coderbee.net&lt;br /&gt;&lt;br /&gt;The subdomain is &lt;a href='http://blog.coderbee.net' target='_blank'&gt;http://blog.coderbee.net&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It works perfectly fine&lt;br /&gt;&lt;br /&gt;Then i deleted the subdomain&lt;br /&gt;&lt;br /&gt;Then i re-added the same subdomain again but this time around that subdomain can&amp;#39;t be &lt;br /&gt;used anymore and it keeps on showing the page &lt;a href='http://blog.coderbee.net' target='_blank'&gt;&amp;quot;There is no website configured at this address&amp;#33;&amp;quot;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The same thing happen to another subdomain of my website &lt;a href='http://forum.coderbee.net' target='_blank'&gt;http://forum.coderbee.net&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Whenever i deleted a subdomain and re-add the subdomain it can&amp;#39;t be used anymore  &lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;Anyone knows how to fix this?? Please help&amp;#33;&amp;#33;&amp;#33; Thanks&amp;#33;&amp;#33;&amp;#33; &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>AaronZe</author>
            <category>Internet Related</category>
            <pubDate>Thu, 22 Jun 2006 04:50:06 +0800</pubDate>
        </item>
        <item>
            <title>Blogger themes</title>
            <link>http://forum.lowyat.net/topic/251519</link>
            <description>Hi, can i know where to get free blogger themes? Those provided by blogger is kinda boring....ty &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>AaronZe</author>
            <category>Arts &amp;amp; Designs</category>
            <pubDate>Tue, 14 Feb 2006 23:24:38 +0800</pubDate>
        </item>
    </channel>
</rss>
