说明语法错误include"stdio.h"void main(){int nameprintf("1.xujintint \n");printf("2.mather \n");Printf("3.bad \n");printf("press 1 to 5 to select:\n");scanf("%d",name);switch(name){case 1:printf("\n I'm me \n");break;case 2:printf(("\n this is m

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 03:06:06
说明语法错误include

说明语法错误include"stdio.h"void main(){int nameprintf("1.xujintint \n");printf("2.mather \n");Printf("3.bad \n");printf("press 1 to 5 to select:\n");scanf("%d",name);switch(name){case 1:printf("\n I'm me \n");break;case 2:printf(("\n this is m
说明语法错误
include"stdio.h"
void main(){
int name
printf("1.xujintint \n");
printf("2.mather \n");
Printf("3.bad \n");
printf("press 1 to 5 to select:\n");
scanf("%d",name);
switch(name){
case 1:printf("\n I'm me \n");break;
case 2:printf(("\n this is my mother \n");break;
case 2:printf(("\n this is my bad \n");break;
default:printf("\n Error \n");break;
}
}

说明语法错误include"stdio.h"void main(){int nameprintf("1.xujintint \n");printf("2.mather \n");Printf("3.bad \n");printf("press 1 to 5 to select:\n");scanf("%d",name);switch(name){case 1:printf("\n I'm me \n");break;case 2:printf(("\n this is m
#include"stdio.h"//前面少了个"#"井号
void main(){
int name;//漏了分号
printf("1.xujintint \n");
printf("2.mather \n");
printf("3.bad \n");//P是小写的,你写错了
printf("press 1 to 5 to select: \n");
scanf("%d",name);
switch(name){
case 1:printf("\n I'm me \n");break;
case 2:printf(("\n this is my mother \n"));break;//最后面忘了另一半括号
case 3:printf(("\n this is my bad \n"));break;//最后面忘了另一半括号,还有case 2与上面的重复了,改为3
default:printf("\n Error !\n");break;
}
}

include<stdio. 说明语法错误includestdio.hvoid main(){int nameprintf(1.xujintint );printf(2.mather );Printf(3.bad );printf(press 1 to 5 to select: );scanf(%d,name);switch(name){case 1:printf( I'm me );break;case 2:printf(( this is m #include stdio.h double fun(int m) { // } #include stdio.h main() { int A,B,C; while (A C语言 阅读程序,说明运行后的输出结果4阅读程序,说明运行后的输出结果:#include“stdio.d”Main(){Int x,j,a[10]={1}For(j=1;j #include stdio.h main() { int a,b,sum;#include stdio.hmain(){int a,b,sum;printf(Enter two numbers: );scanf(%d%d,&a,&b);for(;a 对下面的程序,描述正确的是______.#include“stdio.h”voidmain(){int x=3,y=5;if (x=y-4) printf(“*”);else printf(“#”);}A)有语法错误 B)输出* C)可以通过编译,但是不能通过连接,因而不能运行 D)输出# C语言随机数#include stdio.h#include stdlib.h#include time.hint main(void){int a[5],i;randomize();for(i=0;i C语言中,#include 头文件中的尖括号可以用双引号“”代替吗?那还可以用圆括号代替呢?就是把〈stdio.h〉用(stdio.h )或stdio.h代替呢? c逻辑错误还是语法错误#includestdio.hvoid main(){float max,a,min,sum=0,i;scanf(%d,&a);if(a!=-1){max=a;min=a;sum=a;} printf(%f %f %f %f,sum,i,max,min);while(a==-1){scanf(%d,&a);if(a!=-1){sum=sum+a;if(a>max)max=a;if(a #includestdio.h main() { int a=1,b=2,c=3,t; while(a 以下程序的执行结果是:#includestdio.hmain(){int I,s=0;for(i=1;i #include stdio.h void main() { int a=1,b=2,c=2,t; while(a #include stdio.h main() { int a[100],n,i,min,t; while(scanf(%d,&n),n>0&&n sqrt(i)是什么意思啊#includestdio.h#define N 200int main(){int j,i;for(i=2;i 我不懂 #include stdio.hvoid main(){int a[3][3],i,j;for (i=0;i 程序题,#includestdio.hmain(){int i,j,k=0,m=0;for(i=0;i p=strchr(xx[i],' ');isjap:boolean=false;//amount,p->price,p->t_price);#includestdio.h