Home
Forum
Sign Up
Member Login
AnthonyPerlas' Forum
Pages: « 1 »
Turbo C help
Date:
Jan 13, 2009 4:51:28 AM PST
Author:
Ronon
Hi sir, i recently found ur Turbo C tutorial and is was quite helpful. I have a problem though. When i open my Turbo C, it gives me this message "Error: Invalid drive or directory. Press ESC." I press ESC and i can write a program but it doesnt want to compile. It says "Unable to create output file FILENAME." What's wrong? I already made sure that "include directories: C:\TC\INLCUDE, Library directories C:\TC\LIB etc, was put in the directories section. Any idea what could be the problem? Thanks.s
Reply to this Post
urgent project
Date:
Oct 1, 2009 6:18:54 PM PDT
Author:
amorsiko.exe
hello sir this is my urgent project can u help me to fix this program... it's to be sbmitted today
this is the code sir. i cant fix the errors... hope for your response...
send me @ rmvidal_1987@yahoo.com.ph
char user[20],pass[20],user1,pass1,choi;
int x;
main()
{
clrscr();
gotoxy(34,12);
printf("username:");
gotoxy(34,13);
printf("password:");
gotoxy(43,12);
scanf("%s", &user);
gotoxy(43,13);
scanf("%s", &pass);
user1=strcmp(user, "teresa");
if(user==0)
{
clrscr();
gotoxy(30,12);
printf("correct username and password");
getch();
}
else
{
clrscr();
printf("invalid username and password");
getch();
}
pass1=strcmp(pass,"abjelina");
if(pass1==0)
{
clrscr();
for(x=1;x<=79;x++)
{
gotoxy(x,20);
printf("|");
}
for(x=1;x<=79;x++)
{
gotoxy(x,20);
printf("Û");
delay(10000);
gotoxy(33,18);
printf("loading..%d%",x+21);
delay(10000);
}
}
else
{
printf("acess denied");
getch();
}
clrscr();
gotoxy(37,1);
printf("MY CONTACTS");
gotoxy(1,3);
printf("---------------------------------------------------------------------------------------");
gotoxy(1,4);
printf("\t\tName\t\t\|\t\ home\t\t|\t mobile\t\t");
gotoxy(1,5);
printf("--------------------------------------------------------------------------------");
gotoxy(11,6);
printf("Joyce L.");
gotoxy(11,7);
printf("Jocelyn C.");
gotoxy(11,8);
printf("Jorenz V.");
gotoxy(64,6);
printf("09282828282");
gotoxy(64,7);
printf("09292929292");
gotoxy(64,8);
printf("09181818181");
gotoxy(40,6);
printf("321-1111");
gotoxy(40,7);
printf("321-1212");
gotoxy(40,8);
printf("321-1313");
gotoxy(30,15);
printf("[1]- add entry\n");
gotoxy(30,16);
printf("[2]- delete entry\n");
gotoxy(30,17);
printf("[3]- view all entries\n");
gotoxy(30,18);
printf("choice is:");
gotoxy(40,18);
scanf("%s", &choi);
if(choi==1)
{
void add();
}
else if(choi==2)
{
void del();
}
else if(choi==3)
{
void view();
}
else
{
printf("invalid choice");
exit();
}
getch();
}
Reply to this Post
Consistency is the key
Date:
Mar 26, 2010 1:35:28 PM PDT
Author:
MrPerlishells
You keep going from user1 to user. They are different variables. Make sure you are comparing the right one.
I know it maybe too late. I should visit my forum more often. Find me on Facebook.
The one.
Reply to this Post
help
Date:
Sep 9, 2011 4:45:59 AM PDT
Author:
D.M.
in file handling in c, how will you save a string in the stream? please send me an email...
Last modified by D.M. on Sep 9 2011 4:49AM
Reply to this Post
Search Web
Search Forum
Forum Tags
There are no tags at this time.
User Profile