- Revora Forums
- → Viewing Profile: Posts: vice
vice
Member Since 23 Dec 2003Offline Last Active Jul 13 2004 08:38 AM
Community Stats
- Group New Members
- Active Posts 6
- Profile Views 100,497
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Posts I've Made
In Topic: Java
27 May 2004 - 09:27 PM
would you please answer the question. i dont care about your other languages that youre going to "learn".
In Topic: Java
27 May 2004 - 12:54 AM
I would like to hear your reasoning behind this.. I bet it's going to be inane D:D:D:D:
In Topic: Little Chat Bot im starting to create...
27 January 2004 - 09:00 PM
well first off. macros are awefull. try to stay away from them, especially at this stage of your programming knowledge. instead try using boolean variables. they are far simpler to use, a simple TRUE or FALSE is all.
In Topic: Lesson 5 - IF
24 December 2003 - 01:30 AM
well, youre getting way over your head there pal. strings in C/C++ is a topic far too advanced for someone at your current level of ability.
however, i will just skim over the topic for you.
a string is basically an array of characters, or a bunch of letters put together. so in order to make a string you need to define an array of characters
i'm sure arrays will be covered in upcoming lessons so i won't go into them at this moment.
getting strings from the user is also difficult for someone with your level of ability.
so for now just stick with the basic cout and cin with the basic (primitive) types i.e. int, double, boolean etc. don't worry about using printf just yet, you will just confuse yourself.
however, i will just skim over the topic for you.
a string is basically an array of characters, or a bunch of letters put together. so in order to make a string you need to define an array of characters
char myString[256]; // this defines an array of characters, which can hold, at most, 256 letters
i'm sure arrays will be covered in upcoming lessons so i won't go into them at this moment.
getting strings from the user is also difficult for someone with your level of ability.
so for now just stick with the basic cout and cin with the basic (primitive) types i.e. int, double, boolean etc. don't worry about using printf just yet, you will just confuse yourself.
In Topic: Needed help with something
24 December 2003 - 01:00 AM
well, seeing as you've forgotten to put braces around the else code
im not sure as to what options dev c++ uses when it runs the command prompt, wether to keep it open after program is done executing. however, int main() and return 0; should work.
if(HoursPerDay > 24) cout << "You Must Be Jocking!!!"; else { cout << "How many money do you make for the hours?"; cin >> MoneyPerDay; }
im not sure as to what options dev c++ uses when it runs the command prompt, wether to keep it open after program is done executing. however, int main() and return 0; should work.
- Revora Forums
- → Viewing Profile: Posts: vice
- Privacy Policy
- Forum Guidelines ·