I'm use to programming in Coldfusion and new to C++, so I'm having a hard time grasping how to get values out of an array:
The array is named bnext[7][61]
I need to put the values into a table/query. I understand how to
grab the 2nd value, but lost on how to get the first part of the array. Here's what I have so far. I put a "?" where I'm confused:
Code:
char bnext[200];
CString strName = strcat(bnext,"qrybnext");
// Create a query object to return to the client
CCFXStringSet* pColumns = pRequest->CreateStringSet() ;
int iCol1 = pColumns->AddString("MAXDEG") ;
int iCol2 = pColumns->AddString("MAXATATM") ;
CCFXQuery* pQuery = pRequest->AddQuery( strName, pColumns ) ;
for (i = 0 ; i <= MAXATM + 1 ; i++) {
int iRow = pQuery->AddRow() ;
pQuery->SetData( iRow, iCol1, ? ) ;
pQuery->SetData( iRow, iCol2, bnext[i] ) ;
}
Any help would be greatly appreciated