Thanks for the info, MaX...
I'll check it out! :D
Type: Posts; User: OldSchool
Thanks for the info, MaX...
I'll check it out! :D
I appreciate the info, everyone... I will definitely check out DevC++ and VisC++ Express... I'll try them both out and play around with them...
Just out of curiosity, what is the difference...
I have a few questions about C++ compilers...
I am under the understanding that C++ is standardized so I would imagine that any newer C++ compiler would work fine for programming... Am I correct...
Sorry for spamming... I just wanted to let everyone know that I have found the problem... It was Microsoft!
I found this thread in my hunt for sanity...
getline (function)???
The user with...
I've been playing... :D
The program works perfectly except I have to use 'CTL-X' and 'enter' to get the program to process the sentence... I tried changing the getline to:
std::getline( cin,...
Incidentally, this FAQ was excellent...
Strings to tokens
OK... Now I feel really stupid... I'm getting a bit flustered because my assignment is due in about an hour!
I converted to strings per the suggestions here... It makes more sense to me this way,...
Will adding 'strcmp' in the template still allow its use for other types of variables (i.e. - int, double, etc.)? I was shying away from messing with the templates themselves to avoid making it ...
Prelude - The sentence input is a one shot deal for this program (the tokenization process changes what is in sentence, however, right?)...
I changed the tree object definition:
Tree< char >...
jafet - I appreciate the look... The assignment suggested 'strtok' so I assumed that it was the best way to go... You know what the say about assumptions, though... ;)
Prelude - Sorry about...
Hi there... I've got a question about tokenizing strings...
I'm attempting to write a program that inputs a sentence from the user, tokenizes it and then hands the words to a binary search tree. I...
Thanks alphaoide... I appreciate the reply... I just fixed my code... Works great now with any input I throw at it!
I don't know why I didn't think of this! I feel kind of stupid on this one... ...
Thanks, Prelude... That did the trick!
I just switched to a 'for' loop for repetition instead of the 'while' and moved my 'cin >> num' inside of the loop... This way, exception can be processed...
Hi there... I have an assignment this week in an OOP class and the program already demonstrates simple exception handling according to the assignment requirements. This question is more for my own...
EXCELLENT! The light bulb just went on... I see it now!
I misunderstood the 'val' thing entirely!
When my code worked with an invalid 1st input, it was because it accepted the integer part. The...
Thanks Daved... I see your point about checking for errors on the input side.
It appears that your code would check the input against the 'val' variable. Since this would be for a coordinate plane...
I appreciate the assist JaWiB...
Unfortunately, my assignment specified integer values for the variables so I don't think I could change them to double and still be in my parameters...
The...
Hi all... I am a new poster to the site but have lurked in here several times to sort out some sticky issues in the past... You guys & gals are great and I hope to be able to get to your level of...