こんにちは、USHORT というエイリアスを定義しようとしています。
// Demonstrates typedef keyword
#include <iostream>
typedef unsigned short int USHORT; // typedef defined
main() {
USHORT Width = 5;
USHORT Length;
Length = 10;
USHORT Area = Width * Length;
std::cout << "Width:" << Width << "\n";
std::cout << "Length: " << Length << std::endl;
std::cout << "Area: " << Area;
}
次のようなコンパイラ エラーが表示され続けます。
エラー 1 エラー C4430: 型指定子がありません - int が想定されています。注: C++ は default-int をサポートしていません c:\users\naqvi-home\documents\justit\c++\w1\cp1\list0304.cpp 8 1 ConsoleApplication3
ありがとう