|
-
Mar 13th, 2010, 02:54 AM
#1
Thread Starter
Lively Member
[RESOLVED] load new Window
good pm..
how to load a new window,? what i mean is after i input the following choices A,B,C,D THE window or the A example will show what have in A.. and the previous txt that show in Program will to terminate.. take a look my code Ex:
#include<stdio.h>
#include<conio.h>
main()
{
char choice;
char ao;
clrscr();
gotoxy(30,3);printf("[.....MENU.....]");
gotoxy(20,6);printf("[A]");
gotoxy(25,7);printf("[45 per/kilo] *** Apple");
gotoxy(25,8);printf("[15 per/kilo] *** Orange");
gotoxy(20,11);printf("[B]");
gotoxy(25,12);printf("[12 per/kilo] *** Water Milon");
gotoxy(25,13);printf("[70 per/kilo] *** Mangustin");
gotoxy(20,16);printf("[C]");
gotoxy(25,17);printf("[200 per/kilo] *** Lemon");
gotoxy(25,18);printf("[50 per/kilo] *** Mandarin");
gotoxy(20,21);printf("[D]");
gotoxy(25,22);printf("[55 per/kilo] *** Durian");
gotoxy(25,23);printf("[30 per/kilo] *** Custard Apple");
choice=getche();
switch(choice) {
clrscr();
case 'a': printf("i want to show this text Only when i choice A? ");
break;
case 'b': printf("nothing");
break;
}
getch();
}
pls help me!!
-
Mar 13th, 2010, 09:42 AM
#2
Re: load new Window
Try this:
Code:
#include<stdio.h>
#include<conio.h>
main()
{
char choice;
char ao;
clrscr();
gotoxy(30,3);printf("[.....MENU.....]");
gotoxy(20,6);printf("[A]");
gotoxy(25,7);printf("[45 per/kilo] *** Apple");
gotoxy(25,8);printf("[15 per/kilo] *** Orange");
gotoxy(20,11);printf("[b]");
gotoxy(25,12);printf("[12 per/kilo] *** Water Milon");
gotoxy(25,13);printf("[70 per/kilo] *** Mangustin");
gotoxy(20,16);printf("[C]");
gotoxy(25,17);printf("[200 per/kilo] *** Lemon");
gotoxy(25,18);printf("[50 per/kilo] *** Mandarin");
gotoxy(20,21);printf("[D]");
gotoxy(25,22);printf("[55 per/kilo] *** Durian");
gotoxy(25,23);printf("[30 per/kilo] *** Custard Apple");
choice=getche();
switch(choice) {
case 'a':clrscr();
printf("i want to show this text Only when i choice A? ");
break;
case 'b':
printf("nothing");
break;
}
getch();
return 0;
}
...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Mar 16th, 2010, 04:30 AM
#3
Thread Starter
Lively Member
-
Mar 16th, 2010, 06:57 AM
#4
Re: load new Window
 Originally Posted by sansoa666
thank a lot akhilesh...
You are welcome.... 
If that solved your problem, please mark the Thread as RESOLVED (using Thread Tools found at the top of this page)
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|