Passwords are normally a string of characters, which could be almost any character you can type on the keyboard. An int is an integer that holds numeric information only. If you just want to type numbers and not letters then an int will probably be ok unless you type a number that is too big.
In your program, what is the difference between variables pass and password ? After entering password you are comparing it to an uninitialized variable pass. I guess pass is the correct password the user is supposed to enter, but it is never initialized to anything so it just contains some random number.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
old compilers dont support youll need to make a character array
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
not really, i have MS Visual C++ 5 and it supports iostream but not string
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
jbennet get yourself devshed.
If your compiler don't support you're not learning c++ at all.
Cheers.
btw do you of any good IDEs for c++ and java in linux?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
eclipse is a good ide for c++ and java in linux i think....
kdevelop also does c++ i think...
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
excellent, now I just gotta try to unpack the damn thing.
Do I have to log on as the root or summat?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Do I have to log on as the root or summat?
Probably, as most large programs require root access for installation. Eclipse requires oodles of RAM, so you may want Kdevelop instead if computer resources are in short supply on your system. Personally, I prefer Anjuta. :)
Yes, and agreed with iamthwee, if a compiler doesn't support string, who knows what else you're missing. There's no excuse for programming with crap compilers when there's so many good free ones out there.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
Maintaining legacy code written with those crap compilers? ;)
I don't want to think about it. :cheesy:
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
Me neither, but I still end up doing it. ;)
Everything in fair in Love, War and a programming job....:D
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
If lotsofsloths' compiler supports then it supports or needs to be thrown away. ;)
if it doesn't support either of them it needs to be thrown away...
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337