我写了一个非常基本的程序,但无法理解它的行为.
# include<stdio.h>
# include<iostream.h>
# include<conio.h>
using namespace std;
int main()
{
cout << "50" << oct <<"50" << hex <<"50" << abc << "50";// error abc not defined
cout << "50" << oct <<"50" << hex <<"50"; // No error output 505050
getch();
}
Run Code Online (Sandbox Code Playgroud)
是oct与hex定义为任何文件的一些宏,我已经包含了这就是为什么我不明白的第二错误的原因cout说法?