黑与灰

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年7月18日

摘要: #include<stdio.h>#include<string.h>//因为引用了strlen,scanf,strcmy函数#include<windows.h>//因为引用了sleep函数#include<stdlib.h>//因为引用了 systemint main(){ int i = 0; 阅读全文
posted @ 2021-07-18 23:12 黑与灰 阅读(39) 评论(0) 推荐(0)

2021年7月13日

摘要: #include<stdio.h>#include<math.h>#include<string.h>int main(){ //shutdown -s -t 60 关机指令shutdown,-s:设置 -t时间 60s //shutdown -a 取消关机指令 char input[20] = { 阅读全文
posted @ 2021-07-13 15:30 黑与灰 阅读(57) 评论(0) 推荐(0)

2021年7月8日

摘要: #include<math.h>#include<stdio.h>int main(){ int lilynumber=0; for (lilynumber = 10000; lilynumber < 99999; lilynumber++) { int j = 10000; int sum = 0 阅读全文
posted @ 2021-07-08 21:40 黑与灰 阅读(30) 评论(0) 推荐(0)

2021年7月5日

摘要: #define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#include<string.h>int main(){ int ch = 0; //输入一个 Ctrl + z 就会获取EOF 代码结束 // EOF - end of file -> -1 wh 阅读全文
posted @ 2021-07-05 01:03 黑与灰 阅读(42) 评论(0) 推荐(0)

2021年7月1日

摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h>#include <string.h>int main(){ char ch = 'w'; char* pc = &ch; printf("%d\n", sizeof(pc)); //*pc = 阅读全文
posted @ 2021-07-01 22:42 黑与灰 阅读(125) 评论(0) 推荐(0)

摘要: #define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#include<string.h>int main(){ int arr[10] = { 0 };//10个整形元素数组 int sz = 0; //10*sizeof(int)=40 printf 阅读全文
posted @ 2021-07-01 22:41 黑与灰 阅读(51) 评论(0) 推荐(0)

摘要: #define _CRT_SECURE_NO_WARNINGS 1//包含一个stdio .h的文件//std-标准 standard input output#include <stdio.h> int main(){ int sum = 0; int num1 = 0; int num2 = 0 阅读全文
posted @ 2021-07-01 22:39 黑与灰 阅读(38) 评论(0) 推荐(0)