摘要:
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int mai 阅读全文
摘要:
3 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; int s1; int s2 阅读全文
摘要:
int是连续存放,四个字节char也是连续存放,一个字节一样一样#include <stdio.h> #define N 4 int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; prin 阅读全文
摘要:
1 #include<stdio.h>#include<stdlib.h>#include<time.h>#include<Windows.h>#define N 80 void print_text(int line,int col,char text[]);void print_spaces(i 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i=0,i<N,i++) { number=rand()%500 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n 0\n"); printf("<H>\n <H>\n"); printf("I I\n I I\n"); system("pause"); return 0; } #incl 阅读全文