摘要:
1 // game of life.cpp 2 //function head 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <windows.h> 6 #include <time.h> 7 #include <ctype.h> 8 //define the size of the two-dimensional array 9 #define SIZE 40 10 void rule(int array[SIZE][SIZE]); 11 //function proto 阅读全文
摘要:
#include<stdio.h>#include<stdlib.h> int main(void){ char *p="abcdefg"; printf("%s\n",p); printf("%s\n","ABCD"); printf ("%s\n",p+4); printf ("%s\n","ABCD"+2); printf ("%c %c\n",p[3],*(p+1)); printf ("%c 阅读全文