Computing.Net > Forums > Programming > Something about programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Something about programming

Reply to Message Icon

Name: x3aKiRa
Date: July 2, 2009 at 08:14:00 Pacific
OS: Windows XP
Subcategory: C/C++
Comment:

Well
i was wondering how to do this:

Enter your membership
Normal = 1
Gold = 2
Platinum = 3

If 1 goto normal;
if 2 goto gold;
if 3 goto platinum;

normal:
printf("this is normal");

gold:
printf("this is gold");

platinum:
printf("this is platinum");

so the question is..
how can i form to make it goes like
if input 1, then goto normal
if input 2, then goto gold
if input 3, then goto platinum

what command can help doing this?



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: July 2, 2009 at 09:10:54 Pacific
Reply:

Read your input then code the switch-case-break statement to operate a multiple choice.

Sorry I can't go further but I am a skilled coder and I want you too become a good programmer. Use my hint and go on by your own.


0

Response Number 2
Name: x3aKiRa
Date: July 6, 2009 at 04:04:40 Pacific
Reply:

hey hey..
yea..
thx for the suggestion..
i'll use switch..
switch easier than if and else..
thx alot!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Something about programming

Suggested Reading C++, HTML www.computing.net/answers/programming/suggested-reading-c-html/1083.html

My programs wont run on friend's PC www.computing.net/answers/programming/my-programs-wont-run-on-friends-pc/11225.html

Some advices about programing www.computing.net/answers/programming/some-advices-about-programing/842.html