Search found 31 matches

by cplusplusnoob
Wed Mar 18, 2009 8:25 pm
Forum: General Gaming
Topic: Your absolute favorite games, and why
Replies: 37
Views: 5432

Re: Your absolute favorite games, and why

Yeah, sorry. I'll start trying to use proper grammar as much as I can and thank you for the advice and tolerance toword my nievety.
by cplusplusnoob
Wed Mar 18, 2009 10:40 am
Forum: General Gaming
Topic: Your absolute favorite games, and why
Replies: 37
Views: 5432

Re: Your absolute favorite games, and why

hmm as a kid when i first started i liked spyro 1 and sled storm (witch no one seems to know exsists) but as of now final fantasy 1 weather it be nes psp or gba it's the definition of classic and it's still fun today. spyro was a platformer that reqired some skill and was a good challenge for a five...
by cplusplusnoob
Tue Mar 17, 2009 5:27 pm
Forum: General Gaming
Topic: Post every time you beat a game.
Replies: 629
Views: 886826

Re: Post every time you beat a game.

I beat spyro the dragon (1) :)
by cplusplusnoob
Tue Mar 17, 2009 5:20 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 624177

Re: Official "Hello, World! (I'm new!)" thread

im new and this place is great since my programing book is vauge!but anyways falco was right its great here, always a peasure.
by cplusplusnoob
Tue Mar 17, 2009 7:40 am
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

First of all, you don't even tell the user that they could exit the program by entering | when you first ask for the user's input, yet you still check to see if both numbers contain |. And secondly, why the hell do you need a while loop for that ? It doesn't seem logical to do that, unless of cours...
by cplusplusnoob
Sun Mar 15, 2009 9:16 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

thanx for the encouragement every bit helps. ;)
by cplusplusnoob
Sat Mar 14, 2009 6:57 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

ok just don't forget im at the end of the chapter so ill just skip that one for now and do some of the other execises.
by cplusplusnoob
Sat Mar 14, 2009 5:38 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

I don't really have the time to test this theory, but i'm going to explain how you could do it (as I see it mentally) you could get a string of characters, input your number into the string, the string acts as a buffer. you then use some bitmasks to reduce each character code to a simple digit (so ...
by cplusplusnoob
Sat Mar 14, 2009 1:20 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

You're trying to store a character '|' in an integer. So cin will fail if the user enters '|'. Also, in your while loop, when you compare an integer and a character, it compares the integer against the ascii value of the character. you are right ill try to fix it. But how??i dont know of any possib...
by cplusplusnoob
Sat Mar 14, 2009 1:10 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

wtetzner wrote:You're trying to store a character '|' in an integer. So cin will fail if the user enters '|'. Also, in your while loop, when you compare an integer and a character, it compares the integer against the ascii value of the character.
you are right ill try to fix it.
by cplusplusnoob
Fri Mar 13, 2009 9:40 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Re: Terminate input on '|'

#1. Your while loop will simply out put the first and second number infinitely. There is no chance for the user to input a |. #2. The conditions for your while loop are wrong. It should be this: while(number_1 != '|' && number_2 != '|') if you had number_1 || number_2 != '|', it will contin...
by cplusplusnoob
Fri Mar 13, 2009 7:08 pm
Forum: Programming Discussion
Topic: Terminate input on '|'
Replies: 18
Views: 1676

Terminate input on '|'

I am try to do a program that get's 2 ints from the user and outputs them to the user using a while statement and having the capacity to terminate by entering | by the compiler i'm pretty sure my while statement is messed up although it looks anatomicly cerrect [{ using namespace std; int number_1; ...
by cplusplusnoob
Thu Mar 12, 2009 4:32 pm
Forum: Programming Discussion
Topic: Outputting a-z as numbers (a=0...)
Replies: 13
Views: 1171

Re: Outputting a-z as numbers (a=0...)

dont think my last post made anyway i get it thank you so much falco was really right about the forums ;)
by cplusplusnoob
Thu Mar 12, 2009 7:09 am
Forum: Programming Discussion
Topic: Outputting a-z as numbers (a=0...)
Replies: 13
Views: 1171

Re: An Introduction to Programming, For beginners

As you can see from the ASCII-table , lowercase 'a' starts at Dec = 97. So your loop has to start at 97, not 0. For example: for(int i = 0; i <= 25; i++) cout << static_cast<char>(i+97) << endl; this does work but i am not sure this was the lesson that the book was trying to teach me i will give it...
by cplusplusnoob
Sun Mar 08, 2009 7:00 pm
Forum: Programming Discussion
Topic: Outputting a-z as numbers (a=0...)
Replies: 13
Views: 1171

Re: An Introduction to Programming, For beginners

thank you so much. :bow: