Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating an update function for my game Pin
Calin Negru26-Jan-24 0:41
Calin Negru26-Jan-24 0:41 
GeneralRe: Creating an update function for my game Pin
Richard MacCutchan26-Jan-24 0:52
mveRichard MacCutchan26-Jan-24 0:52 
GeneralRe: Creating an update function for my game Pin
CPallini26-Jan-24 1:25
mveCPallini26-Jan-24 1:25 
GeneralRe: Creating an update function for my game Pin
Richard MacCutchan26-Jan-24 1:30
mveRichard MacCutchan26-Jan-24 1:30 
QuestionRe: Creating an update function for my game Pin
CPallini26-Jan-24 0:39
mveCPallini26-Jan-24 0:39 
QuestionHelp me to decipher the error messages Pin
Salvatore Terress20-Jan-24 2:46
Salvatore Terress20-Jan-24 2:46 
AnswerRe: Help me to decipher the error messages Pin
Richard MacCutchan20-Jan-24 3:18
mveRichard MacCutchan20-Jan-24 3:18 
AnswerRe: Help me to decipher the error messages Pin
Dave Kreskowiak20-Jan-24 4:56
mveDave Kreskowiak20-Jan-24 4:56 
AnswerRe: Help me to decipher the error messages Pin
Gerry Schmitz20-Jan-24 6:34
mveGerry Schmitz20-Jan-24 6:34 
AnswerRe: Help me to decipher the error messages Pin
Richard Andrew x6421-Jan-24 11:33
professionalRichard Andrew x6421-Jan-24 11:33 
AnswerRe: Help me to decipher the error messages Pin
CPallini21-Jan-24 20:33
mveCPallini21-Jan-24 20:33 
AnswerRe: Help me to decipher the error messages Pin
jschell22-Jan-24 5:24
jschell22-Jan-24 5:24 
GeneralRe: Help me to decipher the error messages Pin
Richard MacCutchan22-Jan-24 6:22
mveRichard MacCutchan22-Jan-24 6:22 
GeneralRe: Help me to decipher the error messages Pin
Gerry Schmitz26-Jan-24 6:13
mveGerry Schmitz26-Jan-24 6:13 
QuestionLoop thru two dimensional array - edited Pin
Salvatore Terress15-Jan-24 7:41
Salvatore Terress15-Jan-24 7:41 
AnswerRe: Loop thru two dimensional array Pin
jeron115-Jan-24 9:31
jeron115-Jan-24 9:31 
GeneralRe: Loop thru two dimensional array Pin
Salvatore Terress15-Jan-24 9:50
Salvatore Terress15-Jan-24 9:50 
AnswerRe: Loop thru two dimensional array Pin
k505415-Jan-24 10:45
mvek505415-Jan-24 10:45 
GeneralRe: Loop thru two dimensional array Pin
Salvatore Terress15-Jan-24 12:28
Salvatore Terress15-Jan-24 12:28 
AnswerSOLVED Re: Loop thru two dimensional array - edited Pin
Salvatore Terress15-Jan-24 12:49
Salvatore Terress15-Jan-24 12:49 
QuestionRe: SOLVED Re: Loop thru two dimensional array - edited Pin
jeron116-Jan-24 6:39
jeron116-Jan-24 6:39 
To me anyway, your for loop test seems tailored to the actual counts of items and subitems, what if each QStringList had 15 strings instead of 4?

Couldn't you use containers analogous to stl contianers
something along the lines of;
QList<QStringList> myList;

QStringList strlist1 = { "Blah1", "Blah2", "Blah3" };
QStringList strlist2 = { "Blah4", "Blah5", "Blah6" };
QStringList strlist3 = { "Blah7", "Blah8", "Blah9" };

myList.push_back(strList1);
myList.push_back(strList2);
myList.push_back(strList3);

  for (int mainIndex = 0; mainIndex < myList.size(); mainIndex++)
  {
     // do item stuff
  
     for (int subIndex = 0; subIndex < myList[mainIndex].size(); subIndex++)
     {
        // do some sub item stuff
     }
  }

"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

AnswerRe: SOLVED Re: Loop thru two dimensional array - edited Pin
Salvatore Terress16-Jan-24 7:20
Salvatore Terress16-Jan-24 7:20 
QuestionAdding "checkable " in Qt QMenu / QAction using C++ partially fails Pin
Salvatore Terress13-Jan-24 16:29
Salvatore Terress13-Jan-24 16:29 
AnswerRe: Adding "checkable " in Qt QMenu / QAction using C++ partially fails Pin
Richard MacCutchan13-Jan-24 21:09
mveRichard MacCutchan13-Jan-24 21:09 
AnswerRe: Adding "checkable " in Qt QMenu / QAction using C++ partially fails Pin
Dave Kreskowiak14-Jan-24 6:06
mveDave Kreskowiak14-Jan-24 6:06 

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.