注册 登录
编程论坛 C++教室

遇到问题,请求哪位大佬解答

dx65577 发布于 2022-07-10 17:13, 1386 次点击
Configuration: ABC - Win32 Debug--------------------
Compiling...
ABC.CPP
c:\users\administrator\desktop\abc.cpp(1) : fatal error C1083: Cannot open include file: 'studio.h': No such file or directory
执行 cl.exe 时出错.

ABC.OBJ - 1 error(s), 0 warning(s)
这些话是什么意思
8 回复
#2
rjsp2022-07-12 11:02
studio.h 拼写错了,应该是 stdio.h
#3
dx655772022-07-12 11:07
回复 4楼 rjsp
蟹蟹你!
#4
dx655772022-07-12 11:08
回复 4楼 rjsp
我是C语言初学者,又不会的问题请多指教!
#5
dx655772022-07-12 11:12
回复 3楼 dx65577
-------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
c:\users\administrator\desktop\cpp1.cpp(5) : error C2065: '$a' : undeclared identifier
c:\users\administrator\desktop\cpp1.cpp(5) : error C2065: '$b' : undeclared identifier
c:\users\administrator\desktop\cpp1.cpp(5) : error C2065: '$c' : undeclared identifier
c:\users\administrator\desktop\cpp1.cpp(11) : error C2065: 'The' : undeclared identifier
c:\users\administrator\desktop\cpp1.cpp(11) : error C2146: syntax error : missing ')' before identifier 'largest'
c:\users\administrator\desktop\cpp1.cpp(11) : error C2017: illegal escape sequence
c:\users\administrator\desktop\cpp1.cpp(11) : error C2001: newline in constant
c:\users\administrator\desktop\cpp1.cpp(13) : warning C4508: 'main' : function should return a value; 'void' return type assumed
执行 cl.exe 时出错.

Cpp1.obj - 1 error(s), 0 warning(s)
这些又说明我哪地方错了
#6
m34404268982022-07-12 11:51
回复 8楼 dx65577
兄弟,代码。
#7
dx655772022-07-12 15:33
回复 9楼 m3440426898
#include<stdio.h>
int main()
{int a,b,c,max;
printf("please input a,b,c;\n");
scanf("%d,%d,%d",$a,$b,$c);
max=a;
if(max<b)
max=b;
if(max<c)
max=c;
printf(The largest number is %d\n",max);
return 0;
}
代码是这个
#8
rjsp2022-07-12 15:47
程序代码:
#include <cstdio>

int main( void )
{
    int a,b,c;
    printf( "please input a,b,c;\n" );
    scanf( "%d ,%d ,%d", &a, &b, &c );
   
    int max = a;
    if( max < b )
        max = b;
    if( max < c )
        max = c;
    printf( "The largest number is %d\n", max );
}
#9
dx655772022-07-12 16:35
回复 7楼 dx65577
蟹蟹
1