C++
C++ is the only language I had studied proffesionally and is my base for studing other languages. I owe a great debt to C++.
Program SourcesHeader Files
C++ Projects for 12th Std
C++ is the only language I had studied proffesionally and is my base for studing other languages. I owe a great debt to C++.
Program Sources
Comments
#include<conio.h>
union REGS i,o;
void main()
{
i.x.ax=0; //Initializes mouse
i.x.ax=1; //Displayes mouse
}
best of luck
feel free to call me on 09853800799
or mail me on mukesh_coolguy89@rediffmail.com
error show msg that regs not declared
i m doing jog as a technical incharge for SATELLITE RECIVER (STB) the korea compony
giive us software for scramble channels change to discramble after download flash software so i wont open BIN FILE and edit my self and make scrabmled channel to discramble so please send me email what can i do for open it please please
n im familiar wid classes/sttruct/files...
i js need help in a particuar concept
************ ACTIVE SEARCH *********
active search...hw do i program diz...
fr example...derz a list of 100 names
n i need 2 search fr a name lke "HARI"
so wen i type "H"..IMMIDIATLY all da names strtin with "H" shud appear...n wen i type "HA" al names strtin wid HA shud appear instantly..!..
...get wa i mean?..i js need a hint...plzplzpzlpzlpzlzpzl help!...
thnku loads...
eCho
(EMPTY)
false
A B C D ... Z
| | | | ... |
AC .................................. O
false FALSE
... I ... ... M ...
ACID ZOMBIE
true true
I hope you understand this little example. See more at: en.wikipedia.org/wiki/Trie
true
sir please give a C++ Code for making micky mouse animating
i read a file once.... now i wanrt to read it again from starting so it is not workking.
please help
The integer value passed to the function determines the position in the file where you want to go.
For you, you must pass 0 in the arguement to move to the very first place in the file
Good Luck!!
syntax:seekp(0,ios::beg)
this will place the pointer @0TH position from the beginig
:)
Where will I get that???
thanks
your c++ projects r undoubtly great......
but will dey work for cbse?
Iam an engineering nstudent.I need a good C++ project
Hey guyz.... i have a very big task. I have made a program in which i made a STICKMAN which can move left and right easily but.... when i try for diagonal jump i.e. when i press the up & left key both together, the compiler doesnt recognize them together. It either first accepts the up key or the left key...
Can u pls tell me how can i make the figure jump diagonally(projectile)??
pls help!!
pls mail the proggram 2 me at nilay1990@yahoo.com
need a program on banking softwares with graphics ,files and classes and object plzzzzzzzzz urget send the codes matter of life and death
buy or adjust from some one the "together with solutions"
they give a cd along with it and it has two projects :
1.music management
2.multiple choice questions program
edit the code so it may look genuine.
and u are ready.
#define sqr(N) N*N
void main()
{int num=3;
cout<<sqr(num-1)<<endl;
cout<<sqr(num+1);
}
void main()
{int num=3;
cout<<sqr(num-1)<<endl;
cout<<sqr(num+1);
}
#define is used t declare a macros. The difference bw a macros and other variables inc. functions is that a macros is compiled along with the header files before the main program.
Here the macros declares a function that will return the square of the input argument.
Output will be-
4
16
Thank u.
abhiwarior@yahoo.co.in
on topic hotel management
-Write a function in C++ called shift( ) to rearrange the matrix as shown . Do not
use parallel matrix .
Original Matrix Rearranged Matrix
1 2 -3 -2 -3 -2 1 2
0 -1 2 1 -1 0 2 1
-3 9 -4 4 -3 -4 9 4
if (strncmp(usersearch, chkname, len)==0)
{
puts(chkname);
}
I kno it'll kinda take time 2 check 4 all 100 names but i guess thats the simplest logic u can give which will be under ur 12th std cbse syllabus!!
Hope u got me!
the subject of project is--customar which is come into honda showroom and buy a honda product . this all work is done online
plz help me on this topic
thanks
?
Please do the needful
cnu115@yahoo.co.in
very very urgent need by tuesday plz help me to write a c++ code for a institutes course details
it would contain course offered its prices the duration of course n also a condition if any one wants to join in between the duration then wat he should pay and how much it would take
pls help.........
mine is not working in this new system.......
Please help me in this project
int n1,n2,n3;
char ans;
main()
{
clrscr();
cout<<"enter first number:";
cin>>n1;
cout<<"enter 2nd number:";
cin>>n2;
cout<<enter 3rd number:";
cin>>3;
if (n1<n2 &n1<n3)
c<<n1<<"is the smallest number";
}
else if (n2<n1 &n2<n3)
{
c<<n2<<is the smallest number:";
}
else
{
c<<n3<<is the highest number:";
}
getche();
}
thats all ..hope it will run!
#include<conio.h>
void main()
{
clrscr();
float a,b,c,min;
cout<<"enter 3 real numbers\n";
cin>>a>>b>>c;
min=(a<b)?((a<c)?a:c):((b<c)?b:c);
cout<<min<<"is the smaalest number\n";
getch();
}
//?: is known as ternary operator.??
plZZZz..this my first case study and i don't how to it..plzzzz..
i use it but it was unable to run..isn't it?
thank's!
PLEASE REPLY AS SOON AS POSSIBLE. IT'S VERY URGENT...
Thanks......
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
#include <iomanip.h>
#include <stdlib.h>
int main()
{
char name[19];
double sn;
const int NIEBRES = 40 ;
char address[35],quality[NIEBRES],price[NIEBRES],expiration[NIEBRES];
int choice;
double requestsn;
do
{
cout << "\nPRODUCT DATA";
cout << "\n\n\n[1] Add & Save Product's Info" << endl;
cout << " [2] Search & View Product's Info" << endl;
cout << " [3] Exit "<< endl;
cout << " \n \nSelect your choice?: " << endl;
cin >> choice;
if (choice == 1)
{
cout << "Enter product name: ";
cin.ignore();
cin.getline(name,19);
cout << endl;
cout << "Enter product serial number: ";
cin >> sn;
cout << endl;
cout << "Enter product manufacturer: ";
cin.ignore();
cin.getline(address,35);
cout << endl;
cout << "Enter product quality: ";
cin >> quality;
cout << endl;
cout << "Enter product price: ";
cin >>price;
cout << endl;
cout << "Enter product expiration date : ";
cin >> expiration;
ofstream outfile;
outfile.open("productdata.txt",ios::app);
outfile << name << endl;
outfile << setprecision(12)<<sn << endl;
outfile << address << endl;
outfile << quality << endl;
outfile << price << endl;
outfile << expiration << endl;
outfile.close();
cout << "Please press any key to continue... " << endl;
getch();
}
if (choice == 2)
{
cout << "Please Input product number : ";
cin >> requestsn;
ifstream infile;
infile.open("productdata.txt");
while(!infile.eof() && infile != '\0')
{
infile.getline(name,19);
infile >> sn;
infile.ignore();
infile.getline(address,35);
infile >> quality;
infile >> price;
infile >> expiration;
infile.ignore();
if(sn == requestsn)
{
cout << "Name : ";
cout << name << endl;
cout << "product Number : ";
cout << setprecision(12)<<sn << endl;
cout << "Manufacturer : ";
cout <<setprecision(40)<< address << endl;
cout << "Quality : ";
cout << quality << endl;
cout << "Price : ";
cout << price << endl;
cout << "Expiration : ";
cout << expiration << endl;
break;
}
}
if(infile.eof() && sn != requestsn)
{
cout << "NO PRODUCT AVAILABLE " << endl;
}
infile.close();
cout << "Press Enter to proceed to the next... " << endl;
getch();
}
}while (choice!=3);
if (choice == 3)
{
exit(1);
}
getch();
return 0;
}
BGI graphics not supported under windows .
help me .
1)adding new member
2)adding new number
3)saving new number & member
4)searching for the numbers that were saved before
5)removing ability
is there any one who can help me out with it?
my email address is :
oceanograph_2007@yahoo.com
1. book-shop
2. Address Book
3. banking
4. LIBRARY
5. hotel reservation
6.hotel management project in c++
7. canteen-management
8. Periodic_Table
9. Payrol Mangement
10. Matrix_Calculator
11. REPORT_CARD_MAKING
12. Shuffle-game
13. Snake-Game
15. Student_Report_Maker
16. Students_Information_System
17. Telephone Billing
18. Telephone Directory
19. Typing Tutor
Please Visit Math4all.info
This system should be implemented using structure and array. i am required to develop a structure which contains student details such as Student ID, Student Name, Nationality and Gender.
1st-i have to insert new record
2nd-delete record
3rd-sort record
4th-display record
my question is how to use a structure and array in this program. i haven't done my coding. but i wish to know the steps. i have learned this but not in coding. please show me the way so that i can improve. can i know what's the function of file/io and pointer? thanks
identifier'function name'cannot have a type qualifier
i have to submit tomarrow please help .
all the classes are given here.
class train
{
int number;
int seats_1;
int seats _2;
int seats_3;
public:
train(int i; int j, int k)
{
number=i;
seats_1=j;
seats_2=k;
seats_3=l;
int getnum(void)
{
return number ;
}
int getseats_1(void)
{
return seats_1;
}
int getseats_2(void)
{
return seats_2;
}
int getseats_3(void)
{
return seats_3;
}
};
class reservation:public train
{
int bkd_1;
int bkd_2;
int bkd_3;
public:
int i, j, k, l;
reservation(int i, int j, int k, int l) : train(i, j, k, l)
{ bkd_1=bkd_2=bkd_3=0};
void book(char type, int num);
void cancel(char type, int num);
void dis_status(void);
};
void reservation::book(char type, int num)
{ switch(type)
{ case'1' : bkd_1+=num;
break;
case '2' : bkd_2+=num;
break;
case'3' : bkd_3+=num;
break;
defult : cout<"wrong class"<<"\n";
}
}
void reservation :: cancel(char tper, int num)
{
switch(type)
{
case'1' : bkd_1-=num;
break;
case '2' : bkd_2-=num;
break;
case'3' : bkd_3-=num;
break;
defult : cout<"wrong class"<<"\n";
}
}
void reservation :: disp_status(void)
{
cout<<"\t \t train number : "<<getnum( )<<"\n";
cout<<"class \t total seats \t reserved \t unreserved \n";
int val;
val=getseats_1( );
cout<<"1 \t "<<val<<"\t"<<bkd_1<<"\t"<<val-bkd_1<<"\n";
val=getseats_2( );
cout<<"2 \t "<<val<<"\t"<<bkd_2<<"\t"<<val-bkd_2<<"\n";
val=getseats_3( );
cout<<"3 \t "<<val<<"\t"<<bkd_3<<"\t"<<val-bkd_3<<"\n";
}
int main( )
{ clrscr( );
int num;
cout<<"enter train number:\n";
cin>>num;
cout<<"\n enter total number of seats in 1st class \n";
int s1;
cin>>s1;
cout<<"\n enter total number of seats in 2st class \n";
int s2;
cin>>s2;
cout<<"\n enter total number of seats in 3st class \n";
int s3;
cin>>s3;
reservation tr(int num, int s1, int s2, int s3);
char cl_type;
int choice, seats;
do
{
cout <<"\n main menu \n";
cout<<"1. reservation \";
cout<<"2. cancellation \n";
cout<<"3. display status \n";
cout<<" 4. exit \n";
cout<<"enter your choice :";
cin>>choice;
cout<<"\n";
switch(choice )
{
case 1 : cout<<"which class?(1/2/3):";
cin>>cl_type;
cout<<"\n how many seats?";
cin>>seats;
cout<<"\n";
tr.book(cl_type,seats);
break;
case 2: cout<<"which class?(1/2/3):";
cin>>cl_type;
cout<<"\n howmany seats?";
cin>>"\n";
tr.cancel(cl_type,seats );
break;
case 3 : tr.disp_status);
break;
case 4 : break;
default : cout<<"wrong choice!! \n";
};
}
while(choice>=1&& choice<=3);
return 0;
}
i have to submit tomarrow please help I have got no chance scoring good in theory so pls help me to get good marks in practicals but the graphic.h should not be used since we r not taught about it anything
,""," [","]","Student Report Maker","=");
How am i to change it to print only Students details, modify students and exit?? i.e. i wanna remove 'help'..
Reply asap.
anyway i need it fast...thanks !
need hotel management system written in c++ very soon.......
thanx
a, strong, em, b, i, code, pre, pandbrallowed. Other tags will be shown as code(< will become <). Urls, Line breaks will be auto-formated.