I want to create a password checking program (which i will later use as a function in a bigger program)
I typed the following code, but there seems to be a problem with the while loop.
If u can, plz copy it and compile it to check the error (it's a logical error)
1) This is a C program.
2) Its suggested to not use conio.h, especially for the reasons your using it.
3) Use [CODE] tagging please.
4) Your method has problems. There are other ways to do this and a hundred times has it been asked. Try to google.
@computerquip
1) Your point of view...I am not a professional programmer(I am just a high school student), and just because I didn't use classes, inheritance (or any other C++ feature) doesn't mean it is strictly a C program.
2) OK
3) This was my first post, so I didn't knew of it. Will adhere to it from now on.
4) That's what I wanted to know, what is the problem?
@oghmaosiris
I tried to initialize it, but it didn't work...u can perhaps just reply the correction in the above code
1) Your point of view...I am not a professional programmer(I am just a high school student), and just because I didn't use classes, inheritance (or any other C++ feature) doesn't mean it is strictly a C program.
It isn't a C program, but it's not C++ either. main() always returns int, and I believe iostream.h is deprecated (in any case, it shouldn't be used).