摘要: 代码1:// 1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdio.h" int main(int argc, char* argv[]) { int a,b,sum; a = 123; b = 456; sum =... 阅读全文
posted @ 2019-04-08 15:13 201821440024 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"#include "time.h" #include "stdlib.h" int main(){ int i; char c,gu; srand((unsigned)time(NULL)); c=6; gu=rand()%6+1; for(i=1;i<=100; 阅读全文
posted @ 2019-03-24 21:54 201821440024 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){int year;for(year=2000;year<=2500;year=year+1){if (year%4!=0){ printf("%d不是闰年",year);}else if(year%100!=0){ printf("%d是闰年 阅读全文
posted @ 2019-03-08 17:41 201821440024 阅读(212) 评论(0) 推荐(0) 编辑