摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main() { int count = 0; FILE* fp; fp = fopen("C:\\Users\\yuyee\\Desktop\\程序 阅读全文
posted @ 2022-12-26 15:38 李龙圭 阅读(26) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char level[ 阅读全文
posted @ 2022-12-24 11:33 李龙圭 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define N 2#define M 4int main() { int a[N][M] = { {1, 9, 8, 4}, {2, 0, 2, 2} }; char b[N][M] = { {'1', '9', '8', '4&# 阅读全文
posted @ 2022-11-24 14:11 李龙圭 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h>#include<windows.h>#define N 80void print_text(int line, int col, char text[]);void print_spaces(in 阅读全文
posted @ 2022-11-05 18:41 李龙圭 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <time.h>#include <math.h>int main(){ int a; int b; int n; printf("猜猜2022年11月哪一天会是你的lucky day\n开始咯,你有三次机会 阅读全文
posted @ 2022-10-23 21:12 李龙圭 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<math.h>#include<time.h>#include<stdlib.h>#define N 5 int main(){ int number; int i; srand(time(0)); for(i=0;i<N;++i){ number 阅读全文
posted @ 2022-10-19 09:25 李龙圭 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 修改n的值后并不能被得到正确的计算结果。应该是由于数据存储的位数不够,当n取32的时候sum已经到达了内存字节的极限,所以此时显示的答案和n为32时的答案一样。源代码为:#include<stdio.h>#include<math.h>int main(){int n; int a = 1; uns 阅读全文
posted @ 2022-10-16 00:20 李龙圭 阅读(36) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-12 09:37 李龙圭 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-12 09:12 李龙圭 阅读(29) 评论(0) 推荐(0) 编辑