九九乘法表的程序如下:#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>#include<stdlib.h>intmain(){ inti=0; intj=0; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) { printf("%d*%d=%2d",i,j,i*j); } printf("\n"); } system("pause"); return0;}注意..
分类:
其他好文 时间:
2016-01-21 15:59:18
阅读次数:
252
#include<stdio.h>
#include<stdlib.h>
intmain()
{
inti=43;
printf("%d\n",printf("%d",printf("%d",i)));
system("pause");
return0;
}printf()返回一个int值,表示被打印的字符数i=43,先输出4343为两个字符,输出22为一个字符,输出1#include<stdio.h>..
分类:
其他好文 时间:
2016-01-20 22:49:27
阅读次数:
163
del_vss.bat1 attrib -h -r -s vssver2.scc /S2 del vssver2.scc /S/F/Q3 del mssccprj.scc /S/F/Q4 5 pause’End zsh 20150108
分类:
其他好文 时间:
2016-01-08 18:39:31
阅读次数:
155
坑1 Observable.just("hello world!") .compose(this.bindUntilEvent(ActivityEvent.PAUSE)) .flatMap(new Func1>() { ...
分类:
其他好文 时间:
2016-01-06 20:02:43
阅读次数:
144
1 #include 2 #include 3 #include 4 #define PI 3.1415926 5 /* run this program using the console pauser or add your own getch, system("pause") o...
分类:
其他好文 时间:
2016-01-05 21:01:20
阅读次数:
278
递归的方法
#include<stdio.h>
intmy_power(intn,intk)
{
if(k-->1)
n*=my_power(n,k);
returnn;
}
intmain()
{
intn=0,k=0,ret=0;
scanf("%d%d",&n,&k);
ret=my_power(n,k);
printf("%d^%d=%d\n",n,k,ret);
system("pause");
return0;
}非递归#i..
分类:
其他好文 时间:
2016-01-04 00:16:47
阅读次数:
180
一、实用性”增强1.C语言中的变量都必须在作用域开始的位置定义!!2.C++中更强调语言的“实用性”,所有的变量都可以在需要使用时再定义。比如:如下代码.intmain(){inti=0;printf("ddd");intk;system("pause");return0;}二、register关键...
分类:
编程语言 时间:
2016-01-04 00:03:52
阅读次数:
259
【1】rem命令简介注释命令,在C语言中相当于/*----------*/,它并不会被执行,只是起到一个注释的作用,便于别人及自己将来阅读和维护脚本。为了更具体的理解,请看示例:新建一个文本文件,命名为rem,修改文件类型为bat,用Notepad++打开编辑内容为: 1 Rem Here is t...
分类:
其他好文 时间:
2015-12-26 16:37:58
阅读次数:
190
究竟是用函数好,还是宏定义好?比较两个数或者表达式大小,首先把它写成宏定义:eg:#include<stdio.h>#include<stdlib.h>#defineMAX(x,y)((x)>(y)?(a):(b))intmain(){inta=2,b=4;intm=0;m=MAX(2,4);printf("%d\n",m);system("pause");return0;}(宏只是字符的..
分类:
其他好文 时间:
2015-12-25 19:31:57
阅读次数:
210
@echo 开始注册copy dcc70.dll %windir%\system32\regsvr32 %windir%\system32\dcc70.dll /s@echo dcc70.dll注册成功@pause@echo 开始注册copy dcc70.dll %windir%\SysWOW64\...