compileerror什么意思「compileerror的意思」
xujc中compile error是什么意思?
1.提交时所用的语言不对,比如c++的程序用c交了(c写的程序用c++提交可以过);

2.程序连编译都不能过,有各种错误。
提示compile error,怎么办。。(C++)
你定义的全局变量max和某个定义的函数或者宏冲突了,换个名字就好了,比如mx啊之类的
PS:C++的全局变量一般都是最后的一个选择,别老是全局变量,用函数返回值就行了嘛这个程序
哪位大神看一下为什么提示Compile Error?
编译能通过的,不过这几句:
if(bc) {t=b;b=c;c=t;}//没必要,因为前面语句可以知道a是最大边长了
if((b+c)a(a-c)b)
//两边之和大于第三边,(b+c)a实际就是(a-c)b,另外的条件应该是(a+b)c;
编译通过运行:
改一下数据:
编译通过运行:
问题就是判断是不是三角形那个语句要改一改才行,任意两边之和大于第三边;
你的不通过?Compile Error?上面显示是第几行?显示是什么错误?
C语言 Compile Error
#include "stdafx.h"
#includestdio.h
#includestdlib.h
#includestring.h
#define M 1000
int main()
{
char a[M];
int b[M];//未使用
char c[11];
int i=0,j,num,t,len = 0,flag = 1;
char *p,*q; //q指针未使用
gets(a);
for(i = 0,p = a ; i=strlen(a) ;p++,i++)
{
if(*p='0' *p = '9')
{
len++;
flag = 1;
}
else if(flag == 1 )
{
strncpy(c,p-len,len);
c[len] = '\0';
num = atoi(c);
if( t num )//这一句代码错了,因为t未赋值就去比较了,在编译器要求很高的时候就是错误
{
t = num;
j = i - len+1;
}
flag = 0;
len = 0;
}
}
printf("%d\n",j);
return 0;
}