Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:25
Asha Udupa3-May-05 0:25 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:28
ThatsAlok3-May-05 0:28 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:30
Asha Udupa3-May-05 0:30 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:39
ThatsAlok3-May-05 0:39 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:58
ThatsAlok3-May-05 0:58 
GeneralRe: SetWindowRgn() for buttons Pin
Ryan Binns3-May-05 0:21
Ryan Binns3-May-05 0:21 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi3-May-05 1:50
Behzad Ebrahimi3-May-05 1:50 
Generalhlp me in dis code!! Pin
Member 18801462-May-05 23:13
Member 18801462-May-05 23:13 
I write the folowing code which is taking RAM and Hard disk capacity from user by using structures and than saving it to a new file after the user complete entring data it is displaying data entered by the user by opening that file. Problm is that i want to ask the user to choose an option (y/n): If user enter y then your program again get the next record of computer specification i.e RAM capacity and hard disk capacity and store the information in file. And when the user enter n it will stop getting information and display the data of the file. For this i use do while construct but it is not working properly it is getting data but displays only last entry. plz tell me wat should i do.
the code is:

#include <conio.h>
#include <iostream.h>
#include <fstream.h>

struct computerspec
{
int ram;
int hdisk;
}compuspec;

void main()
{
char ch;
do
{
//prompt the user to enter RAM capacity
cout<<"Enter the RAM capacity"<<endl;
cin>>compuspec.ram;
cout<<endl;

prompt="" the="" user="" to="" enter="" hard="" disk="" capacity
cout<<"enter="" capacity"<<endl;
cin="">>compuspec.hdisk;
cout<
GeneralRe: hlp me in dis code!! Pin
Rahim Rattani2-May-05 23:52
Rahim Rattani2-May-05 23:52 
Questionconvert int to char?? Pin
Larsson2-May-05 22:47
Larsson2-May-05 22:47 
AnswerRe: convert int to char?? Pin
stolid_rock2-May-05 22:54
stolid_rock2-May-05 22:54 
GeneralRe: convert int to char?? Pin
Larsson2-May-05 22:57
Larsson2-May-05 22:57 
AnswerRe: convert int to char?? Pin
ThatsAlok2-May-05 22:56
ThatsAlok2-May-05 22:56 
GeneralRe: convert int to char?? Pin
Larsson2-May-05 22:57
Larsson2-May-05 22:57 
GeneralRe: convert int to char?? Pin
ThatsAlok2-May-05 23:06
ThatsAlok2-May-05 23:06 
GeneralRe: convert int to char?? Pin
Larsson2-May-05 23:10
Larsson2-May-05 23:10 
Answerquick way to convert int to null terminated string Pin
mkuhac3-May-05 10:56
mkuhac3-May-05 10:56 
AnswerRe: convert int to char?? Pin
CodeBeetle8-May-05 10:09
CodeBeetle8-May-05 10:09 
AnswerRe: convert int to char?? Pin
owillebo1-Aug-05 1:32
owillebo1-Aug-05 1:32 
Generalcontext sensitive help, vs6 -&gt; vs7 Pin
IlanTal2-May-05 22:15
IlanTal2-May-05 22:15 
General3 D Push Button control Pin
thiyags2-May-05 21:04
thiyags2-May-05 21:04 
GeneralRe: 3 D Push Button control Pin
ThatsAlok2-May-05 23:53
ThatsAlok2-May-05 23:53 
GeneralActive Directory Pin
Yevgeny Efter2-May-05 20:46
Yevgeny Efter2-May-05 20:46 
GeneralRe: Active Directory Pin
spsharma2-May-05 23:22
spsharma2-May-05 23:22 
QuestionHelp needed in setting the dimensions of the window, when clicked on restore? Pin
ledallam2-May-05 20:21
ledallam2-May-05 20:21 

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.