Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMemory leak in this case? Pin
George_George20-Mar-08 23:56
George_George20-Mar-08 23:56 
AnswerRe: Memory leak in this case? Pin
CPallini21-Mar-08 0:01
mveCPallini21-Mar-08 0:01 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 0:13
George_George21-Mar-08 0:13 
GeneralRe: Memory leak in this case? Pin
CPallini21-Mar-08 0:28
mveCPallini21-Mar-08 0:28 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 0:41
George_George21-Mar-08 0:41 
AnswerRe: Memory leak in this case? Pin
Rajkumar R21-Mar-08 0:05
Rajkumar R21-Mar-08 0:05 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 0:14
George_George21-Mar-08 0:14 
GeneralRe: Memory leak in this case? Pin
Rajkumar R21-Mar-08 0:38
Rajkumar R21-Mar-08 0:38 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 0:45
George_George21-Mar-08 0:45 
GeneralRe: Memory leak in this case? Pin
Rajkumar R21-Mar-08 0:49
Rajkumar R21-Mar-08 0:49 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 0:55
George_George21-Mar-08 0:55 
AnswerRe: Memory leak in this case? Pin
Nemanja Trifunovic21-Mar-08 6:49
Nemanja Trifunovic21-Mar-08 6:49 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 20:46
George_George21-Mar-08 20:46 
AnswerRe: Memory leak in this case? Pin
peterchen21-Mar-08 9:38
peterchen21-Mar-08 9:38 
GeneralRe: Memory leak in this case? Pin
George_George21-Mar-08 20:39
George_George21-Mar-08 20:39 
Questionhow to embedd a manifest file to vc++ 6.0 Pin
vicky0000020-Mar-08 22:00
vicky0000020-Mar-08 22:00 
AnswerRe: how to embedd a manifest file to vc++ 6.0 Pin
bob1697221-Mar-08 2:34
bob1697221-Mar-08 2:34 
GeneralRandomizing in c++ [modified] Pin
zanderela20-Mar-08 20:18
zanderela20-Mar-08 20:18 
QuestionRe: Randomizing in c++ Pin
CPallini20-Mar-08 21:56
mveCPallini20-Mar-08 21:56 
GeneralRe: Randomizing in c++ Pin
Rajesh R Subramanian20-Mar-08 22:44
professionalRajesh R Subramanian20-Mar-08 22:44 
GeneralRe: Randomizing in c++ Pin
CPallini20-Mar-08 23:05
mveCPallini20-Mar-08 23:05 
GeneralRe: Randomizing in c++ Pin
toxcct20-Mar-08 23:40
toxcct20-Mar-08 23:40 
GeneralRe: Randomizing in c++ Pin
Capitanevs21-Mar-08 2:18
Capitanevs21-Mar-08 2:18 
GeneralRe: Randomizing in c++ Pin
David Crow21-Mar-08 3:34
David Crow21-Mar-08 3:34 
You need a structure of some sort to hold:

  • The question
  • The list of possible answers
  • The correct answer

    Something like:

    struct _Trivia
    {
        string strQuestion;
        vector<string> vecChoices;
        string strAnswer;
    };


    "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


  • QuestionNeed help on outlook addin Pin
    manish.patel20-Mar-08 19:23
    manish.patel20-Mar-08 19:23 

    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.