C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Algorithms sample source codes
This is a very simple quiz with Ten questions in it and also is very easy to use.
This is a very simple quiz with Ten questions in it and also is very easy to use. This is mainly made for extreme begginers in C++. #include
#include
void main() { clrscr(); int x,y,z; x=y=z=0; char ch1[100],ch2,ch3,ch4,ch5,ch6,ch7,ch8,ch9,ch10,ch11; cout<<" Guest Enter Your Name "; cin>>ch1; clrscr(); cout<<" Welcome "<
>ch2; if(ch2=='a') { x=x+10; cout<<"Good Job. Your score is "<
>ch2; if(ch2=='c') { x=x+10; cout<<"Good Job. Your score is "<
>ch2; if(ch2=='b') { x=x+10; cout<<"Good Job. Your score is "<
>ch2; if(ch2=='b') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='a') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='a') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='c') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='b') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='a') { x=x+10; cout<<" Your score is "<
>ch2; if(ch2=='c') { x=x+10; cout<<" Your score is "<
Privacy Policy
|
Link to Us
|
Links