原地址: http://blog.csdn.net/abcjennifer/article/details/7573916Linux下出现launch failed.Binary not found的解决方案:首先当你把网上关于mingw的解决方案都看晕了的时候,告诉你,别看关于mingw的了。Linux下不用mingw,直接由Linux GCC完成1、看你的Eclipse下面控制台Console输出,如果有g++ not found 的话,说明你的系统g++没安装成功。解决方案:Ctrl+Alt+t到terminal(控制台)模式,输入sudo apt-get install g++2、还不 Read More
1. c_str是把string类型强制转换为const string2. atpi(): Convert string to integer --Parses the C-string str interpreting its content as an integral number, which is returned as a value of type int.int atoi (const char * str);atol:Convert string to long integer (function )atof:Convert string to double (functio Read More
As you are just learning C, i recommend you to really try to understand the differences between arrays and pointers first instead of the common things.In the area of parameters and arrays, there are a few confusing rules that should be clear before going on. First, what you declare in a parameter li Read More
int main(int argc, char* argv[])這兩個參數的作用是什麼呢?argc 是指命令行輸入參數的個數,argv存儲了所有的命令行參數。假如你的程式是hello.exe,如果在命令行運行該程式,運行命令為:hello.exe hello world那麼,argc的值是 3,argv[0]是"hello.exe",argv[1]是"hello",argv[2]是"world"。... Read More