develop a simple vehicle registration program. this program need the user to enter car owner full name, i/c number , car plate number, type of car and colour of car. the program also has to print all the data that the user enterd on the screen.
Coding:
#include <iostream.h>
main()
{
int ic;
int carplatenumber;
char typeofcar;
char colourofcar;
cout<<"Please key in IC:";
cin>>ic;
cout<<"Please key in car plate number:";
cin>>carplatenumber;
cout<<"Please key in colour of car:";
cin>>colourofcar;
cout<<"Please key in type of car:";
cin>>typeofcar;
cout<<"\nDriver and car detail:\n";
cout<<"IC:"<<ic<<"\n";
cout<<"Car plate number:"<<carplatenumber<<"\n";
cout<<"Colour of car:"<<colourofcar<<"\n";
cout<<"Type of car:"<<typeofcar<<"\n";
}作者: 宅男-兜着走 时间: 2010-8-16 07:01 PM
这个题目正好让你开始, 这个不自己开窍学会的话, 以后困难重重。作者: yam 时间: 2010-8-16 10:14 PM
如果还不明白就pm问我吧....
Coding:
#include
main()
{
int ic;
int carplatenumber;
char type ...
adryn33129 发表于 2010-8-16 05:03 PM