#include<stdio.h>
#include<stdlib.h> //包含库函数rand()和srand的原型//
#include<time.h>
#define N 10//一次给出10道题//
int menu() //菜单函数//
{
int op;
printf("\n-小学生四则运算练习-\n");
printf("1.加法运算\n");
printf("2.减法运算\n");
printf("3.乘法运算\n");
printf("4.除法运算\n");
printf("5.混合运算\n");
printf("0.退出练习\n");
printf("-\n");
printf("请输入数字 0~5:");
scanf("%d",&op); //选择运算类型//
return op;
}
运行时显示define N 10那行出错,[Error] invalid operands of types 'complex int' and 'int' to binary 'operator<'
能不能问问是哪里出错了
出错位置在'operator<'