- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 初学for循环
#include#includevoid main() {int i,sun=0 ; //定义变量i和sunfor (i = 1; i sun += i; //这里理解为sun=sun+iprintf("sun=%d\n", sun); //打印sun的值出来system("pause"); //暂停}
2015-03-27 21:42:24
309
原创 利用格式化输入输出打印出输入的字符
#includevoid 2main(){char a; //定义一个字符变量scanf("%c",&a); //输入一个字符while(a!='@') //循环{printf("%c",a); //打印输入的字符scanf("%c",&a);} //再循环,继续输入一个字符}
2015-03-27 11:51:26
260
原创 利用字符函数打印出输入的字符
void main(){char b; //定义一个字符变量b=getchar();//输入一个字符while(b!='@') //循环{putchar(b);//打印输入的字符b=getchar();//再循环,继续输入一个字符}}
2015-03-27 11:51:08
635
原创 不同部门之间的互访
Switch>enable 进入特权模式Switch#config 进入配置模式 Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 100 创建vlan
2015-03-27 09:49:02
553
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅