本文转载于 http://pcedu.pconline.com.cn/empolder/gj/c/0503/567930_all.html#content_page_1所有程序经过本人验证,部分程序经过修改: 验证平台 w530 ,ubuntu 12.10_x64, ecplise 4.3(with CDT)1. 定义:构体就是一个可以包含不同数据类型的一个结构,它是一种可以自己定义的数据类型,... Read More
posted @ 2014-01-14 23:47 刺客主谋 Views(217) Comments(0) Diggs(0) Edit
1.Step Into(also F5) 跳入2.Step Over(also F6) 跳过3.Step Return (also F7) 执行完当前method,然后return跳出此method4.step Filter 逐步过滤 一直执行直到遇到未经过滤的位置或断点(设置Filter:window-preferences-java-Debug-step Filtering)5.resum... Read More
posted @ 2014-01-14 23:28 刺客主谋 Views(222) Comments(0) Diggs(0) Edit
原地址: 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
posted @ 2014-01-14 23:16 刺客主谋 Views(245) Comments(0) Diggs(0) Edit
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
posted @ 2014-01-14 06:27 刺客主谋 Views(181) Comments(0) Diggs(0) Edit
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
posted @ 2014-01-14 06:23 刺客主谋 Views(254) Comments(0) Diggs(0) Edit
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
posted @ 2014-01-14 06:07 刺客主谋 Views(449) Comments(0) Diggs(0) Edit