Monday 4 February 2013

New IIT JEE Pattern from 2013



AIEEE- All the Basic Information That You Needed



The AIEEE or the All India Engineering Entrance Exam is held every year by the Central Board of Secondary Education in Delhi which in short is known as the CBSE. This is a common examination held all over India and all students who aspire to get into good engineering colleges of India can sit for AIEEE. This is considerably a new exam which was introduced in the year 2002. This exam is held around the month of April every year. This is a 3 hour long exam and all dates are announced by October of the previous year. The exams are held in various centers all over India and the centre and the admit card is mailed to the candidate after the registration is completed after fee deposition along with form submission.

How Is The Ranking Done?

The ranking has two segments- the state ranking and the all India ranking. The classification of students is done in various colleges according to the kind of rank and score the students get. This exam is to be given by students after they pass their class 12th exam from any registered education board in India.

What Changes Have Been Made In The AIEEE Format?

The main change which has been made is that it will be considered as a national level joint exam known as the JEE Main or the national Joint Entrance Exam Main. The syllabus and marking structure will remain the same for the AIEEE 2013 which will now be called the JEE 2013.
When Is The Registration Starting?

The registration and application process will start from 8th November 2012 and the closing date is set to e 15th December 2012. Any candidate who is preparing to sit for the JEE Advanced has to also give the JEE Main in 2013. The details of the application fees have also been released for the JEE Main 2013.

What Is The Criterion Which Needs To Be Followed By A Candidate To Qualify To Sit For AIEEE?

The student has to have passed his or her 10+2 exam by a recognized and certified board in India. After passing the AIEEE a student gets the chance to take admission in any reported university for engineering in India. Some seats are also reserved for the SC, ST and OBC candidates. A student might also sit for the AIEEE if he or she has passed any Intermediate or two-year Pre-University Examination from a certified university or has served two basic years in the Joint Services Wing of the National Defense Academy.

Number Of Attempts Allowed For The JEE Main/ AIEEE 2013

A candidate is allowed to sit for 3 consecutive years in the AIEEE as a whole. From 2013 onwards students who have passed their class 12th in 2012 or are giving their class 12th exam in 2014 are not allowed to sit for the JEE Main (AIEEE 2013). Apart from these criteria, no other student is allowed to sit for the AIEEE anymore.

Tags:
AIEEE 2013 Exam date , aieee 2013 - cut off details, last year cutoff , Prepare for AIEEE 2013 , JEE Main (AIEEE) 2013 Information Brochure , Important information about AIEEE/JEE MAIN 2013 , NEW PATTERN OF IIT-JEE AIEEE 2013 , New IIT JEE Pattern from 2013 , IITJEE 2013 REFORMS | AIEEE and iit jee is  merged

AIEEE Question papers with solutions


AIEEE  Question papers with solutions


                                   

Math, Phy, Chem


Please choose a subject to download its question paper:

Mathematics 2011

Chemistry 2011

Physics 2011

Tags: 
Download AIEEE 2012 Question Paper and Solution , AIEEE 2012 Solutions | AIEEE 2012 Answer Key | Rank Predictor , AIEEE 2013 Question Papers Answers , Download AIEEE Previous Year Solved Question papers , AIEEE BARCH QUESTION PAPERS AND SOLUTIONS , Last 10 years AIEEE and IIT JEE Question Papers with Solutions , aieee 2013

SBI PO Recruitment 2013 – Apply Online




SBI PO Recruitment 2013 – Apply Online


                                   


State Bank of India is going to conduct exam on 28th April 2013 for the Recruitment of 1500 posts of Probationary Officers. The Candidates can apply online from 30th January 2013 to 23rd February 2013. The Candidates must posses Graduation in any discipline from Recognized University. The Candidates age should be between 21 to 30 years as on 1st January 2013. The Candidates have to pay fee of Rs 200 for General/ OBC Candidates and Rs 50 for SC/ ST and PWD by cash in any branch of SBI and payment can also be made online through Debit Card or Internet Banking. For other details regarding Selection Procedure and other instructions refer to the 

following links mentioned below :

Click here to view Detailed Advertisement

Click here for Online Application

Tags:
SBI PO Recruitment 2013 , SBI Recruitment 2013 Upcoming Clerks and PO , News for SBI PO Recruitment 2013 , SBI Recruitment 2013 ,SBI PO Recruitment 2013 , State bank of India 

SSC CGL Examination 2013 Notification


SSC CGL Examination 2013 Notification


                                   

Staff Selection Commission (SSC) is going to conduct the Combined Graduate Level (CGL) Exam for the recruitment of Group B and Group C Vacancies. The Group B includes Assistant, Assistant (Cypher), Inspector, Inspector (Central Excise), Inspector (Prevention Officer), Inspector (Examiner) and Statistical Investigator etc. The Group C includes Inspector of Income Tax, Assistant Enforcement Officer, Sub Inspectors, Divisional Accountant, Auditor, Accountant, Junior Accountant, Upper Division Clerk, Tax Assistant, Compiler etc. The Candidates can apply offline or online till 15th February 2013.

The Candidates must posses any Degree from Recognized University for these posts except for Compiler and Statistical Investigator, the candidate should have done bachelors degree with Economics/ Maths / Statistics. The Application fee is Rs 100 for all the candidates except SC/ ST/ PWD/ Women/ EXSM which is exempted from the fee. The Written Exam for Tier I is on 14th April 2013 and 21st April 2013 and the written Exam for Tier II is on 20th July 2013 i.e. Paper III and on 21st July 2013 i.e. Paper I and II.

For Other details Regarding Age limit, Selection Procedure, Vacancy Details and Application Form, refer to the links given below:

Click here to View Advertisement

Click here for Application Form

Click here for Vacancy details

Tags:
SSC Combined Graduate Level Exam 2013 , NOTICE COMBINED GRADUATE LEVEL EXAMINATION , SSC CGL 2013 – Apply online , SSC CGL Exam 2013 Notification Details , SSC Combined Graduate Level (CGL) Exam 2013 , Detailed Syllabus of SSC CGL 2013

UPSC CDS II 2012 written exam result



UPSC CDS II 2012 written exam result

                                  

UPSC CDS II written exam was conducted last year in the month of September. Of all the candidates who appeared in the exam, about 9833 candidates for CDS whose roll numbers are mentioned in pdf file given below. Qualified candidates are requested to read pdf file given below to know about their training commencement date and more information about their training centers.

Candidates are also advised to submit original documents after their interview not later than 13th May, 2013 (1st August, 2013 in case of SSC only).

For UPSC CDS Admit Card 2013, visit following link:

http://indiaexam.in/cds-admit-card-2013.html

For CDS II Exam result 2012, visit following link:

http://www.upsc.gov.in/exams/written-results/cds2/2012/wr_cds2_2012_eng.pdf

Tags:
Written Result CDS , COMBINED DEFENCE SERVICES EXAMINATION 2 2012 , CDS 2 Result 2012 , Latest UPSC Result 2012 , UPSC Results 2013 - CDS

IB ACIO-II Tech Assistant exam Notification 2013


IB ACIO-II Tech Assistant exam Notification 2013


                                    

Ministry of Home Affairs (MHA) invites the Online applications for the post of Assistant Central Intelligence Officers (GRADE II) in Tech and Assistant Central Intelligence Officer, Wireless Telegraphy, General Central Service, Group-C (Non Gazetted/ Non Ministerial) in Intelligence Bureau. The No. of Vacancies for ACIO-II/ WT and ACIO-II/ Tech is 57 and 19 respectively with a payscale of Rs 9300 to Rs 34800 with a Grade Pay of Rs 4200 (plus admissible Govt. allowances in Bureau). The Examination Fee is of Rs 100/- for General and OBC Candidates while SC/ST Candidates are exempted from examination fee. The Candidates have to fill up Part- I and Part – II of Online Application. The Part- I consists of personal, Academic and other particulars of Candidate. The Part- II consists of Payment Mode in which there will be option to select the mode for the payment of fee. The candidates can apply online from 19th January 2013 to 17th February 2013.

NOTE: ACIO-II Written Test will be Conducted on 24th March 2013

For Futher Details, Refer to the Notification given below :

Click here for Notification

To Apply Online, Check the following link mentioned below :

Click here to Apply Online
Tags:
IB ACIO-II Tech Assistant exam Notification 2013 , IB ACIO-II WT/Tech Exam 2013 Syllabus ,
IB Recruitment 2013 , INTELLIGENCE BUREAU , IB Recruitment 2013 ACIO-II/Tech & ACIO-II/WT Vacancies

IBPS Specialist Officers Exam Admit Card 2013




IBPS Specialist Officers Exam Admit Card 2013


                       


IBPS is going to Conduct the Common Written Examination (CWE) for the Recruitment of Specialist Officers in various Cadres for 20 Public Sector Banks. The Admit Card of IBPS Specialist Officers Written Exam 2013 will be available soon. The Candidates can download their admit card by providing details such as Registration No. and Date of Birth.

Link will be available here to download the admit card

NOTE : The candidates must bring their photo identity proof such as Driving License,Bank passbook, voter card, Passport etc. The Admit Card must be submitted along with photocopy of identity proof to the invigilators in examination hall.

IBPS Official Website:- http://www.ibps.in/

Tags: 
IBPS Specialist Officers SO Admit card 2013 Download , IBPS Specialist Officers , IBPS CWE SPL-II Specialist Officer Exam 2013 , IBPS CWE Specialist Officer Admit Card

Karnataka Diploma Result November 2012




Karnataka Diploma Result November 2012


                                             


Directorate of Technical Education, Karnataka conducted Diploma Exam in November-December 2012. The result of DIPLOMA test for 1st & 2nd semester will be out in July.The result of Diploma test 2013 is going to be announced next month in February 2013 by the Directorate of Technical Education, Karnataka. The result for Karnataka Diploma test will be directly displayed on their official website:



http://dte.kar.nic.in



Candidates who have just gone through the Karnataka Diploma conducted in November-December 2012 can check their respective results online through the official website by using either hall ticket number or admit card number. We advice you to keep visiting this page and discuss anything new related to results in Comments Section below. Also don’t forget to Subscribe to us on Facebook to get result updates directly on your Wall.

Karnataka Diploma Result will be available on following link :-


http://www.dte.kar.nic.in/result.htm


Tags: 
Karnataka Diploma Results 2012 , Diploma Results November 2012 Karnataka – DTE Karnataka , Karnataka Diploma Polytechnic Exam Results 2012 

Cotton Corporation of India Recruitment 2013- Apply Online



Cotton Corporation of India Recruitment 2013- Apply Online 



Cotton Corporation of India has here by notified the recruitment for the posts of General Manager,Asst Manager,Accounts Officer,Company Secretary all over the India. The interested candidates can apply for the upper given posts online from 21-01-02013 to 5-02-2013. The total number of posts available is 20.

1* General Manager -2 vacancies

2* Asst Manager -1 vacancy

3* Accounts Officer -16 vacancies

4* Company secretery-1 vacancy

Application fees:-

Application fee is only payable through the Demand Draft.DD of Rs.500/- should be made by candidates of any Bank in the favour of “The Cotton Corporation of India Ltd” payable at mumbai.no fees would be taken from SC/ST/PH candidates.

candidates age must be 30 for post no 2 & 3, 35 for post no. 4 and 45 for post no. 1. And he/she must have any of these degree CA/ ICWA/ LLB/ MBA/ MMS/ACS/ FCS/ with certian experiance.he/she would be selected only on the basis of Interview.

The intersted candidates candidates can apply online through website www.cotcorp.gov.in .and can send DD to the address given below before 22.02.2013:

The Cotton Corporation of India Ltd.,

Kapas Bhavan, Plot No.3 A, Sector-10,

C.B.D Belapur, Navi-Mumbai – 400614 (M.S)

KEY DATES:-

Starting of online reg. :-21-01-2013

Last date of online reg. :-05-02-2013

Last date of receipt of Application:- 22-02-2013

For more details please visit www.cotcorp.gov.in


Tags: Cotton Corporation of India , CCI , CCIL , The Cotton Corporation of India Ltd , High cotton prices hit CCI business plans . Cotton Corporation gears up to expand operations in Maharashtra

Sunday 23 December 2012

C++ Program on Railway Reservation System



Railway Reservation System

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream.h>
#include<time.h>
#include<iomanip.h>
#include<fstream.h>
char f[10]=”f”;
char s[10]=”s”;
int addr,ad,flag,f1,d,m,i,amt;
float tamt;
class login
{
public:
char id[100];
char pass[100];
char *password;
void getid()
{
cout<<”Enter your id:”;gets(id);
password=getpass(“Enter the password:”);
strcpy(pass,password);
}
void displayid()
{
cout<<”Id:”;puts(id);
cout<<”Password:”;puts(pass);
}
};
class detail
{
public:
int tno;
char tname[100];

char bp[100];
char dest[100];
int c1,c1fare;
int c2,c2fare;
int d,m,y;
void getdetail()
{
cout<<”Enter the details as followsn”;
cout<<”Train no:”;cin>>tno;
cout<<”Train name:”;gets(tname);
cout<<”Boarding point:”;gets(bp);
cout<<”Destination pt:”;gets(dest);
cout<<”No of seats in first class & fare per ticket:”;
cin>>c1>>c1fare;
cout<<”No of seats in second class & fare per ticket:”;
cin>>c2>>c2fare;
cout<<”Date of travel:”;cin>>d>>m>>y;
}
void displaydetail()
{
cout<<tno<<”t”<<tname<<”t”<<bp<<”t”<<dest<<”t”;
cout<<c1<<”t”<<c1fare<<”t”<<c2<<”t”<<c2fare<<”t”;
cout<<d<<”-”<<m<<”-”<<y<<”t”<<endl;
}
};
class reser
{
public:
int pnr;
int tno;
char tname[100];
char bp[10];
char dest[100];
char pname[10][100];
int age[20];
char clas[10];
int nosr;
int i;
int d,m,y;
int con;

float amc;
void getresdet()
{
cout<<”Enter the details as followsn”;
cout<<”Train no:”;cin>>tno;
cout<<”Train name:”;gets(tname);
cout<<”Boarding point:”;gets(bp);
cout<<”Destination pt:”;gets(dest);
cout<<”No of seats required:”;cin>>nosr;
for(i=0;i<nosr;i++)
{
cout<<”Passenger name:”;gets(pname[i]);
cout<<”Passenger age:”;cin>>age[i];
}
cout<<”Enter the class f-first class s-second class:”;
gets(clas);
cout<<”Date of travel:”;cin>>d>>m>>y;
cout<<”Enter the concession categoryn”;
cout<<”1.Militaryn2.Senior citizenn”;
cout<<”3.Children below 5 yrsn4.Nonen”;
cin>>con;
cout<<”…………END OF GETTING DETAILS…………n”;
}
void displayresdet()
{
cout<<”………………………………………..n”;
cout<<”………………………………………..n”;
cout<<”Pnr no:”<<pnr;
cout<<”nTrain no:”<<tno;
cout<<”nTrain name:”;puts(tname);
cout<<”Boarding point:”;puts(bp);
cout<<”Destination pt:”;puts(dest);
cout<<”No of seats reserved:”<<nosr;
for(i=0;i<nosr;i++)
{
cout<<”Passenger name:”;puts(pname[i]);
cout<<”Passenger age:”<<age[i];
}

cout<<”nYour class:”;puts(clas);
cout<<”nDate of reservation:”<<d<<”-”<<m<<”-”<<y;
cout<<”nYour concession category:”<<con;
cout<<”nYou must pay:”<<amc<<endl;
cout<<”***********************************************n”;
cout<<”………END OF RESERVATION……………..n”;
cout<<”***********************************************n”;
}
};
class canc
{
public:
int pnr;
int tno;
char tname[100];
char bp[10];
char dest[100];
char pname[10][100];
int age[20];
int i;
char clas[10];
int nosc;
int d,m,y;
float amr;
void getcancdet()
{
cout<<”Enter the details as followsn”;
cout<<”Pnr no:”;cin>>pnr;
cout<<”Date of cancellation:”;cin>>d>>m>>y;
cout<<”………..END OF GETTING DETAILS………..n”;
}
void displaycancdet()
{
cout<<”…………………………………….n”;
cout<<”…………………………………….n”;
cout<<”Pnr no:”<<pnr;
cout<<”nTrain no:”<<tno;
cout<<”nTrain name:”;puts(tname);
cout<<”Boarding point:”;puts(bp);

cout<<”Destination pt:”;puts(dest);
cout<<”nYour class:”;puts(clas);
cout<<”no of seats to be cancelled:”<<nosc;
for(i=0;i<nosc;i++)
{
cout<<”Passenger name:”;puts(pname[i]);
cout<<”passenger age:”<<age[i];
}
cout<<”nDate of cancellation:”<<d<<”-”<<m<<”-”<<y;
cout<<”nYou can collect:”<<amr<<”rs”<<endl;
cout<<”*****************************************n”;
cout<<”………END OF CANCELLATION………….n”;
cout<<”*****************************************n”;
}
};
void manage();
void can();
void user();
void database();
void res();
void reserve();
void displaypassdetail();
void cancell();
void enquiry();
void main()
{
clrscr();
int ch;
cout<<”~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~n”;
cout<<”…….WELCOME TO RAILWAY RESERVATION SYSTEM……….n”;
cout<<”~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~n”;
do
{
cout<<”^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^n”;
cout<<”1.Admin moden2.User moden3.Exitn”;
cout<<”Enter your choice:”;
cin>>ch;
cout<<endl;
switch(ch)

{
case 1:
database();
break;
case 2:
user();
break;
case 3:
exit(0);
}
}while(ch<=3);
getch();
}
void database()
{
char *password;
char *pass=”abc”;
password=getpass(“Enter the admininistrator password:”);
detail a;
fstream f;
int ch;
char c;
if(strcmp(pass,password)!=0)
{
cout<<”Enter the password correctly n”;
cout<<”You are not permitted to logon this moden”;
goto h;
}
if(strcmp(pass,password)==0)
{
char c;
do
{
cout<<”………..ADMINISTRATOR MENU………..n”;
cout<<”1.Create detail data basen2.Add detailsn”;
cout<<”3.Display detailsn4.User managementn”;
cout<<”5.Display passenger detailsn6.Return to main menun”;
cout<<”Enter your choice:”;
cin>>ch;

cout<<endl;
switch(ch)
{
case 1:
f.open(“t.txt”,ios::out|ios::binary);
do
{
a.getdetail();
f.write((char *) & a,sizeof(a));
cout<<”Do you want to add one more record?n”;
cout<<”y-for Yesnn-for Non”;
cin>>c;
}while(c==’y');
f.close();
break;
case 2:
f.open(“t.txt”,ios::in|ios::out|ios::binary|ios::app);
a.getdetail();
f.write((char *) & a,sizeof(a));
f.close();
break;
case 3:
f.open(“t.txt”,ios::in|ios::out|ios::binary|ios::app);
f.seekg(0);
while(f.read((char *) & a,sizeof(a)))
{
a.displaydetail();
}
f.close();
break;
case 4:
manage();
break;
case 5:
displaypassdetail();
break;
}
}while(ch<=5);

f.close();
}
h:
}
void reserve()
{
int ch;
do
{
cout<<”1.Reserven2.Return to the main menun”;
cout<<”Enter your choice:”;
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
res();
break;
}
}while(ch==1);
getch();
}
void res()
{
detail a;
reser b;
fstream f1,f2;
time_t t;
f1.open(“t.txt”,ios::in|ios::out|ios::binary);
f2.open(“p.txt”,ios::in|ios::out|ios::binary|ios::app);
int ch;
b.getresdet();
while(f1.read((char *) &a,sizeof(a)))
{
if(a.tno==b.tno)
{
if(strcmp(b.clas,f)==0)
{
if(a.c1>=b.nosr)

{
amt=a.c1fare;
addr=f1.tellg();
ad=sizeof(a.c1);
f1.seekp(addr-(7*ad));
a.c1=a.c1-b.nosr;
f1.write((char *) & a.c1,sizeof(a.c1));
if(b.con==1)
{
cout<<”Concession category:MILITARY PERSONNELn”;
b.amc=b.nosr*((amt*50)/100);
}
else if(b.con==2)
{
cout<<”Concession category:SENIOR CITIZENn”;
b.amc=b.nosr*((amt*60)/100);
}
else if(b.con==3)
{
cout<<”Concession category:CHILDERN BELOW FIVEn”;
b.amc=0.0;
}
else if(b.con==4)
{
cout<<”You cannot get any concessionn”;
b.amc=b.nosr*amt;
}
srand((unsigned) time(&t));
b.pnr=rand();
f2.write((char *) & b,sizeof(b));
b.displayresdet();
cout<<”——————————————————n”;
cout<<”————–Your ticket is reserved———–n”;
cout<<”—————–End of reservation menu——-n”;
}
else
{
cout<<”**********Sorry req seats not available********n”;

}
}
else if(strcmp(b.clas,s)==0)
{
if(a.c2>=b.nosr)
{
amt=a.c2fare;
addr=f1.tellg();
ad=sizeof(a.c2);
f1.seekp(addr-(5*ad));
a.c2=a.c2-b.nosr;
f1.write((char *) & a.c2,sizeof(a.c2));
if(b.con==1)
{
cout<<”Concession category:MILITARY PRESONNELn”;
b.amc=b.nosr*((amt*50)/100);
}
else if(b.con==2)
{
cout<<”Concession category:SENIOR CITIZENn”;
b.amc=b.nosr*((amt*60)/100);
}
else if(b.con==3)
{
cout<<”Concession category:CHILDERN BELOW FIVEn”;
b.amc=0.0;
}
else if(b.con==4)
{
cout<<”You cannot get any concessionn”;
b.amc=b.nosr*amt;
}
f2.write((char *) & b,sizeof(b));
b.displayresdet();
cout<<”—————————————n”;
cout<<”——–Your ticket is reserved——–n”;
cout<<”————End of reservation———n”;
}
else

{
cout<<”********Sorry req no of seats not available*******n”;
}
}
getch();
goto h;
}
else
{
flag=0;
}
}
if(flag==0)
{
cout<<”…………Wrong train no………………….n”;
cout<<”……Enter the train no from the data base…..n”;
}
f1.close();
f2.close();
getch();
h:
}
void displaypassdetail()
{
fstream f;
reser b;
f.open(“p.txt”,ios::in|ios::out|ios::binary);
f.seekg(0);
while(f.read((char *) & b,sizeof(b)))
{
b.displayresdet();
}
f.close();
getch();
}
void enquiry()
{

fstream f;
f.open(“t.txt”,ios::in|ios::out|ios::binary);
detail a;
while(f.read((char *) & a,sizeof(a)))
{
a.displaydetail();
}
getch();
}
void cancell()
{
detail a;
reser b;
canc c;
fstream f1,f2,f3;
f1.open(“t.txt”,ios::in|ios::out|ios::binary);
f2.open(“p.txt”,ios::in|ios::out|ios::binary);
f3.open(“cn.txt”,ios::in|ios::out|ios::binary);
cout<<”**********CANCELLATION MENU*********n”;
c.getcancdet();
while(f2.read((char *) & b,sizeof(b)))
{
if(b.pnr==c.pnr)
{
c.tno=b.tno;
strcpy(c.tname,b.tname);
strcpy(c.bp,b.bp);
strcpy(c.dest,b.dest);
c.nosc=b.nosr;
for(int j=0;j<c.nosc;j++)
{
strcpy(c.pname[j],b.pname[j]);
c.age[j]=b.age[j];
}
strcpy(c.clas,b.clas);
if(strcmp(c.clas,f)==0)
{
while(f1.read((char *) & a,sizeof(a)))
{

if(a.tno==c.tno)
{
a.c1=a.c1+c.nosc;
d=a.d;
m=a.m;
addr=f1.tellg();
ad=sizeof(a.c1);
f1.seekp(addr-(7*ad));
f1.write((char *) & a.c1,sizeof(a.c1));
tamt=b.amc;
if((c.d==d)&&(c.m==m))
{
cout<<”You are cancelling at the date of departuren”;
c.amr=tamt-((tamt*60)/100);
}
else if(c.m==m)
{
cout<<”You are cancelling at the month of departuren”;
c.amr=tamt-((tamt*50)/100);
}
else if(m>c.m)
{
cout<<”You are cancelling one month before the date of departuren”;
c.amr=tamt-((tamt*20)/100);
}
else
{
cout<<”Cancelling after the departuren”;
cout<<”Your request cannot be completedn”;
}
goto h;
c.displaycancdet();
}
}
}
else if(strcmp(c.clas,s)==0)
{
while(f1.read((char *) & a,sizeof(a)))
{

if(a.tno==c.tno)
{
a.c2=a.c2+c.nosc;
d=a.d;
m=a.m;
addr=f1.tellg();
ad=sizeof(a.c2);
f1.seekp(addr-(5*ad));
f1.write((char *) & a.c2,sizeof(a.c2));
tamt=b.amc;
if((c.d==d)&&(c.m==m))
{
cout<<”You are cancelling at the date of departuren”;
c.amr=tamt-((tamt*60)/100);
}
else if(c.m==m)
{
cout<<”You are cancelling at the month of departuren”;
c.amr=tamt-((tamt*50)/100);
}
else if(m>c.m)
{
cout<<”You are cancelling one month before the date of departuren”;
c.amr=tamt-((tamt*20)/100);
}
else
{
cout<<”Cancelling after the departuren”;
cout<<”Your request cannot be completedn”;
}
goto h;
c.displaycancdet();
}
}
}
}
else
{
flag=0;

}
}
h:
if(flag==0)
{
cout<<”Enter the correct pnr non”;
}
f1.close();
f2.close();
f3.close();
getch();
}
void can()
{
int ch;
do
{
cout<<”……………..CANCELLATION MENU………n”;
cout<<”1.Cancelln2.Return to the main menun”;
cout<<”Enter your choice:”;
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
cancell();
break;
}
}while(ch==1);
getch();
}
void user()
{
login a;
int ch;
cout<<”*****************************************************n”;
cout<<”***********WELCOME TO THE USER MENU**n”;
cout<<”****************************************************n”;
char *password;

fstream f;
f.open(“id.txt”,ios::in|ios::out|ios::binary);
char id[100];
puts(“Enter your id:”);gets(id);
password=getpass(“Enter your password:”);
while(f.read((char *) & a,sizeof(a)))
{
if((strcmp(a.id,id)==0)&&(strcmp(a.pass,password)==0))
{
do
{
cout<<”1.Reserven2.Cancelln3.Enquiryn4.Return to the main menun”;
cout<<”Enter your choice:”;
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
reserve();
break;
case 2:
cancell();
break;
case 3:
enquiry();
break;
}
}while(ch<=3);
goto j;
}
else
{
d=1;
}
}
if(d==1)
{
cout<<”Enter your user id and password correctlyn”;
}

getch();
j:
}
void manage()
{
int ch;
fstream f;
char c;
login a;
cout<<”………WELCOME TO THE USER MANAGEMENT MENU……..n”;
do
{
cout<<”1.Create id data basen2.Add detailsn”;
cout<<”3.Display detailsn4.Return to the main menun”;
cout<<”Enter your choice:”;
cin>>ch;
cout<<endl;
switch(ch)
{
case 1:
f.open(“id.txt”,ios::out|ios::binary);
do
{
a.getid();
f.write((char *) & a,sizeof(a));
cout<<”Do you want to add one more recordn”;
cout<<”y-Yesnn-Non”;
cin>>c;
}while(c==’y');
f.close();
break;
case 2:
f.open(“id.txt”,ios::in|ios::out|ios::binary|ios::app);
a.getid();
f.write((char *) & a,sizeof(a));
f.close();
break;
case 3:
f.open(“id.txt”,ios::in|ios::out|ios::binary);

f.seekg(0);
while(f.read((char *) & a,sizeof(a)))
{
a.displayid();
}
f.close();
break;
}
}while(ch<=3);
getch();

Please do +1, Like, Share, Send, Tweet, Stumble Upon this page to support us.

C++ Project on Telephone Directory



Telephone Directory


#include<iostream .h>
#include<fstream .h>
#include<iomanip .h>
#include<string .h>
#include<stdlib .h>
#include<conio .h>
#include<stdio .h>
#include<iomanip .h>
#include<graphics .h>
#include<dos .h>
class stud

{

public:

char name[20];

char address[20];

unsigned int ph_no;

void get(void);

void show(void);

void modify(void);

};

void stud::get(void)

{

int i=0;

cout<”;

cin.get(name[i]);

while(name[i]!=’n’)

{

i=i+1;

cin.get(name[i]);

}

cin.getline(name,20,’n’);

cout<”;

cin.getline(address,20,’n’);

fflush(stdin);

cout<t”;

cin>>ph_no;

fflush(stdin);

}

void stud::show(void)

{

cout<

cout<}

void main()

{

int gdriver = DETECT, gmode, errorcode;

int x,y;

int midx,midy;

/* initialize graphics and local variables */

initgraph(&gdriver, &gmode, “”);

/* read result of initialization */

errorcode = graphresult();

if (errorcode != grOk) /* an error occurred */

{

printf(“Graphics error: %sn”, grapherrormsg(errorcode));

printf(“Press any key to halt:”);

getch();

exit(1); /* terminate with an error code */

closegraph();

}

y:

char*pass=”RPV”;

char*ppass;

gotoxy(25,8);

int size=7;

settextstyle(7,0,size);

setbkcolor(BLUE);

setcolor(WHITE);

outtextxy(180,50,”WELCOME” );

setcolor(WHITE);

outtextxy(250,200,”TO”);

settextstyle(8,0,5);

setfillstyle(1,DARKGRAY);

setcolor(WHITE);

outtextxy(60,350,”nnTELEPHONE DIRECTORY”);

getch();

clearviewport();

settextstyle(3,0,4);

settextstyle(7,0,4);

getch();

clearviewport();

g:

ppass=getpass(“ENTER THE PASSWORD::”);

if(strcmpi(pass,ppass)!=0)

{

cout< PRESS ANY KEY 1 TO 6 ” );

settextstyle(TRIPLEX_FONT ,HORIZ_DIR,4);

outtextxy(220,50,”nn1. TO ADD ” );

setcolor(BLUE);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);

outtextxy(220,100,”nn2. TO SHOW ” );

setcolor(BLUE);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);

outtextxy(220,150,”nn3. TO SEARCH ” );

setcolor(BLUE);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);

outtextxy(220,200,”4.nn TO MODIFY ” );

setcolor(BLUE);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);

outtextxy(220,250,”nnn5. TO DELETE ” );

setcolor(BLUE);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);

outtextxy(220,300,”nnn6. TO EXIT ” );

settextstyle(TRIPLEX_FONT,HORIZ_DIR,3);

outtextxy(220,350,” Enter the choice ->”);

gotoxy(62,23);

cin>>ch;

switch(ch)

{

case 1: //responsible for addition of record

{

clrscr();

fstream f;

f.open(“rec”,ios::in|ios::out|ios::ate|ios::app|ios::binary);

char ans;

s.get();

f.write((char *)&s,sizeof(s));

clrscr();

outtextxy(250,360, ” Do you want to continue:- “);

ans=getche();

if(ans==’Y’ || ans==’y'){goto z;}

f.close();

break;

}

case 2: // will show all the contents of the file

{

clrscr();

cout<
fstream f;

f.open(“rec”,ios::in|ios::out|ios::ate|ios::app|ios::binary);

f.seekg(0);

int ctr=0;

while(f.read((char *)&s,sizeof(s)) )

{

ctr=ctr+1;

if(ctr==8) {getchar(); clrscr();ctr=0;}

s.show();

if(f.eof()==1)

{break;}

}

f.close();

outtextxy(240,350, ” Do you want to continue :-”);

char ans;

ans=getche();

if(ans==’y'|| ans==’Y'){

closegraph();

goto z;}else{exit(1);}

}

case 3: // search

{

gotoxy(60,25);

clearviewport();

rectangle(10,10,630,470);

setbkcolor(DARKGRAY);

textbackground(3);

textcolor(5);

clrscr();

char ans;

ifstream f;

stud s;

char name[20];

char address[20];

unsigned int ph_no;

f.open(“rec”,ios::in|ios::binary);

cout<
getchar();

closegraph();

exit(1);

}

default:

goto z;

}

}

}

}


Please do +1, Like, Share, Send, Tweet, Stumble Upon this page to support us.

C++ Project on Banking System



Banking System

#include<iostream.h>
#include<fstream.h>
#include<process.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<ctype.h>
#include<conio.h>
#include<dos.h>


//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO DRAW BOX ETC.
//===========================================================

class shape
{
public :
void line_hor(int, int, int, char);
void line_ver(int, int, int, char);
void box(int,int,int,int,char);
};

//===========================================================
// THIS CLASS CONTROL ALL THE FUNCTIONS IN THE MENU
//===========================================================

class control
{
public :
void main_menu(void);
void help(void);
private:
void edit_menu(void);
};

//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO INITIAL DEPOSIT
//===========================================================

class initial
{
public :
void add_to_file(int,char t_name[30],char t_address[60],float);
void display_list(void);
void delete_account(int);
void update_balance(int,float);
void modify(void);
int last_accno(void);
int found_account(int);
char *return_name(int);
char *return_address(int);
float give_balance(int);
int recordno(int);
void display(int);
private:
void modify_account(int,char t_name[30],char t_address[60]);
void box_for_list(void);

int accno;
char name[30],address[60];
float balance;
};

//===========================================================
// THIS CLASS CONTAINS FUNCTIONS RELATED TO TRANSACTIONS
//===========================================================

class account
{
public :
void new_account(void);
void close_account(void);
void display_account(void);
void transaction(void);
void clear(int,int);
private :
void add_to_file(int,int,int,int,char,char t_type[10],float,float,float);
void delete_account(int);
int no_of_days(int,int,int,int,int,int);
float calculate_interest(int,float);
void display(int);
void box_for_display(int);
int accno;
char type[10]; //Cheque or Cash
int dd,mm,yy; //Date
char tran ; // Deposit or withdrawl
float interest,amount,balance;
};

//===========================================================
// FUNCTION TO DRAW HORIZONTAL LINE
//===========================================================

void shape::line_hor(int column1,int column2,int row,char c)
{
for(column1;column1< =column2;column1++)
{
gotoxy(column1,row);
cout< }
}

//===========================================================
// FUNCTION TO DRAW VERTICAL LINE
//===========================================================

void shape::line_ver(int row1,int row2,int column,char c)
{
for(row1;row1 {
gotoxy(column,row1);
cout< }
}

//============================================================
// FUNCTION TO DRAW BOX LINE
//============================================================

void shape::box(int column1,int row1,int column2,int row2,char c)
{
char ch=218;
char c1,c2,c3,c4;
char l1=196,l2=179;
if(c==ch)
{
c1=218;
c2=191;
c3=192;
c4=217;
l1=196;
l2=179;
}
else
{
c1=c;
c2=c;
c3=c;
c4=c;
l1=c;
l2=c;
}
gotoxy(column1,row1);
cout< gotoxy(column2,row1);
cout< gotoxy(column1,row2);
cout< gotoxy(column2,row2);
cout< column1++;
column2–;
line_hor(column1,column2,row1,l1);
line_hor(column1,column2,row2,l1);
column1–;
column2++;
row1++;
row2–;
line_ver(row1,row2,column1,l2);
line_ver(row1,row2,column2,l2);
}

//============================================================
// FUNCTION TO DISPLAY MAIN MENU AND CALL OTHER FUNCTIONS
//============================================================

void control::main_menu(void)
{
char ch;
while (1)
{
clrscr();
shape s;
s.box(10,5,71,21,219);
s.box(9,4,72,22,218);
textcolor(LIGHTBLUE+BLINK);
textbackground(BLACK);
gotoxy(32,7);
cprintf(” B A N K I N G “);
gotoxy(35,9);
cprintf(” OPTIONS “);
textcolor(LIGHTBLUE);
textbackground(BLACK);
gotoxy(30,11);
cout<=EXIT”;
gotoxy(5,5);
cout< =EXIT”;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(” “);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(30,3);
cprintf(“MODIFY ACCOUNT SCREEN”);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(62,5);
cout< char ch;
display(t_accno);
account a;
do
{
a.clear(5,13);
gotoxy(5,13);
cout< FOR NO CHANGE”;
valid=1;
gotoxy(15,15);
gets(t_name);
strupr(t_name);
if(t_name[0]==’0′)
return;
if(strlen(t_name)>25)
{
valid=0;
gotoxy(5,23);
cprintf(“7NAME SHOULD NOT GREATER THAN 25″);
getch();
}
}while(!valid);
if(strlen(t_name)>0)
modified=1;
do
{
a.clear(15,16);
a.clear(5,23);
gotoxy(5,23);
cout< FOR NO CHANGE”;
valid=1;
gotoxy(15,16);
gets(t_address);
strupr(t_address);
if(t_address[0]==’0′)
return;
if(strlen(t_address)>55)
{
valid=0;
gotoxy(5,23);
cprintf(“7SHOULD NOT BLANK OR GREATER THAN 55″);
getch();
}
}while(!valid);
if(strlen(t_address)>0)
modified=1;
if(!modified)
return;
a.clear(5,23);
do
{
a.clear(5,18);
gotoxy(5,18);
cout< =EXIT”;
textbackground(BLACK);
gotoxy(3,3);
for(i=1;i< =76;i++)
cprintf(” “);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(32,3);
cprintf(“OPEN NEW ACCOUNT”);
textcolor(LIGHTBLUE);
textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
int t_accno;
t_accno=ini.last_accno();
t_accno++;
if(t_accno==1)
{
ini.add_to_file(t_accno,”abc”,”xyz”,1.1);
ini.delete_account(t_accno);
add_to_file(t_accno,1,1,1997,’D',”INITIAL”,1.1,1.1,1.1);
delete_account(t_accno);
}
char t_name[30],t[10],t_address[60];
float t_bal=0.0, t_balance=0.0;
gotoxy(5,6);
cout< gotoxy(5,8);
cout<=EXIT”;
gotoxy(5,5);
cout< =EXIT”;
gotoxy(5,5);
cout< =EXIT”;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(” “);
textbackground(BLACK);
textcolor(LIGHTBLUE+BLINK); textbackground(BLACK);
gotoxy(29,3);
cprintf(“TRANSACTION IN ACCOUNT”);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(5,6);
cout<=EXIT”;
gotoxy(5,5);
cout< =EXIT”;
textbackground(BLACK);
gotoxy(3,3);
for(int i=1;i< =76;i++) cprintf(” “);
textbackground(BLACK);
textcolor(GREEN+BLINK); textbackground(BLACK);
gotoxy(30,3);
cprintf(“CLOSE ACCOUNT SCREEN”);
textcolor(LIGHTBLUE); textbackground(BLACK);
int d1,m1,y1;
struct date d;
getdate(&d);
d1=d.da_day;
m1=d.da_mon;
y1=d.da_year;
gotoxy(62,5);
cout< getch();
}

//===============================================================
//THIS IS MAIN FUNCTION CALLING HELP AND MAIN MENU
//FUNCTIONS
//===============================================================

void main(void)
{
control c;
c.help();
c.main_menu();
}

Please do +1, Like, Share, Send, this page to support us.

Digital Clock C++ Project



Digital Clock

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>


#define DOTCOLOR 14
#define DIGCOLOR 5
void disp();
void ELLIPS();
class Digital_Clock
{
private:
int X,Y;
int SIZE;
int COLOR;
int HEIGHT,WIDTH;
void *VER,*HOR;
public:
int style;
Digital_Clock();
Digital_Clock(int s,int c,int st);
void bar_make();
void PutDig(int x,int y,int n);
void DrawDig(int x,int y,int n);
~Digital_Clock();
};
Digital_Clock::Digital_Clock()
{
style=1;
SIZE=1;
HEIGHT=1;
WIDTH=12;
COLOR=15;
bar_make();
}
Digital_Clock::Digital_Clock(int s,int c,int st)
{
style=st;
SIZE=s;
COLOR=c;
HEIGHT=1;
WIDTH=6;
bar_make();
}
void Digital_Clock::bar_make()
{
int x,y,w,h;
int area;
x=10;
y=getmaxy()/2;
w=WIDTH*SIZE;
h=HEIGHT*SIZE;
setfillstyle(style,COLOR);
bar(x+h,y,x+w-h,y+h);
setcolor(COLOR);
line(x,y+h/2,x+h,y);
line(x,y+h/2,x+h,y+h);
floodfill(x+h/2,y+h/2,COLOR);
setcolor(COLOR);
line(x+w-h,y,x+w+-h+h,y+h/2);
line(x+w-h,y+h,x+w-h+h,y+h/2);
floodfill(x+w-h+h/2,y+h/2,COLOR);
area=imagesize(x,y,x+w,y+h);
HOR=malloc(area);
getimage(x,y,x+w,y+h,HOR);
putimage(x,y,HOR,XOR_PUT);
x=getmaxx()/2;
y=10;
h=SIZE*WIDTH;
w=HEIGHT*SIZE;
bar(x,y+w,x+w,y+h-w);
setcolor(COLOR);
line(x,y+w,x+w/2,y);
line(x+w,y+w,x+w/2,y);
floodfill(x+w/2,y+w/2,COLOR);
setcolor(COLOR);
line(x,y+h-w,x+w/2,y+h);
line(x+w,y+h-w,x+w/2,y+h);
floodfill(x+w/2,y+h-w/2,COLOR);
area=imagesize(x,y,x+w,y+h);
VER=malloc(area);
getimage(x,y,x+w,y+h,VER);
putimage(x,y,VER,XOR_PUT);
}
void Digital_Clock::PutDig(int x,int y,int n)
{
int num,gap,qu,rem;
gap=(SIZE*HEIGHT);
num=n;
if(num==62)
{
DrawDig(x,y,62);
}
if(num==63)
{
DrawDig(x,y,63);
}
if(num>=0&&num=10&&num {
qu=num/10;
rem=num%10;
DrawDig(x,y,qu);
DrawDig(x+WIDTH*SIZE+HEIGHT*SIZE+gap,y,rem);
}
}
void Digital_Clock::DrawDig(int x,int y,int n)
{
int H[10][3]={1,0,1,
0,0,0,
1,1,1,
1,1,1,
0,1,0,
1,1,1,
1,1,1,
1,0,0,
1,1,1,
1,1,1};
int ph[2][3]={1,1,0,
1,1,0};
int pv[2][4]={1,1,1,0,
1,1,1,1};
int V[10][4]={1,1,1,1,
0,1,0,1,
0,1,1,0,
0,1,0,1,
1,1,0,1,
1,0,0,1,
1,0,1,1,
0,1,0,1,
1,1,1,1,
1,1,0,1};
int HX[3]={x,x,x};
int HY[3]={y,y+WIDTH*SIZE,y+2*WIDTH*SIZE};
int VX[4]={x-(HEIGHT*SIZE)/2,x+WIDTH*SIZE-(HEIGHT*SIZE)/2,x-(HEIGHT*SIZE)/2,x+WIDTH*SIZE-(HEIGHT*SIZE)/2};
int VY[4]={y+(HEIGHT*SIZE)/2,y+(HEIGHT*SIZE)/2,y+WIDTH*SIZE+(HEIGHT*SIZE)/2,y+WIDTH*SIZE+(HEIGHT*SIZE)/2};
int i;
setfillstyle(1,getpixel(x-1,y-1));
bar(x-(SIZE*HEIGHT)/2,y,x+WIDTH*SIZE+(SIZE*HEIGHT)/2,y+2*SIZE*WIDTH+HEIGHT*SIZE);
if(n==62)
{
for(i=0;i {
if(ph[0][i]==1)
{
putimage(HX[i],HY[i],HOR,XOR_PUT);
}
}
for(i=0;i {
if(pv[0][i]==1)
{
putimage(VX[i],VY[i],VER,XOR_PUT);
}
}
}
else if(n==63)
{
for(i=0;i {
if(ph[1][i]==1)
{
putimage(HX[i],HY[i],HOR,XOR_PUT);
}
}
for(i=0;i {
if(pv[1][i]==1)
{
putimage(VX[i],VY[i],VER,XOR_PUT);
}
}
}
else
{
for(i=0;i {
if(H[n][i]==1)
putimage(HX[i],HY[i],HOR,XOR_PUT);
}
for(i=0;i12)
p.PutDig(500,y,62);
else
A.PutDig(500,y,63);
while(!kbhit())
{
gettime(&t);
if(th!=t.ti_hour)
{
th=t.ti_hour;
h.PutDig(20,y,t.ti_hour);
}
if(tm!=t.ti_min)
{
tm=t.ti_min;
m.PutDig(220,y,t.ti_min);
}
if(ts!=t.ti_sec)
{
ts=t.ti_sec;
s.PutDig(380,y,t.ti_sec);
drawdot();
}
}
getch();
}

void drawdot()
{
int x,y,gap,size,c;
gap=8;
size=10;
x=170;
y=200;
setfillstyle(1,color);
bar(x+gap,y+gap,x+gap+size,y+gap+size);
bar(x+gap,y+8*gap,x+gap+size,y+8*gap+size);
bar(x+gap+170,y+gap,x+gap+size+170,y+gap+size);
bar(x+gap+170,y+8*gap,x+gap+size+170,y+8*gap+size);
delay(1);
}
float x,y;
int xc,yc;
void ELLIPS()
{
int a,b;
long double p1,p2;
xc=getmaxx()/2-20;
yc= getmaxy()/2;
a=getmaxx()-340;
b= 120;
x=0;y=b;
disp();
p1=(b*b)-(a*a*b)+(a*a)/4;
while((2.0*b*b*x) {
x++;
if(p1(2.0*a*a*y))
{
y++;
if(p2>0)
p2=p2+(a*a)-(2.0*a*a*y);
else
{
x–;
p2=p2+(2.0*b*b*x)-(2.0*a*a*y)+(a*a);
}
disp();
y=-y;
disp();
y=-y;
}

}
void disp()
{
putpixel(xc+x,yc+y,5);
putpixel(xc-x,yc+y,5);
putpixel(xc+x,yc-y,5);
putpixel(xc+x,yc-y,5);
}

Please do +1, Like, Share, Send, this page to support us.

C++ Project for Baloon Shooting Game



Baloon Shooting Game

# include "graphics.h"
# include "conio.h"
# include "stdio.h"
# include "stdlib.h"
# include "dos.h"
#define ARROW_SIZE 7
#define BALLOON_SIZE 3
// downloaded from www.indiaexam.in
int flag_arrow=0,flag_balloon=1,count_arrow=6,count_balloon=10;
void *balloon,*bow,*arrow,*burst;
void *clear_balloon,*clear_burst;
void draw_balloon(int ,int );
void draw_burst ( int x, int y );
void draw_bow(int x,int y);
void draw_arrow(int x, int y);
void shoot(int *x, int *y);
int testkeys();
void fly(int *x, int *y);
void start();

void main()
{
int gmode = DETECT, gdriver , area ;
initgraph ( &gmode, &gdriver, “c:tcbgi ” ) ;
setbkcolor(1);
start();
int maxx = getmaxx() ;
int maxy = getmaxy() ;
int p=400,q=300,m=100,n=100,x=m,y=n,key,score=0,finish=0,level=1,l_flag=1;
char score1[5],ch,cnt_ball[5],char_level[2];

rectangle ( 0, 0, maxx, maxy – 10 ) ;

draw_burst(200,300);
area=imagesize(0,0,32,24);
burst=malloc(area);
getimage(200-16,300-12,200+16,300+12,burst);
putimage(200-16,300-12,burst,XOR_PUT);

draw_balloon(p,q);

area=imagesize(p-4*BALLOON_SIZE,q-5*BALLOON_SIZE,p+4*BALLOON_SIZE,q+7*BALLOON_SIZE);
balloon=malloc(area);

getimage(p-4*BALLOON_SIZE,q-5*BALLOON_SIZE,p+4*BALLOON_SIZE,q+7*BALLOON_SIZE,balloon);
putimage(p-4*BALLOON_SIZE, q-5*BALLOON_SIZE, balloon, COPY_PUT);

draw_arrow(x ,y );
area = imagesize(x, y-ARROW_SIZE, x+(6*ARROW_SIZE), y+ARROW_SIZE);
arrow=malloc(area);
getimage(x, y-ARROW_SIZE, x+(6*ARROW_SIZE), y+ARROW_SIZE,arrow);
putimage(x, y-ARROW_SIZE,arrow,XOR_PUT);

draw_bow(x,y);
area=imagesize(x+25,y-65,x+66,y+65);
bow=malloc(area);
getimage(x+25,y-65,x+66,y+65,bow);

if ( balloon == NULL || burst == NULL || bow == NULL )
{
printf( “Insufficient memory… Press any key ” ) ;
getch() ;
closegraph() ;
restorecrtmode() ;
exit( 0 ) ;
}
// downloaded from www.indiaexam.in
while (!finish)
{
settextstyle(8,0,1);
setusercharsize(4,4,3,3);
outtextxy(getmaxx()/2-100,5,”LEVEL : “);
itoa(level,char_level,10);
setfillstyle(0,0);
bar(getmaxx()/2+40,15,getmaxx()/2+70,45);
outtextxy(getmaxx()/2+50,5,char_level);

rectangle(5,360,250,460);

if( flag_balloon && count_balloon>0 )
fly( &p, &q );
else
{
q = 400;
flag_balloon = 1;
}

if( kbhit() )
{
key = testkeys();
if(key==77)
flag_arrow = 1;
}

if( key == 27 )
break;
if (key == 80 &&!flag_arrow)
{
x=125;
putimage(x,y-65,bow,XOR_PUT);
if(y70)
y-=25;
putimage(x,y-65,bow,XOR_PUT);
draw_bow(x-25,y);
key=0;
}
if(count_arrow > 0 && count_balloon > 0)
{
if(score==100 && l_flag==1)
{
level=2;
count_balloon=8;
count_arrow=6;
l_flag=2;
}
if(score==180 && l_flag==2)
{
level=3;
count_balloon=6;
count_arrow=6;
l_flag=0;
}
if( key == 77 || flag_arrow)
{
shoot(&x,&y);
draw_bow(m,y);
if(x>(p-12) && x(q-15) && y {
putimage(p-16,q-12,burst,COPY_PUT);
sound(1500);
delay(800);
nosound();
putimage(p-16,q-12,burst,XOR_PUT);
count_balloon–;
settextstyle(10,0,1);
setusercharsize(30,70,20,70);
outtextxy(20,380,”BALLOONS LEFT:”);
setfillstyle(0,0);
bar(200,370,230,400);
itoa(count_balloon,cnt_ball,10);
outtextxy(200,380,cnt_ball);
flag_balloon=0;
score+=20;
itoa(score,score1,10);
setfillstyle(0,0);
bar(190,getmaxy()-50,230,getmaxy()-30);
setcolor(RED);
outtextxy(20,getmaxy()-50,”SCORE : “);
outtextxy(190,getmaxy()-50,score1);
}

key=0;
}
}
else
{
clearviewport();
setbkcolor(9);
setcolor(10);
settextstyle(4,0,7);
setusercharsize(120,50,120,40);
outtextxy(getmaxx()/2-220,getmaxy()/2-180,”GAME OVER”);

settextstyle(8,0,1);
setusercharsize(50,60,40,50);
if(count_arrow outtextxy(getmaxx()/2-100,getmaxy()/2-70,”NO MORE ARROWS”);

if(count_balloon590)
{
*x=155;
flag_arrow=0;
count_arrow–;
settextstyle(10,0,1);
setusercharsize(30,70,20,70);
outtextxy(20,400,”ARROWS LEFT :”);
setfillstyle(0,WHITE);
bar(200,400,220,425);
itoa(count_arrow,cnt_arrow,10);
outtextxy(200,400,cnt_arrow);
}

}
void draw_arrow(int x, int y)
{
setlinestyle(0,0,2);
moveto(x, y);
linerel(6*ARROW_SIZE, 0);
linerel(-2*ARROW_SIZE, -1*ARROW_SIZE+1);
linerel(0, 2*ARROW_SIZE-1);
linerel(2*ARROW_SIZE, -1*ARROW_SIZE);
}

int testkeys()
{
union REGS ii, oo ;
ii.h.ah = 0 ;
int86 ( 22, &ii, &oo ) ;
/* if ascii code is not 0 */
if ( oo.h.al )
return ( oo.h.al ) ;
else
return ( oo.h.ah ) ;
}

void fly(int *x, int *y)
{
int x1;
putimage(*x-4*BALLOON_SIZE, *y-5*BALLOON_SIZE, balloon, COPY_PUT);
delay(20);
char cnt_ball[5];
putimage(*x-4*BALLOON_SIZE, *y-5*BALLOON_SIZE, balloon, XOR_PUT);
*y-=BALLOON_SIZE;

if(*y{
*y=400;
x1=450+rand()%150;
*x=x1;
count_balloon–;
settextstyle(10,0,1);
setusercharsize(30,70,20,70);
outtextxy(20,380,”BALLOONS LEFT:”);
setfillstyle(0,0);
bar(200,370,230,400);
itoa(count_balloon,cnt_ball,10);
outtextxy(200,380,cnt_ball);
}
}

void start()
{
setbkcolor(0);
settextstyle(7,0,0);
outtextxy(10,400,” PRESS ANY KEY TO CONTINUE….”);
settextstyle(1,0,0);
setcolor(4);
setusercharsize(25,15,20,4);
outtextxy(85,120,”BALLOON SHOOTING”);
float octave[7] = { 130.81, 146.83, 164.81, 174.61, 196, 220, 246.94};
while( !kbhit() )
{
sound( octave[ random(7) ]*4 );
delay(300);
}
nosound();
getch();
clearviewport();
rectangle(1,1,638,478);
settextstyle(3,0,1);
setusercharsize(50,30,50,30);
outtextxy(150,10,”INSTRUCTIONS”);
setbkcolor(LIGHTBLUE);
settextstyle(1,0,1);
setusercharsize(40,70,20,20);
outtextxy(10,70,”1. You can play three levels.”);
outtextxy(10,110,”2. You can move the bow UP and DOWN with the help of arrow keys.”);
outtextxy(10,150,”3. Press right arrow key to shoot the arrow.”);
outtextxy(10,190,”4. You score 20 points every time you shoot the balloon.”);
outtextxy(10,230,”5. First level has 6 arrows and 10 balloons.”);
outtextxy(10,270,”6. You require to score 100 points to enter the second level.”);
outtextxy(10,310,”7. Second level has 6 arrows and 8 balloons.”);
outtextxy(10,350,”8. You require to score 200 points to enter the third level.”);
outtextxy(10,390,”9. Third level has 6 arrows and 6 balloons.”);
settextstyle(7,0,1);
outtextxy(150,430,”PRESS ANY KEY TO CONITINUE”);

getch();
setusercharsize(1,1,1,1);
settextstyle(0,0,0);
setbkcolor(YELLOW);
clearviewport();
}

Please do +1, Like, Share, Send,  this page to support us.

Make Money Online With Fineptc


Make Money Online With Fineptc







Fineptc.com is a high quality paid-to-click business. What this means for you is that they will pay you hard cash for simply viewing our sponsored advertisements. All you have to do is create a free account and then spend a few minutes each day viewing their advertisers' websites to increase your account balance. When you have earned $10,000 account balance, you can request withdraw to Alertpay or Paypal and they will send you a cash payment!


Get Paid Cash To Click Links!
$10 Per PTC Click
50% Affiliate Earnings For Referrals
Links Available Daily, Guaranteed
Reputable Business Ownership
Quality Member Support
Excellent Advertising Rates
Free To Join, Free To Earn!


Till now I have earned around 6000$ and waiting for it to complete 10000$ so that i can withdraw it. There is no Guarantee if they will  pay us or not still there is no risk of trying it as it is free of cost. You just have to give 5 minutes to view their advertisement and i will suggest you to make more and more referral so that you can earn more .
Thank You!
Tags:- make money online,www.faneptc.com,fineptc,make money online with fineptc,how to make money online,

 

SCROLL TO TOP