|
Hello
I am working on a Win32 Application in Visual Studio 2003 environment.
I want the whole app to wait until USER click an OK button on the screen.
This app has multiple threads running simultaneously. So is it possible to stop the whole app until an OK button is pressed?
|
|
|
|
|
you could suspend[^] all your threads (EXCEPT the UI thread, of course!) when you start the wait and resume[^] them if OK is pressed?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
why we can't overload .,->, :: operators?
|
|
|
|
|
The -> operator can be overloaded. The others cannot. See here for why.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thnx very good link....i got many things cleared
|
|
|
|
|
Hello,
I'm having problems with minimizing all windows within an MDI at the same time. I can loop through all open windows and minimize them one at a time (but that causes lots of delay with more than 5 windows, as they all go one after the other).
I can minimize the whole application with:
::SendMessage(pMainFrame->m_hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
or I can minimize individual active frames with:
::SendMessage(pMainFrame->GetActiveFrame()->m_hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
But how do I minimize them all at once?
Thanks for your help,
Dave
|
|
|
|
|
That's not a standard message but an application-specific thing. As far as I know, closing them one at a time is your only option.
Just for grins, what would happen if you posted the message instead:
::PostMessage(pMainFrame->GetActiveFrame()->m_hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0); or
pMainFrame->GetActiveFrame()->PostMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0);
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Both just minimize the active frame (window), and not all frames.
I thought there would be something more standard(MFC) I could just send to the mainFrame which handles it all, similar to the way MFC handles tiling or cascading windows.
|
|
|
|
|
blueflame213 wrote: Both just minimize the active frame (window), and not all frames.
Didn't you put it in a loop?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Sorry, I may not have been clear enough,
When minimizing a window, it shows the animation of the window title bar being minimized to the bottom.
When looping through all windows to minimize, the delay of having to watch each window individually be minimized becomes significant with many windows open.
I was wondering if there was something which would minimize all windows at once, without having to sit through each window displaying its "minimization animation".
I appreciate your help so far!
|
|
|
|
|
blueflame213 wrote: Sorry, I may not have been clear enough,
No, you were perfectly clear. It's just that you said in the initial post, "I can loop through all open windows and minimize them one at a time" but in your last post you said, "Both just minimize the active frame (window), and not all frames." I assumed you removed the loop in the latter post, hence my confusion.
My suggestion to post the message instead of sending it was not meant to solve the problem but rather to minimize the perception of a delay.
If you had an example of an application that minimizes all open frames at once, you might could spy on it and see what messages, if any, are being used.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Found a solution with using
ShowWindow(SW_HIDE) first and then ShowWindow(SW_MINIMIZE),
This way XP doesn't show it's "minimizing animation" while minimizing, and it speeds everything up significantly!
Thanks for all of your help!!
|
|
|
|
|
Good find.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I am writing a c++ code for converting bmp file into jpeg....
The algorithm i have followed is:
1)Convert RGB color space to Y,Cb,Cr..
2)Down sample Cb and Cr by 2..that means for each square block of 2*2 there is 4 different Y
value but 1 Cb and 1 Cr value..
3)Apply DCT to data units of each 8*8 pixels...
4)Then apply quantization on DCT coefficient by using standard quantization table of Cb and Cr.
5)Do zigzag ordering.
6)Encode the DC and AC coefficient separately using huffman encoding.
7)Write proper header and write huffman encoded value to the file...
By doing all this things correctly(cross checked for various imaged and values) I am still not getting
the jpeg image correctly displayed.
Then i made a small 8*8 24 bit(color depth) bmp file completly filled with color value R=10 B=10
and G=100...all 64 pixels are of same color..
The data that i m getting at every step is as follows...
Bmp Image Header:
size of header 40
width 8
height 8
no of planes 1
no of bits per pixel 24
image size 194
x resolution pixel per meter 2834
y resolution pixel per meter 2834
no of colors 0
no of imp colors 0
The Y Cb Cr conversion of (R,B,G)=(10,10,100) is (62,-29,-37)
so lets consider Y component first..
The DCT coefficient for Y component is :
495 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
After Quantization, the zig zag ordering of single data unit that i m getting is this, for Y component.
30 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
Now the huffman coding of above zig zag order array is :
Y dc coding: 00111110
Y ac coding: 1010 (for ac huffman table(luminance Y) EOB value is 1010)
Similary huffman coding of Cb and Cr components is as follows:
cb dc coding: 11000010
cb ac coding: 01 (for ac huffman table(chrominance Cb,Cr) EOB value is 01)
cr dc coding: 110101110
cr ac coding: 01
Final Huffman code that i get is:
001111101010110000100111010111001 Length 33
so to make it divisible by 8 padding of 1 is done.
0011111010101100001001110101110011111111 Length 40.
Here each single 0 or 1 is actually a bit that needs to be stored as it is in the jpeg file but since we
cant write bit by bit into file, a total of 8 bit is taken and converted into a integer value in base 10
and stored that into a character which now takes 1 byte.
So this is all procedure and some specific data that i have shown here...but still i m not getting my
image shown correctly..
can somebody help me out on this!!!!!!!!!
|
|
|
|
|
|
You don't need code.
Use Win32 Shell api (1 line of code)
|
|
|
|
|
I have a listview within an MDI child window. There is another child window with tree control also in the MDI application.
Steps to replicate the problem:
First I open the child window with tree control, leave it as it is in non-maximized state.
Then I open the second child window which has the list view.
Maximize the child window which has listview.
Close the listview from maximized state.
Application crashes.
I have cornered it to a MoveWindow() call, but could not go any further, is this a known problem with listview, is there any specfic tweaking that needs to be done? It causes the crash irrespective of data filled in the listview!
Environment:
OS- XP SP3
Pure Win32 application
No MFC is used
This is my call to create the listview:
CreateWindowEx(<br />
WS_EX_CLIENTEDGE,<br />
WC_LISTVIEW,<br />
"",
WS_CHILD | WS_VISIBLE | LVS_REPORT,<br />
0, <br />
0, <br />
rect.right,
rect.bottom,
m_hwndParent,<br />
NULL,<br />
(HINSTANCE) GetWindowLong (m_hwndParent, GWL_HINSTANCE),<br />
NULL);
|
|
|
|
|
Where is the MoveWindow called?
On which window is MoveWindow called?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi Superman,
Thanks very much for your reply.
Sorry for missing out that detail. MoveWindow() is called on WM_SIZE of child window in winproc of the child window which has the list view in it.
case WM_SIZE:
RECT rect;
GetClientRect(hWnd, &rect);
MoveWindow(m_hwndListView,
0,
0,
rect.right,
rect.bottom,
true);
break;
|
|
|
|
|
I'm guessing the crash occurs because MoveWindow is called on the list view after it is destroyed.
Try putting an IsWindow check over the MoveWindow.
if (IsWindow(m_hwndListView))
{
MoveWindow(m_hwndListView,
0,
0,
rect.right,
rect.bottom,
true);
}
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks very much for your reply.
IsWindow() did not help.
Crash occurs only under following condition:
Child window containing tree control is opened and kept in non-maximized state
Then, child window containing the list is maximized and then this closed.
Anything else that you could think of?
|
|
|
|
|
You could try to use MoveWindow only when the wParam parameter of WM_SIZE is SIZE_RESTORED.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
That also does not help
|
|
|
|
|
Thanks for your time and help superman.
Tried IsZoomed(hWnd) to do some conditional operation when closing in maximized state, but that also did not help.
Problem was that an allocated object was being deleted in WM_CLOSE . When this was moved to WM_DESTROY the crash is solved. Still not sure why this was causing the crash only when in maximized state!! Will look into this at a later time.
|
|
|
|
|
Sir,
Can u help me to improve this code .I want to create small project in c++,java.Give me some tips .Will it appropriate to use java to write this type of code?
Code:
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include <time.h>
void coupd();
void coup();
void gen();
void dlx();
void spd();
class room
{
protected:
int r_no;
int r_charge;
char r_cust[20];
char c_city[20];
int c_mem;
char c_nat[20];
char r_avail;
int r_per;
int no;
char type[20];
int charge;
char cust[20];
char avail;
int per;
int year;
int mon;
int day;
public:
char r_type[20];
char getavail()
{
return(r_avail);
}
void getr1()
{
r_no=1;
strcpy(r_type,"spd");
r_charge=1500;
r_avail='Y';
strcpy(r_cust,"N.A");
r_per=0;
}
void getr2()
{
r_no=2;
strcpy(r_type,"dlx");
r_charge=1000;
r_avail='Y';
strcpy(r_cust,"N.A");
r_per=0;
}
void getr3()
{
r_no=3;
strcpy(r_type,"gen");
r_charge=750;
r_avail='Y';
strcpy(r_cust,"N.A");
r_per=0;
}
void getr4()
{
r_no=4;
strcpy(r_type,"coup");
r_charge=1250;
r_avail='Y';
strcpy(r_cust,"N.A");
r_per=0;
}
void getr5()
{
r_no=5;
strcpy(r_type,"coupd");
r_charge=1500;
r_avail='Y';
strcpy(r_cust,"N.A");
r_per=0;
}
void putinfo()
{
cout<<"\n"<<r_no<<"\t "<<r_type<<"\t"<<r_charge<<"\t "<<r_avail<<"\t "<<r_cust<<"\t "<<r_per;
}
void modify()
{
cout<<"\n Enter modifyied data";
cout<<"\n____________________________________________________________________________";
cout<<"\n Enter Room no :";
cin>>no;
cout<<"\n Enter Room type :";
cin>>type;
cout<<"\n Enter Room charges :";
cin>>charge;
cout<<"\n Enter Room Availability :";
cin>>avail;
cout<<"\n Enter name of cust living :";
cin>>cust;
cout<<"\n For how many days cust want the room :";
cin>>per;
cout<<"\n...... Data is modified";
r_no=no;
strcpy(r_type,type);
r_charge=charge;
r_avail=avail;
strcpy(r_cust,cust);
r_per=per;
}
void allocate()
{
if(r_avail=='Y')
{
cout<<"\n Enter Name of cust living :";
cin >>cust;
cout<<"\n For how many days cust want the room :";
cin>>per;
cout<<"\n Enter city name :";
cin>>c_city;
cout<<"\n Enter nationality :";
cin>>c_nat;
cout<<"\n Enter no. of member in your group :";
cin>>c_mem;
cout<<"\n Enter the date of arrival ";
cout<<"\n------------------------------";
cout<<"\n Year : ";
cin >>year;
cout<<"\n Month :";
cin >>mon;
cout<<"\n Day :";
cin >>day;
cout<<"\n... Room is allocated to "<<cust<<" for "<<per<<" days.";
strcpy(r_cust,cust);
r_per=per;
r_avail='N';
}
else
{
cout<<"\n ERROR : Room cannot be allocated ...";
cout<<"\n Room is not available...";
}
}
void putcust()
{
int i,j;
i=day+r_per;
j=strcmp(r_cust,"N.A");
if(j==0)
{
cout<<"\n Data not available ";
}
else
{
cout<<"\n Room No :"<<r_no;
cout<<"\n Customer Name :"<<r_cust;
cout<<"\n Days :"<<r_per;
cout<<"\n City :"<<c_city;
cout<<"\n Nationality :"<<c_nat;
cout<<"\n No of member :"<<c_mem;
cout<<"\n Arrival Date :"<<day<<"/"<<mon<<"/"<<year;
date(i,mon,year);
}
}
friend void date(int d,int m,int y);
};
void date(int d,int m,int y)
{
int i;
i=m%12;
if(i==0)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==1)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==2)
{
if(d>30)
{
d=d-30;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==3)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==4)
{
if(d>30)
{
d=d-30;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==5)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==6)
{
if(d>30)
{
d=d-30;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==7)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==8)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==9)
{
if(d>30)
{
d=d-30;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==10)
{
if(d>31)
{
d=d-31;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
else
if(i==11)
{
if(d>30)
{
d=d-30;
m=m+1;
}
if(m>12)
{
m=m-12;
y=y+1;
}
cout<<"\n Departure Date :"<<d<<"/"<<m<<"/"<<y;
}
}
class bill: public room
{
private:
long total;
int food;
long room;
float ser;
int t;
int oc;
public:
void calculate()
{
room= r_charge * r_per;
cout<<"\n Enter the bill amount of restaurant:";
cin>>food;
cout<<"\n Enter other charges:";
cin>>oc;
t=(int) room + food + oc;
ser=(int)(0.05*t);
total=t+ser;
}
void dispbill()
{
clrscr();
cout<<"\n________________________________________________________________________________";
cout<<"\n************************* Super Star Hotel ***********************";
cout<<"\n -------------------------------- ";
cout<<"\n S.V.Road,Dahisar(E),Mumbai-92. ";
cout<<"\n Tel :- 4545454 ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Customer name : "<<r_cust;
cout<<"\n ";
cout<<"\n Stayed for "<<r_per<<" days";
cout<<"\n Room charges : "<<r_charge<<"(Per day)";
cout<<"\n Room charges : "<<room<<"(total)";
cout<<"\n Restaurant bill : "<<food;
cout<<"\n Other charges : "<<oc;
cout<<"\n Ser.tax % = 5%";
cout<<"\n Ser.tax ="<<ser;
cout<<"\n Bill Amount >>>>>> Rs "<<total;
cout<<"\n ";
cout<<"\n THANK YOU !!!!!";
cout<<"\n Do Visit Us Again !";
strcpy(r_cust,"N.A");
r_per=0;
r_avail='Y';
day=0;
mon=0;
year=0;
strcpy(c_city,"N.A ");
strcpy(c_nat,"N.A ");
c_mem = 0;
}
void check();
};
void bill:: check()
{
if(r_avail=='Y')
{
cout<<"\n"<<r_no<<"\t "<<r_type<<"\t"<<r_charge<<"\t "<<r_avail<<"\t "<<r_cust<<"\t "<<r_per;
}
}
void main()
{
int i,ch;
bill R[5];
char c;
clrscr();
R[0].getr1();
R[1].getr2();
R[2].getr3();
R[3].getr4();
R[4].getr5();
textcolor(4+200);
textbackground(1);
time_t t;
clrscr();
t = time(NULL);
cout<<"\n "<<ctime(&t);
t -= 24L*60L*60L;
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n*************************** WELCOME TO HOTEL SUPER STAR ************************";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n--------------------------------------------------------------------------------";
getch();
textcolor(10);
textbackground(4200);
xyz:
clrscr();
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n********************** Super Star Hotel **************************";
cout<<"\n ________________________________ ";
cout<<"\n S.V.Road,Dahisar(E),Mumbai-68. ";
cout<<"\n Tel-45454545. ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n ";
cout<<"\n 1.GET INFORMATION 2.GET CUSTOMER INFO ";
cout<<"\n ";
cout<<"\n 3.MODIFY INFORMATION 4.CHECK THE AVAILABILITY ";
cout<<"\n ";
cout<<"\n 5.ALLOCATE ROOM 6.FEATURES OF ROOMS ";
cout<<"\n ";
cout<<"\n 7.CREATE BILL 8.EXIT ";
cout<<"\n\n Enter your choice : ";
cin >>ch;
if(ch>8)
{
clrscr();
cout<<"\n Wrong choice ....";
getch();
goto xyz;
}
if(ch==1)
{
clrscr();
cout<<"\n ROOM INFO ";
cout<<"\n ----------- ";
cout<<"\nRoom No| Type | Charge | Availability | Cust_Name | Period |";
for(i=0;i<=4;i++)
{
R[i].putinfo();
}
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
else
goto mno;
}
else
if(ch==2)
{
abc:
clrscr();
int n;
cout<<"\n Enter room no. :";
cin>>n;
if(n>5)
{
cout<<"\n Wrong choice ....";
getch();
goto abc;
}
n=n-1;
clrscr();
cout<<"\n CUSTOMER INFO ";
cout<<"\n -------------- ";
R[n].putcust();
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
else
goto mno;
}
else
if(ch==3)
{
pqr:
clrscr();
int a;
cout<<"\n Enter Room no :";
cin>>a;
if(a>5)
{
cout<<"\n Wrong choice ...";
getch();
goto pqr;
}
a=a-1;
R[a].modify();
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
else
goto mno;
}
else
if(ch==4)
{
clrscr();
cout<<"\n AVAILABLE ROOMS ";
cout<<"\n ----------------- ";
cout<<"\nRoom No| Type | Charge | Availability | Cust_Name | Period|";
for(i=0;i<=4;i++)
{
R[i].check();
}
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
else
goto mno;
}
else
if(ch==5)
{
int b;
def:
clrscr();
cout<<"\n Enter room no to be allocated:";
cin >>b;
if(b>5)
{
cout<<"\n Wrong choice ...";
getch();
goto def;
}
b=b-1;
R[b].allocate();
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
else
goto mno;
}
else
if(ch==6)
{
ghi:
clrscr();
int a,d,e,f,g,h;
char c;
char b[5];
cout<<"\n Enter Room No:";
cin>>a;
if(a>5)
{
cout<<"\n Wrong choice ...";
getch();
goto ghi;
}
a=a-1;
strcpy(b,R[a].r_type);
d=strcmp(b,"spd");
e=strcmp(b,"dlx");
f=strcmp(b,"gen");
g=strcmp(b,"coupd");
h=strcmp(b,"coup");
if(d==0)
{
spd();
}
else
if(e==0)
{
dlx();
}
else
if(f==0)
{
gen();
}
else
if(g==0)
{
coupd();
}
else
if(h==0)
{
coup();
}
getch();
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
}
else
if(ch==7)
{
stu:
clrscr();
int b;
cout<<"\n Enter Room no :";
cin>>b;
if(b>5)
{
cout<<"\n Wrong choice ...";
getch();
goto stu;
}
{
char av;
av=R[b-1].getavail();
if(av=='Y')
{
cout<<"\n ERROR: Room is not allocated.";
cout<<"\n Bill cannot be created ";
getch();
goto stu;
}
else
{
R[b-1].calculate();
R[b-1].dispbill();
getch();
}
}
clrscr();
cout<<"\n ";
cout<<"\n--------------------------------------------------------------------------------";
cout<<"\n Do you want to exit :";
cin>>c;
if (c=='N')
goto xyz;
}
else
if(ch==8)
{
goto mno;
}
mno:
}
void spd()
{
clrscr();
cout<<"\n FEATURES OF THIS ROOM ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n Room Type >>> Sp.delux ";
cout<<"\n\n Room charges >>> Rs.1500 per day";
cout<<"\n\n 1. Bed >>> 2";
cout<<"\n\n 2.Capacity >>> 5";
cout<<"\n\n 3.Balcony available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n ADDITIONAL FEATURES ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n 1.A/C available ";
cout<<"\n\n 2.Geyser available";
cout<<"\n\n 3.TV available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n NOTE :- Extra bed will cost Rs.50 per bed ";
}
void dlx()
{
clrscr();
cout<<"\n FEATURES OF THIS ROOM ";
cout<<"\n-------------------------------------------------------------------";
cout<<"\n\n Room Type >>> Delux ";
cout<<"\n\n Room charges >>>Rs.1000 per day";
cout<<"\n\n 1. Bed >>> 2";
cout<<"\n\n 2.Capacity >>> 5";
cout<<"\n-------------------------------------------------------------------";
cout<<"\n ADDITIONAL FEATURES ";
cout<<"\n-------------------------------------------------------------------";
cout<<"\n\n 1.A/C avaalable ";
cout<<"\n\n 3.Geyser available";
cout<<"\n\n 4.TV available ";
cout<<"\n-------------------------------------------------------------------";
cout<<"\n NOTE :- Extra bed will cost Rs.50 per bed ";
}
void gen()
{
clrscr();
cout<<"\n FEATURES OF THIS ROOM ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n Room Type >>> General ";
cout<<"\n\n Room charges >>>Rs.750 per day";
cout<<"\n\n 1. Bed >>> 2";
cout<<"\n\n 2.Capacity >>> 5";
cout<<"\n------------------------------------------------------------------";
cout<<"\n ADDITIONAL FEATURES ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n 1.Geyser available";
cout<<"\n------------------------------------------------------------------";
cout<<"\n NOTE :- Extra bed will cost Rs.50 per bed ";
}
void coup()
{
clrscr();
cout<<"\n FEATURES OF THIS ROOM ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n Room Type >>> Couple ";
cout<<"\n\n Room charges >>>Rs.1250 per day";
cout<<"\n\n 1. Bed >>> 1";
cout<<"\n\n 2. Capacity >>> 2";
cout<<"\n\n 3.Balcony available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n ADDITIONAL FEATURES ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n 2.Geyser available";
cout<<"\n\n 3.TV available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n NOTE :- Extra bed will cost Rs.50 per bed ";
}
void coupd()
{
clrscr();
cout<<"\n FEATURES OF THIS ROOM ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n Room Type >>> Couple delux ";
cout<<"\n\n Room charges >>> Rs.1500 per day";
cout<<"\n\n 1. Bed >>> 1";
cout<<"\n\n 2.Capacity >>> 2";
cout<<"\n\n 3.Balcony available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n ADDITIONAL FEATURES ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n\n 1.A/C available ";
cout<<"\n\n 2.Geyser available";
cout<<"\n\n 3.TV available ";
cout<<"\n------------------------------------------------------------------";
cout<<"\n NOTE :- Extra bed will cost Rs.50 per bed ";
}
|
|
|
|
|