very good! what i need is the third solution , both the source code in multiline and the output! thank you! thanks all! I love Programming
xiaohe521
Posts
-
how to define a const multileline string -
how to define a const multileline stringthe solution as: const string TEMPLATE = "HELLO! \n\ IF YOU CAN HELP ME ,\n\ I WILL THANK YOU VERY MUCH!"; I love Programming
-
how to define a const multileline stringsorry , i don't want the "\n", because it not readable if there is a solution that present multile line is very good! I love Programming
-
how to define a const multileline stringhow to define a const multileline string as const string TEMPLATE = "HELLO! IF YOU CAN HELP ME , I WILL THANK YOU VERY MUCH"; this can not pass complie I love Programming
-
how to convert a integer from hex to decimalyes, the diffrent is the string's represent format, i know how to represent a integer to diffrent format string as
char *_itoa( int value, char *string, int radix );
butint atoi( const char *string );
the function has only one param, no format param must i write a function to do this? I love Programming -
how to convert a integer from hex to decimalas subject thx I love Programming
-
can STL process wchar_t?when i write the code: PWSTR env = _L("hello!"); std::cout<
-
implicit typename is deprecatedmy compiler is gcc I love Programming
-
implicit typename is deprecatedHi why compile this method occurs warning! can the warnnings be disapper?
template void Fun() { vector vecTest; vector::iterator iter = vecTest.begin(); }
main.cpp: In function `void Fun()': main.cpp:10: warning: `typename std::vector >::iterator' is implicitly a typename main.cpp:10: warning: implicit typename is deprecated, please see the documentation for details please help me I love Programming -
using ifstream to read a file.but why do you need to read from beginning again I love Programming
-
Save & Openclass Photo { std::string sName; std::string sPhoneNo; } class Photos { public: Photos(std::string sFileName) { //readFromFile } bool SaveToFile(std::string sFileName); private: list lstPhoto; } I love Programming
-
C++ file I/Ochar buf[100]; ifstream file("test.txt"); ... file.getline(buf, 100); you should do this I love Programming