ScopesNamed entities, such as variables, functions, and compound types need to be declared before being used in C++. The point in the program where this declaration happens influences its visibility:1... Read More
posted @ 2014-02-05 17:11 刺客主谋 Views(196) Comments(0) Diggs(0) Edit
Overloaded functionsIn C++, two different functions can have the same name if their parameters are different; either because they have a different number of parameters, or because any of their parameters are of a different type. For example:// overloading functions#include using namespace std;int op Read More
posted @ 2014-02-05 16:39 刺客主谋 Views(168) Comments(0) Diggs(0) Edit
FunctionsFunctions allow to structure programs in segments of code to perform individual tasks. In C++, a function is a group of statements that is given a name, and which can be called from some poi... Read More
posted @ 2014-02-05 16:18 刺客主谋 Views(245) Comments(0) Diggs(0) Edit
原地址http://www.cplusplus.com/doc/tutorial/pointers/PointersIn earlier chapters, variables have been explained as locations in the computer's memory which can be accessed by their identifier (their nam... Read More
posted @ 2014-01-29 06:10 刺客主谋 Views(302) Comments(0) Diggs(0) Edit
1.不要使用System.out.println作为调试工具Do not useSystem.out.printlnas a tool to debug2.把所有涉及到的组件日志级别激活并使用Enable detailed log level of all the components involved.3.使用日志分析器来读取日志Use a log analyzer to read logs.0.Conditional Breakpoint条件断点(如果你不知道如何添加断点)Hope we know how to add a breakpoint. If not, just click on Read More
posted @ 2014-01-29 00:36 刺客主谋 Views(302) Comments(0) Diggs(0) Edit
原文地址:http://javapapers.com/core-java/eclipse-shortcuts/Editors are an integral part of a programmer’s life. If you have good proficiency in using an editor thats a great advantage. It comes very handy to debug. Traditional notepad and SOPs (System.out.println) are the way we start learning a languag Read More
posted @ 2014-01-29 00:10 刺客主谋 Views(289) Comments(0) Diggs(0) Edit
本文转载于 http://pcedu.pconline.com.cn/empolder/gj/c/0503/567942_all.html#content_page_1所有程序经过本人验证,部分程序经过修改: 验证平台 w530 ,ubuntu 12.10_x64, ecplise 4.3(with CDT)1. 结构体可以包含结构体指针,但绝对不能在结构体中包含结构体变量。(利用结构体的这点特... Read More
posted @ 2014-01-15 02:03 刺客主谋 Views(296) Comments(0) Diggs(0) Edit
参考网址:http://www0.cs.ucl.ac.uk/staff/mahmed/teaching/intro.html参考网址:http://www.swi-prolog.org/build/Debian.html安装% sudo apt-add-repository ppa:swi-prol... Read More
posted @ 2014-01-15 01:17 刺客主谋 Views(1264) Comments(0) Diggs(0) Edit
本文转载于 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