Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
While it is not hurting anything, why do you have the computerspec structure if you are using the member variables individually? I would think you'd want something like:

struct computerspec 
{
    int compnum;
    int ram;
    int hdisk;
};
 
void main( void )
{
    computerspec compuspec;
 
    compuspec.compnum = 1;
    compuspec.ram     = 1024;
    compuspec.hdisk   = 80;
    out << compuspec;
 
    compuspec.compnum = 2;
    compuspec.ram     = 4096;
    compuspec.hdisk   = 40;
    out << compuspec;
    
    ...
 
    compuspec.compnum = -1;
    compuspec.ram     = 0;
    compuspec.hdisk   = 0;
    out << compuspec;
 
    out.close();
 
    ...
  
    // read each "record" in the file
    do
    {
        in << compuspec;
    } while (compuspec.compnum != -1);
}
Note that this is untested and may not be syntactically correct but I am just trying to give you an idea.


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


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 
GeneralRe: Converting char to char* Pin
David Crow4-May-05 2:15
David Crow4-May-05 2:15 
GeneralRe: Converting char to char* Pin
talkster54-May-05 4:39
talkster54-May-05 4:39 

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.