Tue Jul 06, 2010 1:25 pm
Tue Jul 06, 2010 10:42 pm
Wed Jul 07, 2010 8:49 am
Sun Jul 11, 2010 5:08 pm
Sun Jul 11, 2010 9:29 pm
Sun Jul 18, 2010 6:55 pm
char output[] = "C:\\TC\\Student";
char out[] = "C:\\TC\\Database";
char input[] = "C:\\TC\\Student";
char in[] = "C:\\TC\\Database";
fstream userout;
fstream passout;
fstream userin;
fstream passin;
void main()
{
clrscr();
char username[25],password[25],pwd[25],user[25];
cout<<"\n\n\nEnter Username - ";
gets(username);
cout<<"\nEnter Password - ";
gets(password);
{
mkdir(output);
cout<<"\nOld Output - "<<output;
strcat(output,"\\");
strcat(output,username);
mkdir(output);
strcat(output,"\\");
strcat(output,username);
cout<<"\n\nNew output - "<<output;
userout.open(output,ios::out|ios::app|ios::binary);
userout<<username;
userout.close();
}
{
mkdir(out);
strcat(out,"\\");
cout<<"\nOld Out = "<<out;
strcat(out,username);
cout<<"\n Mid1 OUT = "<<out;
mkdir(out);
strcat(out,"\\");
cout<<"\nMid2 Out = "<<out;
strcat(out,password);
cout<<"\nNew Out = "<<out;
passout.open(out,ios::out|ios::app|ios::binary);
passout<<password;
passout.close();
}
getch();
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.