2019-11-24 23:47:14
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char *ch; ch=(char*)calloc(30,sizeof(char)); strcpy(ch,"ILOVEYOU"); printf("%s\n",ch); free(ch); return 0;}
2019-11-24 23:05:12
#include <stdio.h>#include <stdlib.h>int main(){ int *iIntMalloc=(int*)malloc(sizeof(int)); *iIntMalloc=10240; printf("衣服有%d件\n",*iIntMalloc); return 0;}
2019-11-24 22:27:02
#include <stdio.h>#include <stdlib.h>void DisplayB(char* string){ printf("%s\n",string);}void DisplayA(char*string){ char String[20]="LoverWorld!"; printf("%s\n",string); DisplayB(String);}int main(){ char St
2019-11-24 18:52:31
#include <stdio.h>#include <stdlib.h>int main(){ char *pInt; pInt=(char*)malloc(sizeof(char)); *pInt=65; printf("the graph is:%c\n",*pInt); free(pInt); return 0;}
2019-11-24 15:30:53
#include <stdio.h>#include <process.h>void main(){ FILE *fp1,*fp2; char ch,filename1[30],filename2[30]; printf("请输入文件名1:\n"); scanf("%s",filename1); printf("请输入文件名2:\n"); scanf("%s",filename2); if((
2019-11-24 13:32:31
#include <stdio.h>#include <process.h>int main(){ int n; FILE *fp; char ch,str[30],filename[30]; printf("please input the filename:\n"); scanf("%s",filename); if((fp=fopen(filename,"w"))==NULL){ printf("
2019-11-24 11:13:54
#include <stdio.h>#include <process.h>void main(){ FILE *fp; char ch,filename[30]; printf("please input filename:\n"); scanf("%s",filename); if((fp=fopen(filename,"r"))==NULL){ printf("can not open file
2019-11-23 22:00:27
#include <stdio.h>#include <process.h>void main(){ FILE *fp; char filename[30],str[50]; printf("please input the filename:\n"); scanf("%s",filename); if((fp=fopen(filename,"wb"))==NULL){ printf("can not
2019-11-18 23:42:00
#include <stdio.h>#include <process.h>void main(){ FILE *fp; char i,j; char filename[30]; printf("please input the filename:\n"); scanf("%s",filename); while((fp=fopen(filename,"r"))==NULL){ printf("can
2019-11-18 23:02:30
#include <stdio.h>#include <process.h>void main(){ FILE *fp; int i=88; char filename[30]; printf("please input filename:\n"); scanf("%s",filename); if((fp=fopen(filename,"w"))==NULL){ printf("can not op