<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>C and C++ Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'C and C++' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Sat, 21 Nov 2009 11:58:15 -0700</pubDate>
    <lastBuildDate>Sat, 21 Nov 2009 11:58:15 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Re: pls hlp me implement the function malloc in c</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409674/409686/re-pls-hlp-me-implement-the-function-malloc-in-c/#409686</link>
      <description>&lt;span style="color: Blue;"&gt;malloc is a system function. What I mean is that it needs to allocate memory from the OS. And every C language has malloc already implemented. I do not see the point to do it.&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409674/409686/re-pls-hlp-me-implement-the-function-malloc-in-c/#409686</guid>
      <pubDate>Sat, 21 Nov 2009 06:13:53 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: pls hlp me implement the function malloc in c</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409674/409676/re-pls-hlp-me-implement-the-function-malloc-in-c/#409676</link>
      <description>and pls d help m as fast as u can cuz iv only 5 days left to complete this&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409674/409676/re-pls-hlp-me-implement-the-function-malloc-in-c/#409676</guid>
      <pubDate>Fri, 20 Nov 2009 21:42:59 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>pls hlp me implement the function malloc in c</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409674/409674/pls-hlp-me-implement-the-function-malloc-in-c/</link>
      <description>hello!&lt;br /&gt;
i am new to this language and i was asked to implement malloc() in c language. i understand how malloc works but have difficulties in implementation. pls help me out. if can gv m a simple code so dat i can learn more on this. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409674/409674/pls-hlp-me-implement-the-function-malloc-in-c/</guid>
      <pubDate>Fri, 20 Nov 2009 21:34:13 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>pls hlp me implement the function malloc in c</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409673/409673/pls-hlp-me-implement-the-function-malloc-in-c/</link>
      <description>hello!&lt;br /&gt;
i am new to this language and i was asked to implement malloc() in c language. i understand how malloc works but have difficulties in implementation. pls help me out. if can gv m a simple code so dat i can learn more on this. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409673/409673/pls-hlp-me-implement-the-function-malloc-in-c/</guid>
      <pubDate>Fri, 20 Nov 2009 21:32:29 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: initializing static array</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409653/409654/re-initializing-static-array/#409654</link>
      <description>Let mne clarify what I mean by "static". I mean that the array is a static member of the class.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409653/409654/re-initializing-static-array/#409654</guid>
      <pubDate>Fri, 20 Nov 2009 12:35:56 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>initializing static array</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409653/409653/initializing-static-array/</link>
      <description>I am writing a class which will have a static array. I need to initialize the array using a for loop. There will be several instances of the class, each of which will read values from the array. The instances need to treat the array as "constant". The code to initialize the array needs to be executed only once, not once for each instance.&lt;br /&gt;
&lt;br /&gt;
Can I do all of this, and what is the syntax? &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409653/409653/initializing-static-array/</guid>
      <pubDate>Fri, 20 Nov 2009 12:22:21 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Fake Passports for Sale</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/400829/409569/fake-passports-for-sale/#409569</link>
      <description>Fake Passports for Sale&lt;br /&gt;
&lt;br /&gt;
If you want to buy high quality fake forged fraudulent counterfeit duplicate false camouflage diplomatic passports and other identification documents of Australia, Austria, Belgium, Canada, Finland, France, Germany, Israel, Malaysia, Netherlands, New Zealand, South Africa, Switzerland, United Kingdom, United States and some other countries please visit this website:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.FakePassport.Ws"&gt;http://www.FakePassport.Ws&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
E-mail: FakePassports@Gmail.Com&lt;br /&gt;
&lt;br /&gt;
Diplomatic passports are also available on demand&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/400829/409569/fake-passports-for-sale/#409569</guid>
      <pubDate>Thu, 19 Nov 2009 02:06:00 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409521/re-forums-no-longer-moderated/#409521</link>
      <description>See come to this really is a problem, want to cost a great deal of time whereabouts to manage these fragmentary affairs every day&lt;br /&gt;
Time and energies all to take up, not that worthwhile&lt;br /&gt;
That sees not see have a better solution method to handle a problem, last long bottom go to also not is way&lt;br /&gt;
The problem is still existence and finally still need to solve&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
www.53sport.com&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409521/re-forums-no-longer-moderated/#409521</guid>
      <pubDate>Wed, 18 Nov 2009 06:25:07 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409493/re-forums-no-longer-moderated/#409493</link>
      <description>Very much agree with your point.Thanks for sharing this .&lt;br /&gt;
[url=www.ichanelbags.com]cheap handbags[/url]</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409493/re-forums-no-longer-moderated/#409493</guid>
      <pubDate>Tue, 17 Nov 2009 23:31:24 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409492/re-forums-no-longer-moderated/#409492</link>
      <description>Very much agree with your point.Thanks for sharing this .&lt;br /&gt;
[url=www.ichanelbags.com]cheap handbags[/url]</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409492/re-forums-no-longer-moderated/#409492</guid>
      <pubDate>Tue, 17 Nov 2009 23:31:22 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409491/re-forums-no-longer-moderated/#409491</link>
      <description>Very much agree with your point.Thanks for sharing this .&lt;br /&gt;
[url=www.ichanelbags.com]cheap handbags[/url]</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409491/re-forums-no-longer-moderated/#409491</guid>
      <pubDate>Tue, 17 Nov 2009 23:29:32 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: opendialog boxes and selecting multiple files</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/373722/409472/re-opendialog-boxes-and-selecting-multiple-files/#409472</link>
      <description>Hi if You still got problem with that, I can help You, contact with me on e-mail.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/373722/409472/re-opendialog-boxes-and-selecting-multiple-files/#409472</guid>
      <pubDate>Tue, 17 Nov 2009 16:54:19 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Effective tool for run-time errors and memory leaks detection</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409421/409443/re-effective-tool-for-run-time-errors-and-memory-leaks-detection/#409443</link>
      <description>&lt;span style="color: Blue;"&gt;Call this function just before your main() returns:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/d41t22sb(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/d41t22sb(VS.80).aspx&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409421/409443/re-effective-tool-for-run-time-errors-and-memory-leaks-detection/#409443</guid>
      <pubDate>Tue, 17 Nov 2009 05:22:35 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: help with strings</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409416/409442/re-help-with-strings/#409442</link>
      <description>&lt;span style="color: Blue;"&gt;If you have a linked list - binary search will not be effective, because it requires that collection be accessed with an index and linked list does not have that ability. You need an array here.&lt;br /&gt;
&lt;br /&gt;
Once you have an array filled and sorted - you should be able to use binary search. In callback function for a search you need to check not the whole string, but only its prefix - it should be easy enough.&lt;br /&gt;
&lt;br /&gt;
And binary search will only give you the answer - if the prefix found or not. The full list of words starting with the prefix you will find using the found index. Go up the array (from index returned by BS) and find where the group of words begins (at which index), then go down the array (from index returned by BS) and find the end of the group.&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409416/409442/re-help-with-strings/#409442</guid>
      <pubDate>Tue, 17 Nov 2009 05:16:26 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Effective tool for run-time errors and memory leaks detection</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409421/409421/effective-tool-for-run-time-errors-and-memory-leaks-detection/</link>
      <description>Hi!&lt;br /&gt;
&lt;br /&gt;
Created application is working toooo slow, looks like there are a lot of memory leaks, there are a lot of pointers.  So, please, can you advice some effective tool for run-time errors and memory leaks detection in Visual Studio C++?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409421/409421/effective-tool-for-run-time-errors-and-memory-leaks-detection/</guid>
      <pubDate>Tue, 17 Nov 2009 01:44:28 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>help with strings</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409417/409417/help-with-strings/</link>
      <description>Hello I need help with the following algorithm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have a sorted list of strings( as in dictionary) and a string (a “word”), we need to find if there is any string in the dictionary which starts with the given word.For example, if the word is "ho", we need to find if the dictionary has any words starting with "ho".&lt;br /&gt;
&lt;br /&gt;
I thought of proceeding by using the binary search method but am unable to proceed much with it Can someone kindly help me with this problem.&lt;br /&gt;
&lt;br /&gt;
Thanx a lot,&lt;br /&gt;
Akshay</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409417/409417/help-with-strings/</guid>
      <pubDate>Tue, 17 Nov 2009 00:34:31 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>help with strings</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409416/409416/help-with-strings/</link>
      <description>Hello I need help with the following algorithm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have a sorted list of strings( as in dictionary) and a string (a “word”), we need to find if there is any string in the dictionary which starts with the given word.For example, if the word is "ho", we need to find if the dictionary has any words starting with "ho".&lt;br /&gt;
&lt;br /&gt;
I thought of proceeding by using the binary search method but am unable to proceed much with it Can someone kindly help me with this problem.&lt;br /&gt;
&lt;br /&gt;
Thanx a lot,&lt;br /&gt;
Akshay</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409416/409416/help-with-strings/</guid>
      <pubDate>Tue, 17 Nov 2009 00:32:52 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409380/re-forums-no-longer-moderated/#409380</link>
      <description>At first i had a hard time studying C and C++ ...But i realized that these programming languages are very useful i even used them now in making programming system ^_^ This is cool....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.astroved.com/vedicuniversity/index.asp"&gt;nadi astrologer&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409380/re-forums-no-longer-moderated/#409380</guid>
      <pubDate>Mon, 16 Nov 2009 08:47:50 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: VC++ Build  Error</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409206/409282/re-vc++-build--error/#409282</link>
      <description>&lt;span style="color: Blue;"&gt;This is actually a Run-Time error, not a Build error. When you see the assertion box - press 'Debug' button on it and check the code (stack trace it back to your code).&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409206/409282/re-vc++-build--error/#409282</guid>
      <pubDate>Sat, 14 Nov 2009 05:20:14 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: C double variable takes up too much space</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409124/409281/re-c-double-variable-takes-up-too-much-space/#409281</link>
      <description>&lt;span style="color: Blue;"&gt;The proper size of any variable is taken with sizeof() operator and not by calculating address difference:&lt;/span&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
double value;
printf ("\nType 'double' takes %d bytes for storage.\n", sizeof (value));
&lt;/pre&gt;&lt;span style="color: Blue;"&gt;The results you seeing are the effect of stack alignment - stack must be aligned on 8 or 16 byte frame. If variables on stack are crossing these boundaries - the storage room is aligned for:&lt;br /&gt;
&lt;br /&gt;
1. Performance - aligned variables are faster to access by CPU&lt;br /&gt;
2. Stack room in general (see Intel Manuals) must be aligned, otherwise program will crash.&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409124/409281/re-c-double-variable-takes-up-too-much-space/#409281</guid>
      <pubDate>Sat, 14 Nov 2009 05:14:12 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Forums no longer moderated</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/397624/409258/re-forums-no-longer-moderated/#409258</link>
      <description>I too agree with you. Thanks for sharing with us.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/397624/409258/re-forums-no-longer-moderated/#409258</guid>
      <pubDate>Fri, 13 Nov 2009 12:13:31 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: code equivalent ot MSDOS/WINDOWS  tree command</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/335474/409227/re-code-equivalent-ot-msdoswindows--tree-command/#409227</link>
      <description>Hi. I a a student on a technological institute of Serres Greece and i have as project to simulate the ms dos tree command on a c programm. Could you please give me a full code example to study cause i read the example here and i wasn't able to write the code. thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/335474/409227/re-code-equivalent-ot-msdoswindows--tree-command/#409227</guid>
      <pubDate>Fri, 13 Nov 2009 07:49:24 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>VC++ Build  Error</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409206/409206/vc++-build--error/</link>
      <description>Hai  &lt;br /&gt;
&lt;br /&gt;
I am very much new to VC++. iam a  new guy.&lt;br /&gt;
&lt;br /&gt;
I am giving VC++ .cpp files and  asked to compile the files.&lt;br /&gt;
&lt;br /&gt;
During  Build the following error comes..&lt;br /&gt;
&lt;br /&gt;
Debug assertion failed:&lt;br /&gt;
 Program: c:\windows\system32.exe &lt;br /&gt;
    File:  oletyplb.cpp&lt;br /&gt;
     Line:  32&lt;br /&gt;
&lt;br /&gt;
Kindly help me on this....&lt;br /&gt;
&lt;br /&gt;
Waiting for your reply&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409206/409206/vc++-build--error/</guid>
      <pubDate>Fri, 13 Nov 2009 02:00:33 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: CreateProcess Q?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/306751/409179/re-createprocess-q/#409179</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Do you have any idea about how to read the message on the console using your programme? i want to execute something on the cmd.exe and i would like to read the output of the command executed.&lt;br /&gt;
&lt;br /&gt;
for eg: PING 127.0.0.1&lt;br /&gt;
Reply from 127.0.0.1: bytes=32 time&amp;lt;1ms TTL=128&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i would like to read " Reply from 127.0.0.1: bytes=32 time&amp;lt;1ms TTL=128&lt;br /&gt;
 into a string.&lt;br /&gt;
&lt;br /&gt;
is it possible?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/306751/409179/re-createprocess-q/#409179</guid>
      <pubDate>Thu, 12 Nov 2009 13:08:14 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: CreateProcess Q?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/306751/409178/re-createprocess-q/#409178</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Do you have any idea about how to read the message on the console using your programme? i want to execute something on the cmd.exe and i would like to read the output of the command executed.&lt;br /&gt;
&lt;br /&gt;
for eg: PING 127.0.0.1&lt;br /&gt;
Reply from 127.0.0.1: bytes=32 time&amp;lt;1ms TTL=128&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i would like to read " Reply from 127.0.0.1: bytes=32 time&amp;lt;1ms TTL=128&lt;br /&gt;
 into a string.&lt;br /&gt;
&lt;br /&gt;
is it possible?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/306751/409178/re-createprocess-q/#409178</guid>
      <pubDate>Thu, 12 Nov 2009 13:00:40 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>