Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting hidden memory start address Pin
ta_isr17-Aug-09 4:51
ta_isr17-Aug-09 4:51 
QuestionRe: Getting hidden memory start address Pin
David Crow17-Aug-09 3:18
David Crow17-Aug-09 3:18 
AnswerRe: Getting hidden memory start address Pin
ta_isr17-Aug-09 4:53
ta_isr17-Aug-09 4:53 
AnswerRe: Getting hidden memory start address Pin
Randor 17-Aug-09 3:55
professional Randor 17-Aug-09 3:55 
GeneralRe: Getting hidden memory start address Pin
ta_isr17-Aug-09 4:45
ta_isr17-Aug-09 4:45 
GeneralRe: Getting hidden memory start address Pin
Randor 17-Aug-09 5:06
professional Randor 17-Aug-09 5:06 
GeneralRe: Getting hidden memory start address Pin
ta_isr17-Aug-09 20:20
ta_isr17-Aug-09 20:20 
Questionprobelm while enter the values it is not visible while entering but i got the output Pin
sakthikarthi66617-Aug-09 0:51
sakthikarthi66617-Aug-09 0:51 
hai to everybody

i am doing a program in C++ and it executed successfull but while i enter the values it not be visible


#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
char buf[20],p[20],cos[20];
int mutex,i,k,c,n;
class ipc
{
public:
ipc()
{
mutex=0;
}
void prosig()
{
mutex=mutex+1;
}
void consig()
{
mutex=mutex-1;
}
int buffer(int mutex)
{
if(mutex==0)
return 1;
else
return 0;
}
void producer()
{
int c;
c=buffer(mutex);
if(c==1)
{
cout<<"producer can produce item & give $ for end \n";
i=0;
while((p[i]=getch())!='$')
{
buf[i]=p[i];
i++;
}
k=i;
prosig();
cout<<"production successfully done/n";
}
else
{
cout<<"buffer is full cannot produce\n";
}
}
void consumer()
{
int c;
c=buffer(mutex);
if(c==0)
{
cout<<"consumer can consumer item\n";
for(i=0;i<k;i++)
cos[i]=buf[i];
cout<<"consumer item is ";
for(i=0;i<k;i++)
cout<<cos[i]<<endl;
consig();
cout<<"successfully done\n";
}
else
cout<<"buffer is empty. cannot consume.\n";
}
};
void main()
{
ipc p1;
int op;
clrscr();
do
{
cout<<"1:Producer.\n";
cout<<"2:Consumer.\n";
cout<<"3:Exit.\n";
cout<<"\t\t Enter your option:";
cin>>op;
switch(op)
{
case 1:
p1.producer();
break;
case 2:
p1.consumer();
break;
case 3:
exit(0);
break;
}
}
while(op<=3);
getch();
}



i think for the above underlined word not allow to visible the text while running the program
AnswerRe: probelm while enter the values it is not visible while entering but i got the output Pin
robert(m.tech)17-Aug-09 1:10
robert(m.tech)17-Aug-09 1:10 
QuestionHDC Pin
kumar sanghvi16-Aug-09 22:43
kumar sanghvi16-Aug-09 22:43 
AnswerRe: HDC Pin
Cedric Moonen16-Aug-09 22:53
Cedric Moonen16-Aug-09 22:53 
AnswerRe: HDC Pin
Code-o-mat16-Aug-09 22:59
Code-o-mat16-Aug-09 22:59 
GeneralRe: HDC Pin
kumar sanghvi16-Aug-09 23:01
kumar sanghvi16-Aug-09 23:01 
GeneralRe: HDC Pin
Code-o-mat16-Aug-09 23:05
Code-o-mat16-Aug-09 23:05 
GeneralRe: HDC Pin
kumar sanghvi16-Aug-09 23:15
kumar sanghvi16-Aug-09 23:15 
GeneralRe: HDC Pin
Cedric Moonen16-Aug-09 23:21
Cedric Moonen16-Aug-09 23:21 
GeneralRe: HDC Pin
Code-o-mat16-Aug-09 23:44
Code-o-mat16-Aug-09 23:44 
QuestionDialogBox Pin
kk.tvm16-Aug-09 22:26
kk.tvm16-Aug-09 22:26 
AnswerRe: DialogBox Pin
Code-o-mat16-Aug-09 22:30
Code-o-mat16-Aug-09 22:30 
GeneralRe: DialogBox Pin
kk.tvm16-Aug-09 22:32
kk.tvm16-Aug-09 22:32 
GeneralRe: DialogBox Pin
Code-o-mat16-Aug-09 22:49
Code-o-mat16-Aug-09 22:49 
GeneralRe: DialogBox Pin
kk.tvm16-Aug-09 23:00
kk.tvm16-Aug-09 23:00 
AnswerRe: DialogBox Pin
Rajesh R Subramanian16-Aug-09 22:36
professionalRajesh R Subramanian16-Aug-09 22:36 
GeneralRe: DialogBox Pin
kk.tvm16-Aug-09 22:58
kk.tvm16-Aug-09 22:58 
GeneralRe: DialogBox Pin
Rajesh R Subramanian16-Aug-09 23:08
professionalRajesh R Subramanian16-Aug-09 23:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.