<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>C and C++ Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'C and C++' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Sat, 21 Nov 2009 11:59:30 -0700</pubDate>
    <lastBuildDate>Sat, 21 Nov 2009 11:59:30 -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>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>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>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>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>Detection of USB device connect and discoonect in vc++ DLL Pin</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409161/409161/detection-of-usb-device-connect-and-discoonect-in-vc++-dll-pin/</link>
      <description>Hi,&lt;br /&gt;
I want a notification for the usb device connection and disconnection in vc++ DLL.&lt;br /&gt;
&lt;br /&gt;
I am implementing J2534 DLL in that i want a notification for usb device connect and disconnect.&lt;br /&gt;
I read about WM_DEVICECHANGE notification and RegisterDeviceNotification.&lt;br /&gt;
&lt;br /&gt;
but RegisterDeviceNotification will give error "undeclared identifier".&lt;br /&gt;
and both will use window handle.&lt;br /&gt;
if i use these functions in my DLL i wont get the window handle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
so anybody give me the solution to implement the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and one more thing i have found one example code to achieve the same.&lt;br /&gt;
this code uses AtUsbHid.dll to detect usb connect and removal.&lt;br /&gt;
but to use these dll functions also i need to pass window handle which is not possible in DLL.so if anybody knows the solution to use same dll without window handle.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409161/409161/detection-of-usb-device-connect-and-discoonect-in-vc++-dll-pin/</guid>
      <pubDate>Thu, 12 Nov 2009 05:59:53 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Detection of USB device connect and discoonect in vc++ DLL</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409141/409141/detection-of-usb-device-connect-and-discoonect-in-vc++-dll/</link>
      <description>Hi,&lt;br /&gt;
I want a notification for the usb device connection and disconnection in vc++ DLL.&lt;br /&gt;
&lt;br /&gt;
I am implementing J2534 DLL in that i want a notification for usb device connect and disconnect.&lt;br /&gt;
I read about WM_DEVICECHANGE notification  and RegisterDeviceNotification.&lt;br /&gt;
&lt;br /&gt;
but RegisterDeviceNotification will give error "undeclared identifier".&lt;br /&gt;
and both will use window handle.&lt;br /&gt;
if i use these functions in my DLL i wont get the window handle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
so anybody give me the solution to implement the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and one more thing i have found one example code to achieve the same.&lt;br /&gt;
this code uses AtUsbHid.dll(version 1.0.0.1) to detect usb connect and removal.&lt;br /&gt;
but to use these dll functions also i need to pass window handle which is not possible in DLL.so if anybody knows the solution to use same dll without window handle.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409141/409141/detection-of-usb-device-connect-and-discoonect-in-vc++-dll/</guid>
      <pubDate>Thu, 12 Nov 2009 02:22:47 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>C double variable takes up too much space</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409124/409124/c-double-variable-takes-up-too-much-space/</link>
      <description>Okay, so I was playing around with pointers, and I noticed something.  when I used a pointer to display the memory address of a double variable, it said it took up 12 bytes, when it should only have taken up 8 bytes.  Also, it only took up 12 bytes when the data that proceeds it in memory is not of the double type.&lt;br /&gt;
&lt;br /&gt;
Here's my code:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#include&amp;lt;stdio.h&amp;gt;

int main(void)
{
	int t = 1;
	double u = 10.1;
	float v = 20.1f;
	double w = 30.1;
	double x = 40.1;
	int y = 50;
	double z = 60.1;
	
	int *tPtr = &amp;amp;t;
	double *uPtr = &amp;amp;u;
	float *vPtr = &amp;amp;v;
	double *wPtr = &amp;amp;w;
	double *xPtr = &amp;amp;x;
	int *yPtr = &amp;amp;y;
	double *zPtr = &amp;amp;z;
	
	printf("t is an integer and has the number %d in it\n", t);
	printf("t is located at %u\n", tPtr);
	printf("u is a double and has the number %lf in it\n", u);
	printf("u is located at %u\n", uPtr);
	printf("v is a float and has the number %f in it\n", v);
	printf("v is located at %u\n", vPtr);
	printf("w is double and has the number %lf in it\n", w);
	printf("w is located at %u\n", wPtr);
	printf("x is a double and has the number %lf in it\n", x);
	printf("x is located at %u\n", xPtr);
	printf("y is an integer and has the number %d in it\n", y);
	printf("y is located at %u\n", yPtr);
	printf("z is a double and has the number %lf in it\n", z);
	printf("z is located at %u\n", zPtr);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
and here's the output:&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://img211.imageshack.us/img211/9831/screenshot2t.png[/img]&lt;br /&gt;
&lt;br /&gt;
As you can see, each double (except for double [i]x[/i] which follows double [i]w[/i] takes up 12 bytes.  I've also tried compiling this with gcc, and Visual Studio 2005.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409124/409124/c-double-variable-takes-up-too-much-space/</guid>
      <pubDate>Wed, 11 Nov 2009 22:15:10 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>C double variable takes up too much space</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409123/409123/c-double-variable-takes-up-too-much-space/</link>
      <description>Okay, so I was playing around with pointers, and I noticed something.  when I used a pointer to display the memory address of a double variable, it said it took up 12 bytes, when it should only have taken up 8 bytes.  Also, it only took up 12 bytes when the data that proceeds it in memory is not of the double type.&lt;br /&gt;
&lt;br /&gt;
Here's my code:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#include&amp;lt;stdio.h&amp;gt;

int main(void)
{
	int t = 1;
	double u = 10.1;
	float v = 20.1f;
	double w = 30.1;
	double x = 40.1;
	int y = 50;
	double z = 60.1;
	
	int *tPtr = &amp;amp;t;
	double *uPtr = &amp;amp;u;
	float *vPtr = &amp;amp;v;
	double *wPtr = &amp;amp;w;
	double *xPtr = &amp;amp;x;
	int *yPtr = &amp;amp;y;
	double *zPtr = &amp;amp;z;
	
	printf("t is an integer and has the number %d in it\n", t);
	printf("t is located at %u\n", tPtr);
	printf("u is a double and has the number %lf in it\n", u);
	printf("u is located at %u\n", uPtr);
	printf("v is a float and has the number %f in it\n", v);
	printf("v is located at %u\n", vPtr);
	printf("w is double and has the number %lf in it\n", w);
	printf("w is located at %u\n", wPtr);
	printf("x is a double and has the number %lf in it\n", x);
	printf("x is located at %u\n", xPtr);
	printf("y is an integer and has the number %d in it\n", y);
	printf("y is located at %u\n", yPtr);
	printf("z is a double and has the number %lf in it\n", z);
	printf("z is located at %u\n", zPtr);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
and here's the output:&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://img211.imageshack.us/img211/9831/screenshot2t.png[/img]&lt;br /&gt;
&lt;br /&gt;
As you can see, each double (except for double [i]x[/i] which follows double [i]w[/i] takes up 12 bytes.  I've also tried compiling this with gcc, and Visual Studio 2005.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409123/409123/c-double-variable-takes-up-too-much-space/</guid>
      <pubDate>Wed, 11 Nov 2009 22:15:04 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>retrieving a string with spaces from a file.</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409033/409033/retrieving-a-string-with-spaces-from-a-file/</link>
      <description>We were given an assignment that involved taking information from a file and storing the data in an array. The data in the file is sorted as follows&lt;br /&gt;
&lt;br /&gt;
New York            40 43 N    74 01 W&lt;br /&gt;
&lt;br /&gt;
the first 20 characters are the name of the city followed by the latitude and longitude. latitude and longitude should be easy with a few &lt;br /&gt;
&lt;br /&gt;
fscanf(infile, "%d(or %c depending on which one i'm getting)", pointer)&lt;br /&gt;
&lt;br /&gt;
operation. my problem is that i do not know how to collect the string for the name of the city because some of the city names have spaces. I read something about using delimiters but from what i read, it seems like that is used more for reading an entire line. Is there any way to read the city name from a file and store the entire name with spaces in a character array? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409033/409033/retrieving-a-string-with-spaces-from-a-file/</guid>
      <pubDate>Tue, 10 Nov 2009 11:00:55 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>C LANGUAGE: String (Number To Words)</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409031/409031/c-language-string-number-to-words/</link>
      <description>good day to all.  i have a little problem regarding strings and i can't make my program to meet the given condition. LOL.. &lt;br /&gt;
&lt;br /&gt;
here's my code so far.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
void main()
{   
char a[12]={'X','C','O','M','P','U','T','E','R','S','.'
};
printf("Enter Price Value:");
gets(a);
puts(a);
}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now the condition is this.. &lt;br /&gt;
&lt;br /&gt;
write a program that will use string converting numbers to letters:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example output.&lt;br /&gt;
&lt;br /&gt;
Enter Price Value: 1235.0&lt;br /&gt;
&lt;br /&gt;
Letter Value =: COMU.X&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409031/409031/c-language-string-number-to-words/</guid>
      <pubDate>Tue, 10 Nov 2009 08:55:21 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Compiler</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/409000/409000/compiler/</link>
      <description>Hello :)&lt;br /&gt;
I wonder if anyone have or know of any compiler simple , but very simple even, (OPEN SOURCE), for windows, which compile for COFF system.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/409000/409000/compiler/</guid>
      <pubDate>Tue, 10 Nov 2009 00:38:12 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>CoCreateInstance class not regsitered</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408982/408982/cocreateinstance-class-not-regsitered/</link>
      <description>Hello &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I am pretty new to COM and I apologize for asking "may be" stupid questions. Currently, I am trying to reverse engineer an application.&lt;br /&gt;
&lt;br /&gt;
The following lines of code &lt;br /&gt;
&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
hr = CoCreateInstance( CLSID_SampleGrabber, NULL, CLSCTX_ALL, &lt;br /&gt;
                         IID_IBaseFilter, (LPVOID *)&amp;amp;mISampleFilter );&lt;br /&gt;
&lt;br /&gt;
  if(hr == S_OK){&lt;br /&gt;
	  logToFile("CoCreateInstance : CLSID_SampleGrabber : created successfully");&lt;br /&gt;
  }&lt;br /&gt;
  if(hr == REGDB_E_CLASSNOTREG){&lt;br /&gt;
	  logToFile("A specified class is not registered in the registration database.");&lt;br /&gt;
  }&lt;br /&gt;
  if(hr == CLASS_E_NOAGGREGATION){&lt;br /&gt;
	  logToFile("This class cannot be created as part of an aggregate.");&lt;br /&gt;
  }&lt;br /&gt;
  if(hr == E_NOINTERFACE){&lt;br /&gt;
	  logToFile("The specified class does not implement the requested ....");&lt;br /&gt;
  }&lt;br /&gt;
  if(hr == E_POINTER){&lt;br /&gt;
	  logToFile("The ppv parameter is NULL.");&lt;br /&gt;
  }&lt;br /&gt;
//logToFile is my custom built logger function&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
"A specified class is not registered in the registration database" gets logged to the log file. I went ahead and printed the CLSID_SampleGrabber&lt;br /&gt;
&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
 hr = StringFromCLSID(CLSID_SampleGrabber, &amp;amp;wszClsid);&lt;br /&gt;
 if (SUCCEEDED(hr)) {&lt;br /&gt;
	logToFile ("Sample Grabber CLSID is ");&lt;br /&gt;
	logToFile(convertToString(wszClsid));&lt;br /&gt;
 }&lt;br /&gt;
//convertToString is my custom built function&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
It logs "00000000-0000-0000-0000-000000000000" to the file. Its pretty obvious that it is not finding the correct CLSID for "SampleGrabber". However when I look into qedit.h file (which is included) it seems to have been defined there. &lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
EXTERN_C const CLSID CLSID_SampleGrabber;&lt;br /&gt;
#ifdef __cplusplus&lt;br /&gt;
class DECLSPEC_UUID("C1F400A0-3F08-11d3-9F0B-006008039E37")&lt;br /&gt;
SampleGrabber;&lt;br /&gt;
#endif&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Why is it reading "00000000-0000-0000-0000-000000000000" when it should read it as "C1F400A0-3F08-11d3-9F0B-006008039E37". What I am missing ? To experiment, i deliberately rename qedit.h file to Xqedit.h and my project would not compile. So its clear that it is trying to include and build qedit.h. Any help will be appreciated. Thanks in advance&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408982/408982/cocreateinstance-class-not-regsitered/</guid>
      <pubDate>Mon, 09 Nov 2009 11:41:41 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Help needed !! ( displaying roman character )</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408942/408942/help-needed---displaying-roman-character-/</link>
      <description>Hello ,&lt;br /&gt;
&lt;br /&gt;
I need help on how to change user entered numerical number into Roman character.&lt;br /&gt;
&lt;br /&gt;
For example ,  1 = i , 2 = ii , 5 = v , 10 = x , 13 = xiii&lt;br /&gt;
&lt;br /&gt;
I have done the programming half way and do not know how to continue&lt;br /&gt;
from 11 onward.&lt;br /&gt;
&lt;br /&gt;
Please advice !!!&lt;br /&gt;
---------------------------------------------------------------------&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int romanize(int q, int base, char letter)&lt;br /&gt;
{&lt;br /&gt;
   int counter, counter2, temp, test;&lt;br /&gt;
   &lt;br /&gt;
	if(base == 1)&lt;br /&gt;
	 {&lt;br /&gt;
	 &lt;br /&gt;
	    if(q &amp;lt; 5)&lt;br /&gt;
         {&lt;br /&gt;
	      printf("Romanize character is ");&lt;br /&gt;
            for(counter = 1; counter &amp;lt;= q; counter++)&lt;br /&gt;
             {   &lt;br /&gt;
              printf("%c",letter);&lt;br /&gt;
             } &lt;br /&gt;
   	     }&lt;br /&gt;
   &lt;br /&gt;
        if(q &amp;gt;=5 &amp;amp;&amp;amp; q &amp;lt;=9)&lt;br /&gt;
         {&lt;br /&gt;
	      printf("Romanize character is v");&lt;br /&gt;
	      temp = q - 5;&lt;br /&gt;
	      for(counter = 1; counter &amp;lt;= temp; counter++)&lt;br /&gt;
	       {&lt;br /&gt;
	        printf("%c",letter);&lt;br /&gt;
	       }&lt;br /&gt;
		 }  &lt;br /&gt;
	 }&lt;br /&gt;
//-------------------------------------------------------------------------------------------&lt;br /&gt;
    if(base == 2)&lt;br /&gt;
	 {&lt;br /&gt;
	    test = q;&lt;br /&gt;
		counter = 0;&lt;br /&gt;
		counter2 = 0; &lt;br /&gt;
		&lt;br /&gt;
		 if(test &amp;lt;= 10 &amp;amp;&amp;amp; test &amp;lt;= 49)&lt;br /&gt;
         {&lt;br /&gt;
	        &lt;br /&gt;
			&lt;br /&gt;
			while( test &amp;gt;= 9 )&lt;br /&gt;
			 {&lt;br /&gt;
			  test = test - 10;&lt;br /&gt;
			  counter2++;&lt;br /&gt;
		     }&lt;br /&gt;
		    &lt;br /&gt;
			printf("inside loop is : %d\n",counter2);&lt;br /&gt;
			&lt;br /&gt;
			printf("Romanize character is ");&lt;br /&gt;
            for(counter = 1; counter &amp;lt;= counter2; counter++)&lt;br /&gt;
             {   &lt;br /&gt;
              printf("%c",letter);&lt;br /&gt;
             } &lt;br /&gt;
			 &lt;br /&gt;
		   if(test &amp;lt; 5)&lt;br /&gt;
            {&lt;br /&gt;
	          for(counter = 1; counter &amp;lt;= test; counter++)&lt;br /&gt;
               {   &lt;br /&gt;
                printf("i");&lt;br /&gt;
               } &lt;br /&gt;
   	        }&lt;br /&gt;
   &lt;br /&gt;
            if(test &amp;gt;=5 &amp;amp;&amp;amp; test &amp;lt;=9)&lt;br /&gt;
            {&lt;br /&gt;
	         printf("v");&lt;br /&gt;
	         temp = test - 5;&lt;br /&gt;
	         for(counter = 1; counter &amp;lt;= temp; counter++)&lt;br /&gt;
	         {&lt;br /&gt;
	          printf("%i");&lt;br /&gt;
	         }&lt;br /&gt;
		    }   	 &lt;br /&gt;
   	     }&lt;br /&gt;
   &lt;br /&gt;
        &lt;br /&gt;
	 }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
    int i, n, ch, number, count, intnumber[10];&lt;br /&gt;
    number = 0, count=0, i=0;&lt;br /&gt;
	&lt;br /&gt;
	printf("input ?: ");&lt;br /&gt;
    ch = getchar();&lt;br /&gt;
  &lt;br /&gt;
    while(ch!='\n')&lt;br /&gt;
     {&lt;br /&gt;
      if('0' &amp;lt;= ch &amp;amp;&amp;amp; ch &amp;lt;= '9')&lt;br /&gt;
	   {&lt;br /&gt;
	    	&lt;br /&gt;
		//This is to count the number of digit the user has enter//&lt;br /&gt;
		n = 0;&lt;br /&gt;
		n = n * 10;&lt;br /&gt;
		n = n + (ch - '0');&lt;br /&gt;
		intnumber[i] = n;//Store each entered digit into array "intnumber[]"//&lt;br /&gt;
		count++;&lt;br /&gt;
		i++;&lt;br /&gt;
		//--------------------------------------------------------//&lt;br /&gt;
		&lt;br /&gt;
		number = number * 10;&lt;br /&gt;
		number = number + (ch - '0');&lt;br /&gt;
	   }&lt;br /&gt;
	  &lt;br /&gt;
	  ch = getchar();&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
	 printf("count is %d\n",count);&lt;br /&gt;
	 printf("number is %d\n",number);&lt;br /&gt;
	 &lt;br /&gt;
	 if( count &amp;lt;= 1 ) // number is less than 10&lt;br /&gt;
	  {&lt;br /&gt;
	  romanize(number,count,'i');&lt;br /&gt;
	  }&lt;br /&gt;
	 else if( count &amp;gt; 1 ) // number is (10 &amp;lt;= number &amp;lt;=99)&lt;br /&gt;
	  {&lt;br /&gt;
	  romanize(number,count,'x');&lt;br /&gt;
      }&lt;br /&gt;
   &lt;br /&gt;
 &lt;br /&gt;
}</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408942/408942/help-needed---displaying-roman-character-/</guid>
      <pubDate>Fri, 06 Nov 2009 15:59:48 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Hi my code is giving lots of errors pls help me out</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408869/408869/hi-my-code-is-giving-lots-of-errors-pls-help-me-out/</link>
      <description>--------------------Configuration: bitmaps - Win32 Debug--------------------&lt;br /&gt;
Compiling...&lt;br /&gt;
ecgone.cpp&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(555) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(556) : error C2059: syntax error : 'constant'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(560) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(561) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(562) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(565) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(566) : error C2059: syntax error : ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(570) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(571) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(572) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(575) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(576) : error C2059: syntax error : ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(580) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(581) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(582) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(585) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(586) : error C2059: syntax error : ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(590) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(591) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(592) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(595) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(596) : error C2059: syntax error : ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(600) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(601) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(602) : error C2059: syntax error : ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(605) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(606) : error C2143: syntax error : missing ')' before ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(606) : error C2512: 'PegProgressBar' : no appropriate default constructor available&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(607) : error C2143: syntax error : missing ';' before ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(612) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(613) : error C2143: syntax error : missing ')' before ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(613) : error C2512: 'PegProgressBar' : no appropriate default constructor available&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(614) : error C2143: syntax error : missing ';' before ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(618) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(619) : error C2143: syntax error : missing ')' before ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(619) : error C2512: 'PegTextBox' : no appropriate default constructor available&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(620) : error C2143: syntax error : missing ';' before ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(624) : error C2143: syntax error : missing ';' before '.'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(625) : error C2143: syntax error : missing ')' before ','&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(625) : error C2512: 'PegTextBox' : no appropriate default constructor available&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(626) : error C2143: syntax error : missing ';' before ')'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : error C2143: syntax error : missing ';' before '}'&lt;br /&gt;
D:\Desktop\examples\kiran\ecg\ecgone.cpp(632) : fatal error C1003: error count exceeds 100; stopping compilation&lt;br /&gt;
Error executing cl.exe.&lt;br /&gt;
&lt;br /&gt;
bitmaps.exe - 102 error(s), 0 warning(s)&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=1296"&gt;ecgone.cpp&lt;/a&gt; (26562 bytes | downloaded 10 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408869/408869/hi-my-code-is-giving-lots-of-errors-pls-help-me-out/</guid>
      <pubDate>Thu, 05 Nov 2009 04:56:40 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Problem Help?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408855/408855/problem-help/</link>
      <description>Hey im new to c++ and i can't figure out how to do this problem. Any help would be greatly appreciated =]&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=1295"&gt;mach_prob_08.pdf&lt;/a&gt; (268787 bytes | downloaded 8 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408855/408855/problem-help/</guid>
      <pubDate>Wed, 04 Nov 2009 23:51:09 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Help with this problem</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408854/408854/help-with-this-problem/</link>
      <description>Hey so im new to c++ and im having trouble with this problem, any help?&lt;br /&gt;
Thanks =]&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=1294"&gt;mach_prob_08.pdf&lt;/a&gt; (268787 bytes | downloaded 13 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408854/408854/help-with-this-problem/</guid>
      <pubDate>Wed, 04 Nov 2009 23:46:53 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>How to set maximum length for EditControl (textBox)</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408843/408843/how-to-set-maximum-length-for-editcontrol-textbox/</link>
      <description>Hi all, &lt;br /&gt;
&lt;br /&gt;
I now using Visual C++ (Visual Studio 2005) for my project. i face some problem in set the maximum length for my edit control(text box).&lt;br /&gt;
&lt;br /&gt;
i have 3 edit control in the same dialog. i want set the maximum length for each edit control = 5.&lt;br /&gt;
&lt;br /&gt;
following are the 3 ID of edit control in same dialog:&lt;br /&gt;
IDC_EDIT_MCNO&lt;br /&gt;
IDC_EDIT_MCSERIALNO&lt;br /&gt;
IDC_EDIT_LOCATION&lt;br /&gt;
&lt;br /&gt;
The dialog ID is: IDD_MACHINE&lt;br /&gt;
&lt;br /&gt;
Please guide me for set max length. &lt;br /&gt;
&lt;br /&gt;
Thanks very for your help. i will very appreciate. :) &lt;br /&gt;
&lt;br /&gt;
Regards:&lt;br /&gt;
Alice  :) &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408843/408843/how-to-set-maximum-length-for-editcontrol-textbox/</guid>
      <pubDate>Wed, 04 Nov 2009 19:15:19 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Peg Jump Game</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408833/408833/peg-jump-game/</link>
      <description>Hi Experts,&lt;br /&gt;
I am looking for a sample code for a peg jump game. Can anyone help me with a sample code for this game. I want to practcise how to write it&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408833/408833/peg-jump-game/</guid>
      <pubDate>Wed, 04 Nov 2009 10:37:42 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>struct queue to txt filr</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408756/408756/struct-queue-to-txt-filr/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have a queue containing a struction of two char array and two int, how can I save all the queue to a txt file?&lt;br /&gt;
&lt;br /&gt;
This is the struct:&lt;br /&gt;
&lt;br /&gt;
struct node &lt;br /&gt;
{&lt;br /&gt;
	char a[30];&lt;br /&gt;
	char b[50];&lt;br /&gt;
	float c;&lt;br /&gt;
	int d;&lt;br /&gt;
	struct node *next;&lt;br /&gt;
};&lt;br /&gt;
struct node *list_head, *list_tail;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408756/408756/struct-queue-to-txt-filr/</guid>
      <pubDate>Tue, 03 Nov 2009 03:45:35 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Help me in these programs Plz ):</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408713/408713/help-me-in-these-programs-plz-/</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;Hello guys and I will not forget you 4ever ..&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;
1.	Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner:&lt;br /&gt;
MILAGE REIMBERSMENT CALCULATOR&lt;br /&gt;
Enter beginning odometer reading=&amp;gt; 132505.2&lt;br /&gt;
Enter ending odometer reading=&amp;gt; 13810.6&lt;br /&gt;
You traveled 305.4 miles. At $0.35 per mile,&lt;br /&gt;
Your reimbursement is $106.89.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	Write a program that estimates the temperature in a freezer (in degrees C) given the elapsed time (hours) since a power failure. Assume this temperature (T) is given by&lt;br /&gt;
&lt;br /&gt;
T = 4t^2/ (t+2) – 20&lt;br /&gt;
&lt;br /&gt;
Where t is the time since the power failure&lt;br /&gt;
 Your program should prompt the user to enter how long it has been since the start of power failure in whole hours and minutes. Note that you will need to convert the elapsed time into hours. For example, if the user entered 2:30 (2 hours 30 minutes), you would convert this to 2.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Write a program to convert a temperature in degrees Fahrenheit to degrees Celsius.&lt;br /&gt;
Data requirements:&lt;br /&gt;
Problem input – int Fahrenheit &lt;br /&gt;
Problem output – Double Celsius&lt;br /&gt;
Relevant formula – Celsius = 5/9 (Fahrenheit – 32)&lt;br /&gt;
&lt;br /&gt;
4.	Write a program to take two numbers as input data and to display their sum, difference, product, and their average.&lt;br /&gt;
Problem Inputs:&lt;br /&gt;
Double x,y&lt;br /&gt;
Problem outputs:&lt;br /&gt;
Double sum, difference, product, and average&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	Write a program that predicts the score needed on a final exam to achieve a desired grade in a course. The program should interact with the user in following manner:&lt;br /&gt;
Enter Desired grade &amp;gt; B&lt;br /&gt;
Enter minimum average required &amp;gt; 79.5&lt;br /&gt;
Enter current average in course&amp;gt; 74.6&lt;br /&gt;
Enter how much the final counts as percentage of the course grade&amp;gt; 25&lt;br /&gt;
You need a score of 94.20 on the final to get a B.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.	Write a program that takes the length and width of a rectangle. It computes its area, and displays it.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408713/408713/help-me-in-these-programs-plz-/</guid>
      <pubDate>Mon, 02 Nov 2009 06:17:52 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Help me in these programs Plz ):</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408712/408712/help-me-in-these-programs-plz-/</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;Hello guys and I will not forget you 4ever ..&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;
1.	Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner:&lt;br /&gt;
MILAGE REIMBERSMENT CALCULATOR&lt;br /&gt;
Enter beginning odometer reading=&amp;gt; 132505.2&lt;br /&gt;
Enter ending odometer reading=&amp;gt; 13810.6&lt;br /&gt;
You traveled 305.4 miles. At $0.35 per mile,&lt;br /&gt;
Your reimbursement is $106.89.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	Write a program that estimates the temperature in a freezer (in degrees C) given the elapsed time (hours) since a power failure. Assume this temperature (T) is given by&lt;br /&gt;
&lt;br /&gt;
T = 4t^2/ (t+2) – 20&lt;br /&gt;
&lt;br /&gt;
Where t is the time since the power failure&lt;br /&gt;
 Your program should prompt the user to enter how long it has been since the start of power failure in whole hours and minutes. Note that you will need to convert the elapsed time into hours. For example, if the user entered 2:30 (2 hours 30 minutes), you would convert this to 2.5 hours.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Write a program to convert a temperature in degrees Fahrenheit to degrees Celsius.&lt;br /&gt;
Data requirements:&lt;br /&gt;
Problem input – int Fahrenheit &lt;br /&gt;
Problem output – Double Celsius&lt;br /&gt;
Relevant formula – Celsius = 5/9 (Fahrenheit – 32)&lt;br /&gt;
&lt;br /&gt;
4.	Write a program to take two numbers as input data and to display their sum, difference, product, and their average.&lt;br /&gt;
Problem Inputs:&lt;br /&gt;
Double x,y&lt;br /&gt;
Problem outputs:&lt;br /&gt;
Double sum, difference, product, and average&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	Write a program that predicts the score needed on a final exam to achieve a desired grade in a course. The program should interact with the user in following manner:&lt;br /&gt;
Enter Desired grade &amp;gt; B&lt;br /&gt;
Enter minimum average required &amp;gt; 79.5&lt;br /&gt;
Enter current average in course&amp;gt; 74.6&lt;br /&gt;
Enter how much the final counts as percentage of the course grade&amp;gt; 25&lt;br /&gt;
You need a score of 94.20 on the final to get a B.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.	Write a program that takes the length and width of a rectangle. It computes its area, and displays it.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408712/408712/help-me-in-these-programs-plz-/</guid>
      <pubDate>Mon, 02 Nov 2009 06:16:12 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>XOR on 128-bits datas</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/408672/408672/xor-on-128-bits-datas/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I would like to do an XOR operation on two 128-bits values.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
#include "md5.h"&lt;br /&gt;
&lt;br /&gt;
data1 = md5("foo");&lt;br /&gt;
data2 = md5("bar");&lt;br /&gt;
&lt;br /&gt;
result = data1 ^ data2;&lt;br /&gt;
&lt;br /&gt;
According to you, want could be the best way to do so? If you could show me a C example, this will help me a lot.&lt;br /&gt;
&lt;br /&gt;
Many Thanks!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/408672/408672/xor-on-128-bits-datas/</guid>
      <pubDate>Sun, 01 Nov 2009 12:28:32 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>