Nov 27, 2011 at 1:17am UTC  
i having a problem to convert this c coding to c++ coding...can anyone help me to convert it...i need to use it this tuesday..
 
Nov 27, 2011 at 1:44am UTC  
Change main()int  main()
 
Nov 27, 2011 at 1:48am UTC  
Better than that, why don't you just do your own homework and get yourself an 'A'?
 
Nov 27, 2011 at 1:49am UTC  
It's already a C++ program.  Why do you think you need to change anything?
 
Nov 27, 2011 at 1:57am UTC  
this is not my homework...... this is my miniproject in c ...so i want to convert it to c++.....im beginner,i want someone to teach me hot to convert it to c++..that why i post this
 
Nov 27, 2011 at 2:23am UTC  
C is (very nearly) a strict subset of C++. Fix your main()  and it becomes C++
 
Nov 27, 2011 at 3:24pm UTC  
Do you want to convert it into seperete class and then implement it in the main() function . 
 
Nov 27, 2011 at 11:13pm UTC  
You also need iosteam instead of stdlib dont you
 
Nov 27, 2011 at 11:20pm UTC  
You also need iosteam instead of stdlib dont you 
That would be better C++ style, but stdlib is still C++ (as indeed is cstdlib).
 
Last edited on Nov 27, 2011 at 11:20pm UTC  
 
Nov 27, 2011 at 11:24pm UTC  
Im sorry i meant to write stdio. I use stdlib.h for abort() but can i use cstdlib as the proper c++ substitute?
 
Nov 28, 2011 at 4:00am UTC  
thank you very much. all the answer is improve me