11 2014 档案

摘要:mit三课程:Introduction to Computer Science and Programmingartificial intelligenceintroduction to algorithms 阅读全文
posted @ 2014-11-28 13:42 clq.lib 阅读(171) 评论(0) 推荐(0)
摘要:写的不是很明白,后来又重新整理过了,在:http://www.cnblogs.com/iois/p/4986790.html函数重载(Function Overloading)C++允许同一范围(scope)(在同一个类中)内具有多个名称相同的函数。这些函数成为重载函数(overloaded fun... 阅读全文
posted @ 2014-11-09 15:45 clq.lib 阅读(589) 评论(0) 推荐(0)
摘要:翻译自msdn,如有不妥当的地方,欢迎指正。声明(Declaration):声明引入了一个名字以及其类型进入程序中,并没有定义一个相关的对象或者函数。然而,很多声明都作为定义使用。定义(definition):定义提供了 允许编译器为对象分配内存和生成函数代码的信息。生命周期(lifetime):一... 阅读全文
posted @ 2014-11-09 14:31 clq.lib 阅读(411) 评论(0) 推荐(0)
摘要:比较简单的问题:#include#includeusing namespace std;int main(){ int lengthOfLastWord(const char *s); char a[20]; cin.getline(a,20); cout << length... 阅读全文
posted @ 2014-11-05 19:52 clq.lib 阅读(175) 评论(0) 推荐(0)
摘要:一个简单的问题:c++#includeusing namespace std;int searchInsert(int a[],int n,int target){ int i ,count; if (targeta[n-1]){ count= n; retu... 阅读全文
posted @ 2014-11-05 10:39 clq.lib 阅读(118) 评论(0) 推荐(0)