摘要:
task.1.1 1 #include <stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 int *p; 9 10 // 方式1:通过数组名和下标遍历输出数组元素 11 for(i=0; 阅读全文
摘要:
1 #include<stdio.h> 2 #define N 5 3 #define M 80 4 5 typedef struct 6 { 7 char name[M]; 8 char author[M]; 9 } Book; 10 11 int main() 12 { 13 Book x[N] 阅读全文
摘要:
#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)); printf("siz 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line,int col,char text[]); void printSpaces( 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int grade,number; int i; srand(time(0)); for(i=0;i<N;++i) { grade=rand( 阅读全文
摘要:
#include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } #include<stdio.h> int main() { int i;int n=2; for(i=1;i< 阅读全文