C语言图形界面中如何输入文本或参数?答:c[]={"BLACK","BLUE","GREEN","CYAN","RED","MAGENTA","BROWN","LIGHTGRAY"};textbackground(0);/ 设置屏幕背景色 / clrscr();/ 清除文本屏幕 / for(i=1;i<8;i++){ window(10+i*5,5+i,30+i*5,15+i);/ 定义文本窗口 / textbackground(i);/ 定义窗口背景色 / clrscr();...
写一个c程序,界面输入字符ABC,将输入的字符写入文件a.txt,从a.txt中...答:int main(){ FILE *fpa=fopen("a.txt","w");FILE *fpb=fopen("b.txt","r");char chs[10];printf("input chars : ");scanf("%s",chs);fwrite(chs,3,1,fpa);char getChs[10];fread(getChs,3,1,fpb);fclose(fpa);fclose(fpb);for(int i=0;i<3;i++){ if(i%2==0)p...