Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Star Trek Voyager: Elite Force
Category: Star Trek Voyager: Elite Force General
General game questions, comments and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Could anyone help me with a little C++?
Peaceable Frood~rb
General Member
Since: Dec 23, 2006
Posts: 4059
Last: Dec 23, 2006
[view latest posts]
Level 9
Category: Star Trek Voyager: Elite Force General
Posted: Monday, Apr. 19, 2004 06:34 pm
I thought you were going to create a program that shuts off your computer before it blows. :)
Share |
Sheep Demon~rb
General Member
Since: Dec 23, 2006
Posts: 4127
Last: Dec 23, 2006
[view latest posts]
Level 9
Category: Star Trek Voyager: Elite Force General
Posted: Monday, Apr. 19, 2004 06:44 pm
writeln.output ("Please choose 1 or 2");
readln.input choice;

if (choice == 1);
 do something
else
 if (choice == 2);
   do something
else
 tell user they are an idiot and to try again.

Syntax is SO wrong, but you get the idea.
Share |
Danne~rb
General Member
Since: Dec 23, 2006
Posts: 3233
Last: Dec 23, 2006
[view latest posts]
Level 9
Category: Star Trek Voyager: Elite Force General
Posted: Monday, Apr. 19, 2004 07:21 pm
got it working with another code. i'll post it tomorrow, it's on my laptop and i don't have it connected to the net... (takes about an hour for the phone station to refresh...)
Share |
.::Grognard1701::.~rb
General Member
Since: Dec 23, 2006
Posts: 5979
Last: Dec 23, 2006
[view latest posts]
Level 10
Category: Star Trek Voyager: Elite Force General
Posted: Monday, Apr. 19, 2004 08:18 pm
Quote (Agent007 @ April 19 2004, 11:28 am)
Got me on the last part, but the first part's way off... I'm going to be using 3DStudio. :s8:

I think he means Global Positioning System, Dave :P
Share |
Bluehair~rb
General Member
Since: Dec 23, 2006
Posts: 109
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: Star Trek Voyager: Elite Force General
Posted: Tuesday, Apr. 20, 2004 09:47 am
Quote
Danne: "Is it possible to use 'if' statements to create a option if a user types in a certain text?"


As skinner said, you need to get the text into a variable; but unlike him, I'm used to using the C function strcmp() to do string comparisons. Here is a simple console program that illustrates its use:



:;):
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Star Trek Voyager: Elite Force : Star Trek Voyager: Elite Force General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»