2-1.cc
来自「一个qt设计的教程」· CC 代码 · 共 40 行
CC
40 行
#include <iostream.h>class car{public: int weight; int length; int width; int topspeed; int horsepower;};main(){ car a_car; cout<<"define the car's weight!\n:"; cin>>a_car.weight; cout<<"define the car's length!\n:"; cin>>a_car.length; cout<<"define the car's width!\n:"; cin>>a_car.width; cout<<"define the car's topspeed!\n:"; cin>>a_car.topspeed; cout<<"define the car's horsepower\n:"; cin>>a_car.horsepower; cout<<"\n\nThis is the car's data:\n"; cout<<"\nWeight:"<<a_car.weight; cout<<"\nLength:"<<a_car.length; cout<<"\nWidth:"<<a_car.width; cout<<"\nTop Speed:"<<a_car.topspeed; cout<<"\nHorse Power:"<<a_car.horsepower; cout<<"\n";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?