01 2014 档案

摘要:原地址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... 阅读全文
posted @ 2014-01-29 06:10 刺客主谋 阅读(343) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2014-01-29 00:36 刺客主谋 阅读(313) 评论(0) 推荐(0)
摘要:原文地址: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 阅读全文
posted @ 2014-01-29 00:10 刺客主谋 阅读(302) 评论(0) 推荐(0)
摘要:本文转载于 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. 结构体可以包含结构体指针,但绝对不能在结构体中包含结构体变量。(利用结构体的这点特... 阅读全文
posted @ 2014-01-15 02:03 刺客主谋 阅读(305) 评论(0) 推荐(0)
摘要:参考网址: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... 阅读全文
posted @ 2014-01-15 01:17 刺客主谋 阅读(1350) 评论(0) 推荐(0)
摘要:本文转载于 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. 定义:构体就是一个可以包含不同数据类型的一个结构,它是一种可以自己定义的数据类型,... 阅读全文
posted @ 2014-01-14 23:47 刺客主谋 阅读(229) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-01-14 23:28 刺客主谋 阅读(227) 评论(0) 推荐(0)
摘要:原地址: 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、还不 阅读全文
posted @ 2014-01-14 23:16 刺客主谋 阅读(280) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2014-01-14 06:27 刺客主谋 阅读(191) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2014-01-14 06:23 刺客主谋 阅读(261) 评论(0) 推荐(0)
摘要: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"。... 阅读全文
posted @ 2014-01-14 06:07 刺客主谋 阅读(458) 评论(0) 推荐(0)
摘要:GNU/Linux Method A: Tuxboot下載 GNU/Linux 版本使用的 Tuxboot 在您的環境 在 GNU/Linux 下,請依 指示 來執行 Tuxboot 並安裝再生龍在您的 USB 裝置.安裝與使用如 果使用MS Windows環境,下載tuxboot程式,點選執行後,選擇所要的套件,tuxboot就會下載,或者也可以選擇已經預先下載過的iso或zip檔 案,然後再... 阅读全文
posted @ 2014-01-13 21:49 刺客主谋 阅读(656) 评论(0) 推荐(0)
摘要:Once you finished yourinstallation of Python on your Windows OS, GNU/Linux or Mac OS, let me tell you how to install it on your favorite IDE, Eclipse.First of all, you have todownload Eclipse on th... 阅读全文
posted @ 2014-01-13 18:23 刺客主谋 阅读(256) 评论(0) 推荐(0)
摘要:学习C++ -> 指针初步一、指针 1. 什么是指针? 我们知道, 计算机的内存是由一个个独立的存储单元组成, 并且系统会对每一个存储单元分配一个唯一的号码, 称为这个存储单元的"地址"。分配号码给一个存储单元的目的是为了便于找到它, 从而进行进一步的操作, 比如是读取还是写入。 在C++中, 如果要对某个存储单元进行访问(读取/写入), 有两种方... 阅读全文
posted @ 2014-01-04 05:17 刺客主谋 阅读(184) 评论(0) 推荐(0)
摘要:学习C++ -> 引用( References )一、引用的介绍 引用就是某一变量(目标)的一个别名, 相当于同一个人有了两个名字, 无论喊哪一个名字实际上都是指的同一个人。 同样, 在引用上, 对引用的操作与对变量直接操作的效果完全一样, 因此, 修改引用的值就是在修改变量的值。 从内存角度来说, 引用与变量名指向的都是同一处内存, 对引用地址的操作与对变量名地址的操作都是对... 阅读全文
posted @ 2014-01-04 04:57 刺客主谋 阅读(252) 评论(0) 推荐(0)
摘要:学习C++ -> 类(Classes)的定义与实现一、"类" 的介绍 在C++中, 用 "类" 来描述 "对象", 所谓的"对象"是指现实世界中的一切事物。那么类就可以看做是对相似事物的抽象, 找到这些不同事物间的共同点, 如自行车和摩托车, 首先他们都属于"对象", 并且具有一定得相同点, 和一些不同点, 相同点如他们都有质量、都有两个轮子, 都是属于交通工具等。"都有质量"、"两个轮子"属于这个对象的属性, 而"都能够当做交通工具&qu 阅读全文
posted @ 2014-01-04 04:47 刺客主谋 阅读(249) 评论(0) 推荐(0)
摘要:原文:http://www.cnblogs.com/madengwei/archive/2008/02/18/1072410.html[摘要]指针是C和C++语言编程中最重要的概念之一,也是最容易产生困惑并导致程序出错的问题之一。利用指针编程可以表示各种数据结构, 通过指针可使用主调函数和被调函数之间共享变量或数据结构,便于实现双向数据通讯;并能像汇编语言一样处理内存地址,从而编出精练而高效... 阅读全文
posted @ 2014-01-04 03:46 刺客主谋 阅读(541) 评论(3) 推荐(1)
摘要:原地址:http://www.cnblogs.com/marchtea/archive/2012/02/27/2370068.html前言: 以下的内容为我阅读c++沉思录18,19,20章的笔记以及自己的想法.正文: 总所周知,c++的stl中提出了iterator的概念,这是C所没有的.在一般的使用中,iterator的行为很像c内建的指针.而在 java和c#中索性就直接取消了指针,而采... 阅读全文
posted @ 2014-01-04 02:51 刺客主谋 阅读(272) 评论(0) 推荐(0)
摘要:vector是向量类型,它是一种对象实体,具有值,所以可以看作是变量。 它可以容纳许多其他类型的相同实体,如若干个整数,所以称其为容器。vector类与一般的Array类的区别在于:1. vector支持“向现有的数组元素赋值”的概念以及“插入额外元素”的概念--即vector数组可以在运行时动态增长。2. 代表了更加广泛的应用。它只提供了最小集的操作(如等于、小于操作符, size()、... 阅读全文
posted @ 2014-01-04 02:29 刺客主谋 阅读(609) 评论(0) 推荐(0)