码迷,mamicode.com
首页 >  
搜索关键字:printf bc    ( 16964个结果
C语言回顾一“Hello world”
每个学程序的人都是冲“Helloworld”开始进入神奇编程的世界!简单的代码:#include<stdio.h>intmain(){printf("HelloWorld\n");}#include<stdio.h>将从编译器的安装文件夹下的include文件夹下去搜索stdio.h头文件。stdio.h是标准的输入输出流文件。intmain()是整..
分类:编程语言   时间:2014-05-15 19:09:59    阅读次数:280
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
C/C++语言基础---笔记四
int *p;//(int *)修饰的是内存地址,也就是32位二进制无符号整数//*p等价于int类型数据//p 一个内存地址//*根据内存地址取出内容//&根据变量取出地址//任何类型的指针都占4个字节int a, b; scanf("%d%d",&a,&b);//接收输入值 printf("%d...
分类:编程语言   时间:2014-05-15 07:46:49    阅读次数:275
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!