📄 ex11-01.cpp
字号:
//EX11-01.cpp
#include <iostream.h> //cout,cin
#include <conio.h> // getch()
/*struct rec
{ char item[5];
char name[20];
float unit_price;
short quantity;
char customer_no[5];
} sale;
*/
void main()
{
cout << "The structure as following:\n";
cout<<"struct rec"
<<"\n{ char item[5];"
<<"\n char name[20];"
<<"\n float unit_price;"
<<"\n short quantity;"
<<"\n char customer_no[5];"
<<"\n} sale;";
getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -