码迷,mamicode.com
首页 >  
搜索关键字:状态机 有穷自动机 printf    ( 16150个结果
C++ 复制构造和赋值操作符调用
主要是为了记录说明 : class A; A a; A b = a; //这个是调用复制构造函数呢?还是先构造,再调用赋值操作符? 结果是前者。 测试代码:  #include #include class A { public: A() { printf("%s\n", "A constructor"); } A(cons...
分类:编程语言   时间:2014-05-15 11:17:40    阅读次数:365
Tinyos学习笔记(三)
读取Telosb内部传感器数据,并在计算机上显示。senseC.nc代码如下: 1 #include "Timer.h" 2 #include "sense.h" 3 #include "printf.h" 4 5 module senseC 6 { 7 uses{ 8 i...
分类:其他好文   时间:2014-05-15 10:23:47    阅读次数:224
《LINUX SHELL脚本攻略》学习(1)--shell中echo的转义符
0.echo的命令项:(默认bash支持,csh不支持) -n 不输出换行符 -e 打开反斜杠ESC转义 -E 取消反斜杠ESC转义 (默认)1.echo和printf都可以打印输出信息,区别在于echo默认是添加换行符(\n)的; echo -n "xxxx" ,也可以取消换行符2.echo可.....
分类:系统相关   时间:2014-05-15 09:58:03    阅读次数:389
Call back function implement
Call back function easily implement     #include void HelloWorld(int nIndex) { printf("%d person say Hello World\n",nIndex); } void MyName(int len) { printf...
分类:其他好文   时间:2014-05-15 04:21:05    阅读次数:270
C++备忘录
类的大小 空类(不含成员变量和虚函数):因为对象不可能不占内存,否则这个对象怎么存在,所以C++规定空类对象内存大小为1。class EC { public: EC(){} ~EC(){}; void EC1() { printf("EC1\n"); } }; class EVC { public: EVC(){} ~EVC(){}; void EVC1() {...
分类:编程语言   时间:2014-05-15 04:08:52    阅读次数:302
Cocos2d-x 系列三之C++语言
1.面向对象直接定义类class People {public: void sayHello() { printf("hello c oop \n"); }}; People * p = new People(); p->sayHello();使用头文件定义Ml...
分类:编程语言   时间:2014-05-15 02:23:54    阅读次数:440
C中字符串常见操作
#include #include #include #include #include // #include int main(void){ char str1[]="This is the first string"; char str2[]="That is the other string"; // printf(strcpy(str1,str...
分类:其他好文   时间:2014-05-15 01:39:40    阅读次数:348
学习C/C++语言:文件的操作
#include #include void main(int argc,char *argv[]) { FILE *in,*out; if(argc!=3) { printf("you forgot to enter a file name\n"); exit(0); } if((in=fopen(argv[1],"r"))==NULL) { printf("cannot...
分类:编程语言   时间:2014-05-14 21:37:56    阅读次数:321
printf的实现(不借助stdarg.h中的宏)
实现了%d %x %c %s对变长函数的参数取址有了深刻的理解 ,蒋yy的实验任务其实还是很有帮助的^_^ 1 int printf ( const char * format, ... ) 2 { 3 int Count=0; 4 int index=0; 5 char b...
分类:其他好文   时间:2014-05-13 11:01:59    阅读次数:226
C primer plus 学习随笔
数据类型int类型 printf()输出八进制整数时,用%o代替%d,输出十六进制时,用%x。 %#o、%#x和%#X分别生成0、0x、0X前缀。1 #include 2 int main(void)3 {4 int x = 100;5 printf("dec = %d; oc...
分类:其他好文   时间:2014-05-11 17:50:15    阅读次数:379
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!