编程语言
1.如何将a,b的值进行交换,并且不适用任何中间变量 #include void first(int a,int b) { a=a+b; b=a-b; a=a-b; printf("%d %d\n",a,b); } void second(int a,int b) { a=a^b; b=a^b; a=a^b; printf("...
分类:编程语言 时间:2014-03-01 08:11:14 收藏:0 阅读:543
C/C++中的64位整数(__int64 and long long) 在做ACM题时,经常都会遇到一些比较大的整数。而常用的内置整数类型常常显得太小了:其中long 和 int 范围是[-2^31,2^31),即-2147483648~2147483647。而unsigned范围是[0,2^32)...
分类:编程语言 时间:2014-03-01 06:25:46 收藏:0 阅读:616
C语言标准库函数标准io函数Standard C I/Oclearerr() clears errorsfclose() close a filefeof() true if at the end-of-fileferror() checks for a file errorfflush() wri...
分类:编程语言 时间:2014-03-01 06:15:23 收藏:0 阅读:532
wgethttp://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgztar-zxvfPython-2.7.3.tgzcdPython-2.7.3./configuremake;makeinstallcd/usr/binmvpythonpython.b...
分类:编程语言 时间:2014-03-01 05:27:14 收藏:0 阅读:644
http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html
分类:编程语言 时间:2014-03-01 04:51:45 收藏:0 阅读:557
首先大数加法 两个大数相加 string sum(string s1,string s2) { if(s1.length()=0;i--,j--) { s1[i]=char(s...
分类:编程语言 时间:2014-03-01 05:27:46 收藏:0 阅读:502
#include #include //malloc需要此头文件 //定义单链表结点结构体 typedef int ElemType; typedef struct Node { ElemType data; struct Node *next; }LNode,*LinkList; //建立一个带头结点的单链表 void Build(LinkList L) { ...
分类:编程语言 时间:2014-03-01 06:03:11 收藏:0 阅读:745
C++关键字:mutable、volatile、explicit以及__based      mutable关键字     关键字mutable是C++中一个不常用的关键字,他只能用于类的非静态和非常量数据成员我们知道一个对象的状态由该对象的非静态数据成员决定,所以随着数据成员的改变,对像的状态也会随之发生变化! 如果一个类的成员函数被声明为const类型,表示该函数不会改变对象...
分类:编程语言 时间:2014-03-01 05:21:02 收藏:0 阅读:545
const指针 防止指针指向的内容被修改 #include #include using namespace std; struct Elephant{ string name; Elephant* next; }; void print_elephants(const Elephant* ptr); Elephant* get_elephants(); void free_list(c...
分类:编程语言 时间:2014-03-01 06:16:25 收藏:0 阅读:524
local MyScrollView =class("MyScrollView",function () local scrollview = cc.ScrollView:create() -- _minScale=scrollview._minScale -- _maxScale=scrollview._maxScale return scro...
分类:编程语言 时间:2014-03-01 06:08:50 收藏:0 阅读:641
151130511315113251284
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!