Password C++

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4

46 Replies - 9149 Views - Last Post: 06 October 2012 - 09:37 AM Rate Topic: -----

#16 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 10:03 AM

I tried transferring the code from turbo c++ to dev and i found a lot of error specially on functions!

Its 1:02AM here looks like i will not sleep :helpsmilie:

View PostSkydiver, on 30 September 2012 - 10:01 AM, said:

Why are you trying to define a function within your main() function?


Because i don't know what exactly to do. and besides the code was working without the password code...

This post has been edited by Untalented: 30 September 2012 - 10:09 AM

Was This Post Helpful? 0
  • +
  • -

#17 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3589
  • View blog
  • Posts: 11,165
  • Joined: 05-May 12

Re: Password C++

Posted 30 September 2012 - 10:10 AM

Remember that programmers are tools for converting caffeine into code.

I recommend reviewing the tutorial on functions before you proceed further. I think you missed a few lessons:
http://www.dreaminco...t-i-the-basics/
http://www.dreaminco...ing-and-arrays/

As I mentioned, the clrscr(), gotoxy() and other conio.h functions that are part of Turbo C will not work in Dev C++. You have been warned.
Was This Post Helpful? 0
  • +
  • -

#18 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 10:36 AM

Im still getting that statement missing ; error....

Im very very very tired...

This post has been edited by Untalented: 30 September 2012 - 10:38 AM

Was This Post Helpful? 0
  • +
  • -

#19 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3589
  • View blog
  • Posts: 11,165
  • Joined: 05-May 12

Re: Password C++

Posted 30 September 2012 - 11:07 AM

Post your current code.
Was This Post Helpful? 0
  • +
  • -

#20 jimblumberg  Icon User is online

  • member icon


Reputation: 4099
  • View blog
  • Posts: 12,688
  • Joined: 25-December 09

Re: Password C++

Posted 30 September 2012 - 11:08 AM

Post your current code.

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.

Edit:
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).

Jim

This post has been edited by jimblumberg: 30 September 2012 - 11:15 AM

Was This Post Helpful? 2
  • +
  • -

#21 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 11:18 AM

#include<cstring.h> is not working either when im trying to put
string password in turbo c++

If only i can refer to this video


/*What? Dev C++ is very outdated too? Im using dev because of portability,easy to launch and i like its feature that shows the curly brace connections.*/



#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>



int design();
int input();
int menu();
int computation();

int main()
{

	char test,password;
	
	cout<<"Enter Password: ";
	cin>>password;

	if(password==test){
	cout<<"Correct!";

	clrscr();
	design();
	input();
	menu();
	computation();
	getch();
	return 0;
	}

 design()
{ //statement missing ;
 clrscr();
 gotoxy(5,4); textcolor(RED);
 gotoxy(5,7); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,3); textcolor(RED);
 cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"); gotoxy(5,5); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,4); cprintf("³"); gotoxy(5,4); cprintf("³"); gotoxy(5,6); cprintf("³"); gotoxy(71,6); cprintf("³"); gotoxy(71,4); cprintf("³");
 gotoxy(5,9); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,11); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,13); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,13); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,14); cprintf("³"); gotoxy(5,14); cprintf("³"); gotoxy(21,14); cprintf("³"); gotoxy(37,14); cprintf("³"); gotoxy(54,14); cprintf("³");gotoxy(71,14); cprintf("³");
 gotoxy(5,15); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,16); cprintf("³"); gotoxy(5,16); cprintf("³"); gotoxy(21,16); cprintf("³"); gotoxy(37,16); cprintf("³"); gotoxy(54,16); cprintf("³");gotoxy(71,16); cprintf("³");
 gotoxy(5,17); cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
 gotoxy(5,8); cprintf("³"); gotoxy(21,8); cprintf("³"); gotoxy(37,8); cprintf("³"); gotoxy(54,8); cprintf("³"); gotoxy(71,8); cprintf("³");
 gotoxy(5,10); cprintf("³"); gotoxy(21,10); cprintf("³"); gotoxy(37,10); cprintf("³"); gotoxy(54,10); cprintf("³"); gotoxy(71,10); cprintf("³");
 gotoxy(5,12); cprintf("³"); gotoxy(21,12); cprintf("³"); gotoxy(37,12); cprintf("³"); gotoxy(54,12); cprintf("³"); gotoxy(71,12); cprintf("³");
 gotoxy(5,6); cprintf("³"); gotoxy(21,6); cprintf("³"); gotoxy(37,6); cprintf("³"); gotoxy(54,6); cprintf("³"); gotoxy(71,6); cprintf("³");
return 0;
}

input()
{
 gotoxy(15,4); textcolor(YELLOW); cprintf(" í ° í ° í    M C   J O-L Y  B E E     í ° í ° í");
 textcolor(LIGHTBLUE); gotoxy(12,6); cprintf("ITEMS");
 gotoxy(24,6); cprintf("UNIT PRICE");
 gotoxy(38,6); cprintf("QUANTITY ORDERED");
 gotoxy(60,6); cprintf("AMOUNT");
 textcolor(MAGENTA);
 gotoxy(5,19); cprintf("TOTAL:");
 gotoxy(5,21); cprintf("VAT:");
 gotoxy(5,23); cprintf("TOTAL w/ VAT:");
 gotoxy(50,21); cprintf("CASH:");
 gotoxy(50,23); cprintf("CHANGE:");
 textcolor(GREEN);
 return 0;
}

menu()
{
 float c=250, ddp=310, hw=220, bpw=160, sd=60, a, v, t,m, h;
 gotoxy(6,8); cprintf("Chee-C Pizza");
 gotoxy(6,10); cprintf("How-I-An");
 gotoxy(6,12); cprintf("Hot Wings");
 gotoxy(6,14); cprintf("Baked Potato");
 gotoxy(6,16); cprintf("Softdrinks (L)");
 gotoxy(25,8); cprintf("P250.00");
 gotoxy(25,10); cprintf("P320.00");
 gotoxy(25,12); cprintf("P220.00");
 gotoxy(25,14); cprintf("P160.00");
 gotoxy(25,16); cprintf("P60.00");
 gotoxy(46,8); cin>>c; gotoxy(58,8); a=250.00*c; printf("P%.2f",a);
 gotoxy(46,10); cin>>ddp; gotoxy(58,10); a=320.00*ddp; printf("P%.2f",a);
 gotoxy(46,12); cin>>hw;  gotoxy(58,12); a=220.00*hw; printf("P%.2f",a);
 gotoxy(46,14); cin>>bpw; gotoxy(58,14); a=160.00*bpw; printf("P%.2f",a);
 gotoxy(46,16); cin>>sd; gotoxy(58,16); a=60.00*sd; printf("P%.2f",a);
 return 0;
}

computation()
{
 float c, ddp, hw, bpw, sd, a, v, t,m, ch, tt;
 gotoxy(12,19); t=250.00*c+320.00*ddp+220.00*hw+160.00*bpw+60.00*sd; printf("P%.2f",t);
 gotoxy(10,21); v=0.1*t; printf("P%.2f",v);
 gotoxy(19,23); tt=t+v; printf("P%.2f",tt);
 gotoxy(56,21); cout<<"P"; cin>>m;
 gotoxy(57,23); ch=m-(t+v); printf("P%.2f",ch);

}


else
{
	cout<<"Incorrect";
	

}

cin.get();
return 0;
}


This post has been edited by Untalented: 30 September 2012 - 11:21 AM

Was This Post Helpful? 0
  • +
  • -

#22 jimblumberg  Icon User is online

  • member icon


Reputation: 4099
  • View blog
  • Posts: 12,688
  • Joined: 25-December 09

Re: Password C++

Posted 30 September 2012 - 11:24 AM

You need to seriously work on your indentation. With proper indentation you should be able to easily see the problem:
int main()
{

   char test,password;

   cout<<"Enter Password: ";
   cin>>password;

   if(password==test) {
      cout<<"Correct!";

      clrscr();
      design();
      input();
      menu();
      computation();
      getch();
      return 0;
   }

   design()
   {  //statement missing ;



The way your code is written you are trying to implement a function (design()) within another function (main()). This is not allowed.

Quote

/*What? Dev C++ is very outdated too? Im using dev because of portability,easy to launch and i like its feature that shows the curly brace connections.*/


Yes it is also very outdated, and add very buggy as well.


Jim

This post has been edited by jimblumberg: 30 September 2012 - 11:25 AM

Was This Post Helpful? 1
  • +
  • -

#23 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 11:28 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.

2:27AM :sweatdrop:

This post has been edited by Untalented: 30 September 2012 - 11:31 AM

Was This Post Helpful? 0
  • +
  • -

#24 jimblumberg  Icon User is online

  • member icon


Reputation: 4099
  • View blog
  • Posts: 12,688
  • Joined: 25-December 09

Re: Password C++

Posted 30 September 2012 - 11:30 AM

I suggest you get some sleep, your questions are starting to not make sense.

Show what you tried, and post the complete error messages exactly as they appear in your development environment.

Jim
Was This Post Helpful? 0
  • +
  • -

#25 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 11:35 AM

-____- i always don't make sense.
Was This Post Helpful? 0
  • +
  • -

#26 Untalented  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 136
  • Joined: 31-January 12

Re: Password C++

Posted 30 September 2012 - 07:47 PM

Hi Mr Jim im back, and theres a good news submission move until Oct.

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>

//Function Prototype
int design();
int input();
int menu();
int computation();

//Main
int main()
{
        //should i insert the password code here?
        clrscr();
	design();
	input();
	menu();
	computation();
	getch();
	return 0;
	}

//user defined function

design()
{// this is the part where i get the statement missing ;
 clrscr();
 gotoxy(5,4); textcolor(RED);
 gotoxy(5,7); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,3); textcolor(RED);
 cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"); gotoxy(5,5); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,4); cprintf("³"); gotoxy(5,4); cprintf("³"); gotoxy(5,6); cprintf("³"); gotoxy(71,6); cprintf("³"); gotoxy(71,4); cprintf("³");
 gotoxy(5,9); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,11); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,13); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,13); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,14); cprintf("³"); gotoxy(5,14); cprintf("³"); gotoxy(21,14); cprintf("³"); gotoxy(37,14); cprintf("³"); gotoxy(54,14); cprintf("³");gotoxy(71,14); cprintf("³");
 gotoxy(5,15); cprintf("ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´");
 gotoxy(5,16); cprintf("³"); gotoxy(5,16); cprintf("³"); gotoxy(21,16); cprintf("³"); gotoxy(37,16); cprintf("³"); gotoxy(54,16); cprintf("³");gotoxy(71,16); cprintf("³");
 gotoxy(5,17); cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
 gotoxy(5,8); cprintf("³"); gotoxy(21,8); cprintf("³"); gotoxy(37,8); cprintf("³"); gotoxy(54,8); cprintf("³"); gotoxy(71,8); cprintf("³");
 gotoxy(5,10); cprintf("³"); gotoxy(21,10); cprintf("³"); gotoxy(37,10); cprintf("³"); gotoxy(54,10); cprintf("³"); gotoxy(71,10); cprintf("³");
 gotoxy(5,12); cprintf("³"); gotoxy(21,12); cprintf("³"); gotoxy(37,12); cprintf("³"); gotoxy(54,12); cprintf("³"); gotoxy(71,12); cprintf("³");
 gotoxy(5,6); cprintf("³"); gotoxy(21,6); cprintf("³"); gotoxy(37,6); cprintf("³"); gotoxy(54,6); cprintf("³"); gotoxy(71,6); cprintf("³");
return 0;
}

input()
{
 gotoxy(15,4); textcolor(YELLOW); cprintf(" í ° í ° í    M C   J O-L Y  B E E     í ° í ° í");
 textcolor(LIGHTBLUE); gotoxy(12,6); cprintf("ITEMS");
 gotoxy(24,6); cprintf("UNIT PRICE");
 gotoxy(38,6); cprintf("QUANTITY ORDERED");
 gotoxy(60,6); cprintf("AMOUNT");
 textcolor(MAGENTA);
 gotoxy(5,19); cprintf("TOTAL:");
 gotoxy(5,21); cprintf("VAT:");
 gotoxy(5,23); cprintf("TOTAL w/ VAT:");
 gotoxy(50,21); cprintf("CASH:");
 gotoxy(50,23); cprintf("CHANGE:");
 textcolor(GREEN);
 return 0;
}

menu()
{
 float c=250, ddp=310, hw=220, bpw=160, sd=60, a, v, t,m, h;
 gotoxy(6,8); cprintf("Chee-C Pizza");
 gotoxy(6,10); cprintf("How-I-An");
 gotoxy(6,12); cprintf("Hot Wings");
 gotoxy(6,14); cprintf("Baked Potato");
 gotoxy(6,16); cprintf("Softdrinks (L)");
 gotoxy(25,8); cprintf("P250.00");
 gotoxy(25,10); cprintf("P320.00");
 gotoxy(25,12); cprintf("P220.00");
 gotoxy(25,14); cprintf("P160.00");
 gotoxy(25,16); cprintf("P60.00");
 gotoxy(46,8); cin>>c; gotoxy(58,8); a=250.00*c; printf("P%.2f",a);
 gotoxy(46,10); cin>>ddp; gotoxy(58,10); a=320.00*ddp; printf("P%.2f",a);
 gotoxy(46,12); cin>>hw;  gotoxy(58,12); a=220.00*hw; printf("P%.2f",a);
 gotoxy(46,14); cin>>bpw; gotoxy(58,14); a=160.00*bpw; printf("P%.2f",a);
 gotoxy(46,16); cin>>sd; gotoxy(58,16); a=60.00*sd; printf("P%.2f",a);
 return 0;
}

computation()
{
 float c, ddp, hw, bpw, sd, a, v, t,m, ch, tt;
 gotoxy(12,19); t=250.00*c+320.00*ddp+220.00*hw+160.00*bpw+60.00*sd; printf("P%.2f",t);
 gotoxy(10,21); v=0.1*t; printf("P%.2f",v);
 gotoxy(19,23); tt=t+v; printf("P%.2f",tt);
 gotoxy(56,21); cout<<"P"; cin>>m;
gotoxy(57,23); ch=m-(t+v); printf("P%.2f",ch);
return 0;

}




Question:

1. What should i use to create a password, string(having problem with this using borland or can i use if == password loop?
2. Where should i put the code? Inside the main block?

I will be right back.

Thanks in advance :)

This post has been edited by Untalented: 30 September 2012 - 07:53 PM

Was This Post Helpful? 0
  • +
  • -

#27 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 802
  • View blog
  • Posts: 2,363
  • Joined: 20-March 10

Re: Password C++

Posted 30 September 2012 - 11:30 PM

Hi,

This is a bit convuluted but it should work in Turbo for your password routine

int main()
{

    char text[5],password[5];
    sprintf(text, "user");
    cout<<"Enter Password: ";
    cin>>password;
    int length1 =strlen(text);
    int length2 =strlen(password);
    if(strstr(password,text)&& (length1==length2))
        cout<<"Correct!\n";
    else
        cout << "Incorrect\n";
    return 0;
}




Also this is October so no help there.....:)

Also asking where you can stick your code is far too tempting :)

Only Kidding

Snoopy
Was This Post Helpful? 1
  • +
  • -

#28 aresh  Icon User is offline

  • It's a 16-Bit World!
  • member icon

Reputation: 273
  • View blog
  • Posts: 4,174
  • Joined: 08-January 12

Re: Password C++

Posted 01 October 2012 - 12:49 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.
Was This Post Helpful? 1
  • +
  • -

#29 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 802
  • View blog
  • Posts: 2,363
  • Joined: 20-March 10

Re: Password C++

Posted 01 October 2012 - 02:54 AM

Hi Aresh,

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.

Snoopy.
Was This Post Helpful? 0
  • +
  • -

#30 jimblumberg  Icon User is online

  • member icon


Reputation: 4099
  • View blog
  • Posts: 12,688
  • Joined: 25-December 09

Re: Password C++

Posted 01 October 2012 - 06:26 AM

Yes, the sprintf() family of functions are available in Turbo-C, as is strstr(). Turbo-C is fairly close to being ANSI C compatible so most standard C functions are available.

Jim
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4