非常に基本的なプログラムを作成しましたが、その動作を理解できませんでした。
# 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();
}
インクルードしたファイルのいずれかoct
でhex
いくつかのマクロとして定義されているため、2 番目のcout
ステートメントでエラーが発生しませんか?