Click here to Skip to main content
15,909,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to implement delay Pin
Christian Graus3-May-05 14:06
protectorChristian Graus3-May-05 14:06 
GeneralRe: How to implement delay Pin
hithesh23-May-05 14:34
susshithesh23-May-05 14:34 
GeneralRe: How to implement delay Pin
Christian Graus3-May-05 14:46
protectorChristian Graus3-May-05 14:46 
GeneralRe: How to implement delay Pin
hithesh3-May-05 16:54
hithesh3-May-05 16:54 
GeneralRe: How to implement delay Pin
Christian Graus3-May-05 16:58
protectorChristian Graus3-May-05 16:58 
Generalwindow stops repainting... Pin
Ramsus3-May-05 10:02
Ramsus3-May-05 10:02 
GeneralRe: window stops repainting... Pin
Ravi Bhavnani3-May-05 11:34
professionalRavi Bhavnani3-May-05 11:34 
Generalhlp me out!! Pin
Member 18801463-May-05 9:40
Member 18801463-May-05 9:40 
I write the code which is given below that is getting ram and hard disk capacity from user than saving it in a file and than displaying the file. after that i jst want to display all the records entered by the user and also display the total number of computers whose records were entered by the user. plz hlp me what should i do. code is below:

//Header Files
#include <iostream.h>//header file for input output streams
#include <fstream.h>// Header for file I/O
#include <conio.h>//header file for console input output

using namespace std;

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

int main()
{//start main
char ch;

ofstream out("computerspec.txt");//creating file name

out<<"RAM"<<"\t"<<"Hard disk"<<endl;

do=""
="" {="" start="" of="" while="" loop
="" prompt="" the="" user="" to="" enter="" ram="" capacity
="" cout<<"enter="" capacity"<<endl;
="" cin="">>compuspec.ram;
//for new line
cout<<endl;

prompt="" the="" user="" to="" enter="" hard="" disk="" capacity
="" cout<<"enter="" capacity"<<endl;
="" cin="">>compuspec.hdisk;
//for new line
cout<
GeneralRe: hlp me out!! Pin
Maximilien3-May-05 9:44
Maximilien3-May-05 9:44 
GeneralRe: hlp me out!! Pin
David Crow3-May-05 10:45
David Crow3-May-05 10:45 
GeneralRe: hlp me out!! Pin
Member 18801463-May-05 20:44
Member 18801463-May-05 20:44 
GeneralRe: hlp me out!! Pin
David Crow4-May-05 2:21
David Crow4-May-05 2:21 
GeneralConverting char to char* Pin
talkster53-May-05 9:10
talkster53-May-05 9:10 
GeneralRe: Converting char to char* Pin
Wes Aday3-May-05 9:16
professionalWes Aday3-May-05 9:16 
GeneralRe: Converting char to char* Pin
talkster53-May-05 9:24
talkster53-May-05 9:24 
GeneralRe: Converting char to char* Pin
David Crow3-May-05 10:32
David Crow3-May-05 10:32 
GeneralRe: Converting char to char* Pin
talkster53-May-05 10:42
talkster53-May-05 10:42 
GeneralRe: Converting char to char* Pin
David Crow3-May-05 10:49
David Crow3-May-05 10:49 
GeneralRe: Converting char to char* Pin
talkster53-May-05 10:57
talkster53-May-05 10:57 
GeneralRe: Converting char to char* Pin
David Crow3-May-05 11:01
David Crow3-May-05 11:01 
GeneralRe: Converting char to char* Pin
talkster53-May-05 11:04
talkster53-May-05 11:04 
GeneralRe: Converting char to char* Pin
Anonymous3-May-05 13:41
Anonymous3-May-05 13:41 
GeneralRe: Converting char to char* Pin
David Crow3-May-05 16:36
David Crow3-May-05 16:36 
GeneralRe: Converting char to char* Pin
talkster53-May-05 20:06
talkster53-May-05 20:06 
GeneralRe: Converting char to char* Pin
Aamir Butt4-May-05 1:14
Aamir Butt4-May-05 1:14 

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.