Also note that the <string.h> header file is only for C-strings not C++ strings if you want to try to use C++ strings with a Borland compiler you need to use the <cstring.h> header file. But understand that the Borland implementation of the string class is quite different than the Standard C++ string class. I really don't recommend trying to use the string class with a Borland compiler, stick with C-strings until you come into the light.
If you must use the horribly outdated Turbo-C++ for class then use it, don't try converting Turbo-C++ code to some other compiler and I don't recommend trying to convert from a more modern compiler like Dev-C++ (be aware that Dev-C++ is, like Turbo-C++, very outdated and should be replaced).
This post has been edited by jimblumberg: 30 September 2012 - 11:15 AM
When im trying to put int design it gives me a syntax declaration error.
and whenever im trying to copy the code on the video converting it to turbo c++ code. using string password it gives me error undefined symbol string using string.h and when cstring.h it gives me unable to open include file
I need to create a Enter password screen with loop until correct password is entered after that the codes will show or run.
This post has been edited by Untalented: 30 September 2012 - 11:31 AM
Snoopy, first of all, let him do his own code. Another thing, why are you using strlen and strstr? It is better to use strcmp.
Untalented, it would be better if you read up something about functions first, since you are trying to define your functions inside main(), which is wrong. So, read up the links somebody here posted, and then tackle this problem again.
Yeah you're right...
But after 25 posts and still not working
I was intrigued to see if anything would
work... I have never owned Turbo so
just curious I guess...
Yeah I could have used strcmp but I didn't
was wanting to see if sprintf and strstr were
in Turbo again I have no idea if it will work
or not ... Just bored at the time I guess..
I apologise for my twisted personality in advance.