Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Help Pin
Rob_BCFC2-May-05 4:53
sussRob_BCFC2-May-05 4:53 
GeneralRe: C++ Help Pin
namaskaaram2-May-05 5:03
namaskaaram2-May-05 5:03 
GeneralRe: C++ Help Pin
Rob_BCFC2-May-05 5:08
sussRob_BCFC2-May-05 5:08 
GeneralRe: C++ Help Pin
David Crow2-May-05 6:05
David Crow2-May-05 6:05 
GeneralRe: C++ Help Pin
Blake Miller2-May-05 9:08
Blake Miller2-May-05 9:08 
Questionget unique ID from outlook appointments or contacts? Pin
ThinkingPrometheus2-May-05 1:54
ThinkingPrometheus2-May-05 1:54 
GeneralReceiving text strings over Bluetooth using a C-program and Visual C++ Pin
pete^2-May-05 1:29
pete^2-May-05 1:29 
GeneralPlz chck this code!! Pin
Member 18801462-May-05 0:30
Member 18801462-May-05 0:30 
Hye.
i write this code to get inpur from user such as ram and hard disk capacity as integer type using structures. After that i want to create a file in which i want to save that data. In the code below it is getting input from user but not creating fileConfused | :confused: . Plz tell where is my mistake.
Code is:

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

void main()
{
struct computerspec
{
int ram;
int hdisk;
}compuspec;

cout<<"Enter the RAM capacity"<<endl;
cin>>compuspec.ram;


cout<<endl;
cout<<"enter the="" hard="" disk="" capacity"<<endl;
cin="">>compuspec.hdisk;


cout<
GeneralRe: Plz chck this code!! Pin
Rahim Rattani2-May-05 1:39
Rahim Rattani2-May-05 1:39 
GeneralRe: Plz chck this code!! Pin
David Crow2-May-05 2:13
David Crow2-May-05 2:13 
GeneralRe: Plz chck this code!! Pin
Rahim Rattani2-May-05 2:27
Rahim Rattani2-May-05 2:27 
GeneralRe: Plz chck this code!! Pin
SuperTank2-May-05 5:27
SuperTank2-May-05 5:27 
GeneralConvert Words to Numbers Pin
Member 6339521-May-05 22:12
Member 6339521-May-05 22:12 
GeneralRe: Convert Words to Numbers Pin
Rahim Rattani2-May-05 1:19
Rahim Rattani2-May-05 1:19 
GeneralCDialog::EndDialog crashes application Pin
leatrop1-May-05 20:59
leatrop1-May-05 20:59 
GeneralRe: CDialog::EndDialog crashes application Pin
khan++2-May-05 0:37
khan++2-May-05 0:37 
GeneralRe: CDialog::EndDialog crashes application Pin
leatrop2-May-05 12:29
leatrop2-May-05 12:29 
GeneralRe: CDialog::EndDialog crashes application Pin
Rahim Rattani2-May-05 2:02
Rahim Rattani2-May-05 2:02 
GeneralRe: CDialog::EndDialog crashes application Pin
leatrop2-May-05 12:52
leatrop2-May-05 12:52 
GeneralMicrosoft word and MFC Pin
Aqueel1-May-05 20:13
Aqueel1-May-05 20:13 
Generalbuttons not seen on dialog box Pin
Anonymous1-May-05 19:47
Anonymous1-May-05 19:47 
GeneralRe: buttons not seen on dialog box Pin
namaskaaram1-May-05 20:07
namaskaaram1-May-05 20:07 
GeneralRe: buttons not seen on dialog box Pin
Anonymous1-May-05 20:14
Anonymous1-May-05 20:14 
GeneralRe: buttons not seen on dialog box Pin
khan++1-May-05 20:22
khan++1-May-05 20:22 
GeneralRe: buttons not seen on dialog box Pin
John R. Shaw2-May-05 7:24
John R. Shaw2-May-05 7:24 

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.