Make Book In C++

program jiss ki madat say ap book bna skty
hain
___________________________
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int chap_num;
char topic_char,ch,s_name[100];
cout<<"LAB MANUAL OF ITCP\n";
cout<<"Student Name :"; 
cin.get(s_name, 100);
H:
cout<<"Home\n";
cout<<"1. Intro"<<endl;
cout<<"2. looping"<<endl;
cout<<"3. conditional"<<endl;
cout<<"4. Exit"<<endl;
cout<<"___________________________________________ __________________________________________________ __________________________"<<endl;  
cout<<"Entrer chapter number = ";
cin>>chap_num;
switch(chap_num)
{
T:
case 1:
cout<<"1. Intro\n";
cout<<"A. what is C++"<<endl;
cout<<"B. history of C++"<<endl;
cout<<"C. Flow chart"<<endl;
cout<<"___________________________________________ __________________________________________________ ____________________"<<endl;
cout<<"___________________________________________ __________________________________________________ ____________________"<<endl;
cout<<"Enter your topic charchter :";
cin>>topic_char;
switch(topic_char)
{
case 'A':
case 'a':
cout<<"What is c++";
cout<<"___________"<<endl;
cout<<"___________"<<endl;
break;
case 'B':
case'b':
cout<<"History of C++";
cout<<"______________"<<endl;
cout<<"______________"<<endl;
cout<<"______________"<<endl;
break;
case 'C':
case 'c':
cout<<"Flow chart";
cout<<"___________"<<endl;
cout<<"___________"<<endl;
break;



}
cout<<"Will you change the topic ? ";
cout<<"Press T for change topic "<<endl;
cin>>ch;
if(ch=='T'||ch=='t')
goto T;
break;
case 2:
V:
cout<<"2. Looping\n";
cout<<"A. While loop"<<endl;
cout<<"B. do_while loop"<<endl;
cout<<"C. for loop"<<endl;
cout<<"Enter your topic charachter for futer :";
cin>>topic_char;
switch(topic_char)
{
case 'A':
case 'a':
cout<<"While loop\n";
cout<<"__________"<<endl;
cout<<"__________"<<endl;
break;
case 'B':
case 'b':
cout<<"Do_While loop\n";
cout<<"____________"<<endl;
cout<<"____________"<<endl;
cout<<"____________"<<endl;
break;
case 'C':
case 'c':
cout<<"For Loop\n";
cout<<"_________"<<endl;
cout<<"_________"<<endl;
cout<<"_________"<<endl;
cout<<"_________"<<endl;
break;


break;

}
cout<<"Press 'V' for again chossing the topic";
cin>>ch;
if(ch=='V'||ch=='v')
goto V;
break;
case 3:
x:
cout<<"3. Conditional\n";
cout<<"A. if satretment"<<endl;
cout<<"B. if else statement"<<endl;
cout<<"C. if else if statement"<<endl;
cout<<"D. nested if statement"<<endl;
cout<<"Enter your topic charachter :";
cin>>topic_char;
switch(topic_char)
{
case 'A':
case 'a':
cout<<"A. if statement\n";
cout<<"________________\n";
cout<<"________________\n";
break;
case 'B':
case 'b':
cout<<"B. if else statemnet\n";
cout<<"_____________________\n";
cout<<"_____________________\n";
break;
case 'C':
case 'c':
cout<<"C. if else if statement\n";
cout<<"_________________________\n";
cout<<"_________________________\n";
cout<<"_________________________\n";
break;
case 'D':
case 'd':
cout<<"D. Nested if satetment\n";
cout<<"______________________\n";
cout<<"______________________\n";
break;


cout<<"Will you change the topic ?";
cout<<"Press 'X' for change topic "<<endl;
cin>>ch;
if(ch=='X'||ch=='x')
goto x;
break;
default:
break;


}
cout<<"Press 'H' for Home :";
cin>>ch;
if(ch=='H'||ch=='h')
goto H;
return 0;
}

Popular posts from this blog

Best hacking apps 4u

Want to learn Linux? Check out these top 5 best websites to learn Linux online

How to Spy on Anyone's Smartphone Activity