|
-
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,...
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
|