C:\Users\Administrator\Desktop\C++\Cpp1.cpp(75) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'unsigned int [10]' (or there is no acceptable conversion)
类型定义不当,除数为0,指针使用错误。
error命令是C++语言的预处理命令之一,当预处理器预处理到error命令时将停止编译并输出用户自定义的错误消息。
int*re()
{
int*a;
a=newint[10];
for(inti=0;i<10;i++)
a[i]=i;
returna;
}
扩展资料
error
用法示例:
/*
*检查编译此源文件的编译器是不是C++编译器
*如果使用的是C语言编译器则执行#error命令
*如果使用的是C++编译器则跳过#error命令
*/
#ifndef__cplusplus
#error亲,您当前使用的不是C++编译器噢!
#endif
#include<stdio.h>
intmain()
{
printf("Hello,World!");
return0;
}