摘要:
#include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for(p=x; p<x+N; ++p)printf("%d", *p);printf("\n"); return 0; }2004 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; } Book; int main() { Book x[ 阅读全文
摘要:
#include<stdio.h> #define N 4 int main() { int a[N] = { 2,0,2,2 }; char b[N] = { '2','0','2','2' }; int i; printf("sizeof(int)=%d\n", sizeof(int)); pr 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printtext(int line, int col, char text[]); void printspace 阅读全文
摘要:
恢复内容开始 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); for (i = 阅读全文
摘要:
#include<stdio.h> #include<math.h> int main() { double F, C; while (scanf("%lf", &C) != 0) { F = 9 * C / 5 + 32; printf("摄氏度C=%.2f时,华氏度F=%.2f", C, F); 阅读全文
摘要:
#include<stdio.h> #include<math.h> int main() { double x, ans; while (scanf("%lf", &x) != 0) { ans = pow(x, 365); printf("%.2f的365次方:%.2f\n", x, ans); 阅读全文
摘要:
#include<stdio.h> int main() { int answer; char words[5000]; printf("网课学习让一些人欢喜一些人忧。\n"); printf("1.作为喜欢学习且自律的人,觉得这样很好,有网络自主学习,很ok。\n"); printf("2.不喜, 阅读全文
摘要:
#include<stdio.h> int main() { char ans1, ans2; printf("第三章认真学完了吗?(输入Y或y表示认真学完了一遍,输入N或n表示没有):"); ans1 = getchar(); getchar(); printf("动手敲代码实践了吗?(输入Y或y 阅读全文
摘要:
#include<stdio.h> int main() { int age1, age2; char gender1, gender2; scanf("%d%c%d%c", &age1, &gender1, &age2, &gender2); printf("age1= %d,gender1= % 阅读全文