|登录 |注册

查看: 1887|回复: 8
打印 上一主题 下一主题

[求救] 简单的c++ programing

[复制链接]
yam
2010-8-16 03:12 PM
小妹我对c++一窍不通,现在才刚开始学就要做assignment了,题目如下:

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.

题目我全部打出来了,请问下谁可以帮忙教教我, 拜托~
小恋人
2010-8-16 03:26 PM
我以前曾经做过一样的题目
但是太多年没有动过
已经完全忘记了
小恋人
2010-8-16 03:32 PM
http://www.cplusplus.com/doc/tutorial/

你可以去这里看看
有蛮多example的
yam
2010-8-16 04:26 PM
好的,谢谢你的网站哦,我有读懂一点点了,读到头好晕,可是还是不会做啊
我大概懂我不会的是一开始的int那些还有在每个资料后面要打的是%?这样吧。。。
adryn33129
2010-8-16 05:03 PM
如果还不明白就pm问我吧....

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


谢谢你哦~可如果我用turbo c 是一样的吗?
   
这个题目正好让你开始, 这个不自己开窍学会的话, 以后困难重重。
宅男-兜着走 发表于 2010-8-16 07:01 PM


好的,我会加油的,可试了很多次都还是不行。。 哎
adryn33129
2010-8-17 09:07 AM
谢谢你哦~可如果我用turbo c 是一样的吗?


不一样... turbo c是forc而已... 你还是用turboC++.....
calvenyow
2010-9-12 10:49 PM
你应该要自己学,这个是很简单的题目吧!
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2026-1-1 08:06 PM , Processed in 0.099871 second(s), 25 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部