hey thanks for the quick reply heh even before it was moved heh.
Type: Posts; User: Xeavor
hey thanks for the quick reply heh even before it was moved heh.
can someone please put this in c++ board, I by mistake put it in the c board. pretty please. thanks.
Say for example you have a menu set up, and you have a limited amount of choices. And you only want to allow ..say 1-4 and cancel out all other options. Like you have an error message come up if...
No need to reply to my question guys, I figured it out lol...
Ok basicly I'm trying to add a menu to a program that sorts names entered. Giving the options of ascending and descending and exiting the program. But I keep getting local defintion...
ok ok lol...I'll read on them, suggestion on source? I have a c++ by example book....helps better in some areas than others.....
thats what I ended up doing
nevermind fixed it...had to tell it which header alittle differently.
also if one you gets bored, you think you could comment his code?...
I've got some of it figured out, but arrays are greek...
I keep getting
fatal error C1010: unexpected end of file while looking for precompiled header directive
for the code Thantos provided....
any idea why?
I tried the char, and I had a error the conversion between that and string.....I'm still messing with it. I've went over my if statements and I don't think I messed them up...but there are a good...
well even though they are strings, they still have a intger value right? So one would be greater or lesser than the other.....
well the thing is, that it worked fine with 1 if statement and it sorted it fine, its just when i added the others it got weird on me. *sigh*.
Ok in my mind this worked lol. Will this not work, I know its kinda long, but I thought it would get the job done. Am I just not doing something right?
// This is the main project file for...
ok thanks for your help
yeah I looked over that web page, arrays are confusing to me for some reason, or maybe I'm just not looking at it right.
Glade you asked heh, If I wanted to sort the names entered into this, What would be the most simple way.
lol, well guess the *string was the problem....thought i needed that...but oh well. Guess its without it. It works now.
// This is the main project file for VC++ application project
//...
c++ but if I add the .h to #include <iostream>
#include <string> it crashes.
I excluded all the headers I wasn't using at the moment, those three were a must, cause it crashed otherwise, so I know its not a header issue now.
also is that now how you use a string?
...
i'm not sure, it was auto generated by visual studio
....console app
Anyone see anything strange with this code? I'm basicly just setting up how I want it to look on the screen and for some reason the only one it goes through is strName, the rest skips.....?
...
Ok, I realize this is not the place for this, but I've got lots of help off this forum and thought hey its worth a try. I'm sure a lot of you know more that one programming language, but if you...
Ok, thanks for all the replies, I'll give them all a look over, and make a decision.
I've been wanting to do a web page, but not sure who to go with, there's so many different hosts out there. So thought I would come here and ask. I figure at least some of you have do a web page...
sorry, I'm just playing around with this code, I realize it had alot of stuff it that was exactly needed. I was just trying different things and see what happened, and changing it to different...