반응형
    
    
    
  typedef
// *****************
// typedef 예약어 사용 예
#include <iostream>
typedef unsigned short int USHORT; // typedef로 정의된다.
int main()
{
    using std::cout;
    using std::endl;
    USHORT Width = 5;
    USHORT Length;
    Length = 10;
    
    USHORT Area = Width * Length;
    
    cout << "Width : " << Width << endl;
    cout << "Length : " << Length << endl;
    cout << "Area : " << Area << endl;
    return 0;
}
결과
Width : 5
Length : 10
Area : 50
Width : 5
Length : 10
Area : 50
반응형