Click here to Skip to main content
11,565,623 members (42,939 online)

ATL / WTL / STL

 
GeneralRe: resolved, with many curses directed at myself Pin
Albert Holguin10-Mar-13 15:49
memberAlbert Holguin10-Mar-13 15:49 
Generalsomething new to me Pin
bkelly1310-Mar-13 16:14
memberbkelly1310-Mar-13 16:14 
GeneralRe: something new to me Pin
Albert Holguin11-Mar-13 7:53
memberAlbert Holguin11-Mar-13 7:53 
Questionrookie need help with STL Pin
spawn200420-Feb-13 7:40
memberspawn200420-Feb-13 7:40 
Hi everybody Smile | :) I need some professional help from experienced people. I am writing a program in C++ about a game. I have to specify a class Questions with attributes question, answers and difficulty. In the program i should have methods add, edit, select, search, print and remove. The problem that i have is that i have to work dynamically with these questions and when i choose from the menu save, just then to save everything into the file. So far i have ideas for everything except what kind of container to use?? I thought that i can use "map" but the key ( this should be the number of question) is const and if i delete a question the keys after that will remain the same. I need when i delete a question this integer ( question number) to decrease with 1. Can you give me an advise what kind of container to use and if i need to put question number as an attribute into the class.
Thank you in advance for the help Smile | :)
AnswerRe: rookie need help with STL Pin
Jonathan Davies21-Feb-13 1:05
memberJonathan Davies21-Feb-13 1:05 
AnswerRe: rookie need help with STL Pin
Rahul from Poona23-Feb-13 22:26
memberRahul from Poona23-Feb-13 22:26 
Questionlocals not valid in debugger Pin
bkelly1313-Feb-13 3:13
memberbkelly1313-Feb-13 3:13 
AnswerRe: locals not valid in debugger Pin
Richard MacCutchan13-Feb-13 3:18
mvpRichard MacCutchan13-Feb-13 3:18 
GeneralRe: locals not valid in debugger Pin
bkelly1313-Feb-13 3:51
memberbkelly1313-Feb-13 3:51 
AnswerRe: locals not valid in debugger Pin
Albert Holguin13-Feb-13 4:42
memberAlbert Holguin13-Feb-13 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 26 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid