main() { int val=0; int f=0; char ver; val=intro(); while(f!=27) { f=helpbar(); if(f==104) f=72; if(f==97) f=65; switch(f) { case 72: val=help(); printf("\n\n\n"); break; case 27: clrscr(); printf("\n\n\n\n\n\n\n\n\n\n"); printf("\t\t\t\t-Installation Guide-\n"); printf("\n\t\t\t Sure you want to Quit? ±Y/N±¯ "); ver=getch(); if(ver==89||ver==121) exit(); break; case 65: clrscr(); instguid(); val=about(); printf("\n\n\n\n\n\n\n\n\n\n"); break; case 59: clrscr(); instguid(); val=windows(); printf("\n\n\n\n"); break; case 60: clrscr(); instguid(); val=dos1(); printf("\n Press enter to continue..."); f=helpbar(); if(f==13||f==77) { clrscr(); instguid(); printf("\ncontd...\n\n\n"); val=dos2(); printf("\n\n\n\n\n\n"); } else { clrscr(); f=65; } break; case 61: clrscr(); instguid(); val=aft_load(); printf("\n\n\n\n"); break; case 77: switch(val) { case 0: clrscr(); instguid(); val=windows(); printf("\n\n\n\n"); break; case 1: clrscr(); instguid(); val=dos1(); printf("\nPress ¯ to continue..."); break; case 2: clrscr(); instguid(); printf("\n\ncontd...\n\n"); val=dos2(); printf("\n\n\n\n\n\n"); break; case 3: clrscr(); instguid(); val=aft_load(); printf("\n\n\n\n"); break; case 4: clrscr(); instguid(); val=importan(); printf("\n\n\n\n\n\n\n"); break; case 5: clrscr(); instguid(); printf("\n\n"); val=optional(); printf("\n\n\n\n"); break; case 6: clrscr(); instguid(); printf("\n\n"); val=end(); printf("\n\n\n\n\n\n\n\n\n"); break; } if(val>6) { clrscr(); printf("\t\t\t -Installation Guide-\n\n"); val=end(); printf("\n\n\n\n\n\n\n\n"); printf("\nEnd of Article...Go Back"); val=0; } break; case 75: default: printf("\a"); intro(); break; } } } intro() { clrscr(); printf("\n"); printf("\t\t\t -Installation Guide-\n\n"); printf("\t\t\tTurbo C - Turbo Corporation Software\n"); printf("\t\t\t for 'C' Programming.\n\n"); printf("\t You can load TURBOC through both, DOS aswell as Windows.\n"); printf("\t The detailed procedure for installing the software through \n"); printf("\t both is given in this guide.\n\n"); printf("\t\t\t\t ATTENTION\n"); printf("\t\t\t\t ---------\n"); printf("\t Please follow all the instructions for the\n"); printf("\t installation carefully.\n"); printf(" Ignoring any instruction can cause errors.\n\n"); printf("\t Load the software in your computer either through DOS or\n"); printf("\t through Windows.\n"); printf("\t Follow the after-loading instructions properly for error-free\n"); printf("\t installation of the software.\n\n"); printf("\t\t\t Press a key to continue...\n"); return(0); } windows() { printf("\t\t Loading the software through Windows\n"); printf("\t\t ------------------------------------\n"); printf("\t 1.From My Computer & 3/2 Floppy a: Drive, select\n"); printf("\t the TURBOC folder by clicking on it once.\n"); printf("\t 2.Press ALT+E - edit menu will pop down.\n"); printf("\t 3.Click on 'Copy' in the edit menu.\n"); printf("\t 4.Go back to My Computer & Double click C:\n"); printf("\t 5.Press ALT+E again & click on 'Paste'.\n\n"); printf("\t Wait till Windows copies the files in the TURBOC folder.\n"); printf("\t The Loading of the software is completed.\n"); printf("\tPlease follow the after-loading instructions for error-free running\n"); printf("\t of the software.\n\n"); return(1); } dos1() { printf("\t\t Loading the software through DOS\n"); printf("\t\t --------------------------------\n"); printf(" NOTE : In case your 'c:\' drive already has any directory named\n"); printf(" 'turboc', follow the following step :\n"); printf(" C:\>REN TURBOC TC \n"); printf(" >Insert the TURBOC diskette into your A: Drive [Floppy Drive A:]\n"); printf(" Proceed with the actual installation as follows :\n"); printf(" C;\>MD TURBOC\n"); printf(" C:\>CD TURBOC\n"); printf(" C:\>TURBOC>COPY A:\TURBOC\*.*\n"); printf(" C:\>TURBOC>MD LIB\n"); printf(" C:\>TURBOC>CD LIB\n"); printf(" C:\>TURBOC>LIB>COPY A:\TURBOC\LIB\*.*\n"); printf(" C:\>TURBOC>LIB>CD..\n"); printf(" C:\>TURBOC>MD OBJ\n"); printf(" C:\>TURBOC>CD OBJ\n"); printf(" C:\>TURBOC>OBJ>COPY A:\TURBOC\OBJ\*.*\n"); return(2); } dos2() { printf(" C:\>TURBOC>OBJ>CD..\n"); printf(" C;\>TURBOC>MD INCLUDE\n"); printf(" C:\>TURBOC>CD INCLUDE\n"); printf(" C:\>TURBOC>INCLUDE>COPY A:\TURBOC\INCLUDE\*.*\n"); printf(" C:\>TURBOC>INCLUDE>CD..\n"); printf(" C:\>TURBOC>COPY A:\TURBOC\*.BGI\n"); printf(" The Loading of the software is completed.\n"); printf(" Please follow the after-loading instructions for error-free running\n"); printf(" of the software."); return(3); } aft_load() { printf("\t\t After-loading instructions\n"); printf("\t\t --------------------------\n"); printf("\t 1.After you have finished loading TURBOC, type TC in MSDOS Prompt.\n"); printf("\t 2.You will get the TURBOC Editor screen.\n"); printf("\t 3.Press ALT+O to get Options Menu.\n"); printf("\t 4.Select Directories option by using arrow keys to move & enter\n"); printf("\t to select.\n"); printf("\t 5.Make the following changes in the given options :\n"); printf("\t 1.Include Directories : C:\TURBOC\INCLUDE\n"); printf("\t 2.Library Directories : C:\TURBOC\LIB\n"); printf("\t 3.Turbo C Directory : C:\TURBOC\n"); printf("\t Donot make any changes in the other options until you know the\n"); printf("\t software, or till someone who posseses genuine knowledge\n"); printf("\t of the software tells you to do so.\n"); return(4); } importan() { printf("\n\n\n"); printf("\n\t\t\t\t IMPORTANT NOTE\n\n"); printf("\t The software works best when installed correctly & carefully.\n"); printf("\t Careless or improper installation may cause errors.\n"); printf("\t So, please donot compromise on proper installation of\n"); printf("\t the software.\n\n"); return(5); } about() { printf("\t\t -About the Turbo C Installation Guide- \n\n"); printf("\t Turbo C Installation Guide Provided by Shekhar A. Sherikar.\n"); printf("\t The above help is intended only to guide the user through\n"); printf("\t installation of the Turbo Corporation's Turbo C Software.\n"); printf("\t There are no other intentions behind the above work,\n"); printf("\t It is not intended to violate the Turbo Corporation's Rights\n"); printf("\t or the rights of any other entity concerned.\n"); } optional() { printf("\t Now, you can run the package by typing 'TC' in MSDOS Prompt.\n"); printf("\t C:\>TURBOC>TC\n\n"); printf("\t If you want to see if the software works correctly:\n"); printf("\t Enter a 'C' program in the Turbo C editor.\n"); printf("\t [You can take an example from a good book on C-programming]\n"); printf("\t Now, press ALT+C & compile the program.\n"); printf("\t Correct the errors if any.\n"); printf("\t Then press ALT+R & run the program.\n"); printf("\t If output doesnot appear directly, press ALT+F5\n"); printf("\t If the program's output matches standard output, \n"); printf("\t your software has been properly installed.\n"); return(6); } end() { printf("\tIf you have carefully followed the above instructions, you can write\n"); printf("\tprograms in 'C' using this software, compile them & run them without\n"); printf("\terrors.\n\n\n"); printf("\t GOOD LUCK!\n\n"); return(7); } help() { clrscr(); printf("\t\t\t\t -Installation Guide-\n"); printf("\t\t\t\t **HELP**\n\n"); printf("\t\tThis is a help-guide meant to help you install\n"); printf("\t\t Turbo C software into your computer.\n"); printf("\t\tIf you want to install the Turbo C software\n"); printf("\t\t in your computer,\n"); printf("\t\tProcure the Turbo C software on a Floppy Disk\n"); printf("\t\tAnd install it as per the instructions in this\n"); printf("\t\t Turbo C Installation Guide.\n\n"); about(); return(9); } instguid() { printf("\t\t\t\t -Installation Guide-\n\n\n"); } helpbar() { char ch,chelp; printf("\n"); printf(" ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ\n"); printf(" ÛH:HELPÛÛ®Back±¯NextÛÛLoad Through±F1.Windows±F2.DOSÛÛF3.ALIÛA:AboutÛESC:ExitÛ\n"); printf(" ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß"); ch=getch(); if(ch==0) ch=getch(); return(ch); }