Computer Science Canada A problem about the c++ programming. |
Author: | CHINA_yanglei [ Tue Mar 17, 2009 4:15 am ] | ||||||
Post subject: | A problem about the c++ programming. | ||||||
Thank you for solving my question.... [b]Mod Edit: Remember to use syntax and code tags! Thanks ![]()
|
Author: | michaelp [ Tue Mar 17, 2009 8:25 am ] |
Post subject: | RE:A problem about the c++ programming. |
Use code tags! And it should be #include <cstdlib> and #include <iostream>. iostream.h is not standard( I think ) and standard C headers that are used in C++ drop the .h extension, and add a c in front. Example: stdio.h becomes cstdio. |
Author: | Tony [ Tue Mar 17, 2009 11:43 am ] |
Post subject: | RE:A problem about the c++ programming. |
@CHINA_yanglei -- don't mix C with C++, and you'll be avoiding many problems. |
Author: | CHINA_yanglei [ Tue Mar 17, 2009 8:34 pm ] |
Post subject: | Re: RE:A problem about the c++ programming. |
michaelp @ 17/3/2009 wrote: Use code tags!
I also find a error about the "y" which is not appended ' ',and I correct my code just like your advice.The result is satisfied.Thank for your suggestion.Good luck to you!And it should be #include <cstdlib> and #include <iostream>. iostream.h is not standard( I think ) and standard C headers that are used in C++ drop the .h extension, and add a c in front. Example: stdio.h becomes cstdio. |