multimap<string, int, case_insensitive_test> multimap_order;
this is the type.
This is line 3638:
for (multimap<string, int, case_insensitive_test>::const_reverse_iterator const_it = multimap_order.rbegin(); const_it != multimap_order.rend(); ++const_it ){
[2], int, std::string (*)[2], int, std::string)':
shenuadmin.cpp:3638: error: no match for 'operator!=' in 'const_it != std::multimap<_Key, _Tp, _Compare, _Alloc>::rend() [with _Key = std::string, _Tp = int, _Compare = case_insensitive_test, _Alloc = std::allocator<std::pair<const std::string, int> >]()'
and my question #1.
cin >> yes;if ( yes == "yes" ){ for(int i=0; i<=1000; i++){ many many commands, including changing variables. }}else{ for(int i=1000; i>=0; i--){ exactly the same commands as above, but only in descending order. }}
I thought writing a sample simple example would simplify the answer, but I guess not.
if ( sort_type == "descending" ){for (multimap<string, int, case_insensitive_test>::const_iterator const_it = multimap_order.begin(); const_it != multimap_order.end(); ++const_it ){//BLA BLA BLA}}else{for (multimap<string, int, case_insensitive_test>::const_reverse_iterator const_it = multimap_order.rbegin(); const_it != multimap_order.rend(); ++const_it ){/// BLA BLA BLA}}
and in the BLABLABLA area,
I would like to put this in
Menu_Cfg="system/users/orders/"; Menu_Cfg+=ToString((*const_it).second); Menu_Cfg+=".cgi"; count_order_flag++; cout << " <TR BORDERCOLORDARK=\"WHITE\" BORDERCOLORLIGHT=\"#C6C3C6\" BORDERCOLOR=\"WHITE\" onClick='changeRow_order(this); change_OptionIconsOrder(\"" << (*const_it).second << "\", \"" << Temp_Select_All_Order_Number_Holder << "\", \"" << Temp_Select_All_Order_Holder << "\", \"type1\");' onDblClick='edit_order(\"" << (*const_it).second << "\");' id='changeme_order"; cout << (*const_it).second; cout << "' style='cursor:default' onselectstart=\"return false\">"; cout << " <TD WIDTH=1 title=\"Marked Deletion\" NOWRAP>"; cout << " <INPUT TYPE=checkbox NAME='order_multidelete" << (*const_it).second << "' VALUE=1>"; cout << " </TD>"; cout << " <TD>"; if ( ReadPosition("status", Menu_Cfg) != "" ){ cout << "<IMG name=orderStatusIcon src=\"system/image/admin/menu/" << ReadPosition("status", Menu_Cfg) << ".gif\" width=16 height=16 align=absmiddle border=0>"; } else{ cout << " "; } cout << " </TD>"; cout << " <TD>"; cout << " " << ReadPosition("order_number", Menu_Cfg); cout << " </TD>"; cout << " <TD>"; cout << " " << ReadPosition("customer_FirstName", Menu_Cfg); cout << " </TD>"; cout << " <TD>"; cout << " " << ReadPosition("customer_LastName", Menu_Cfg); cout << " </TD>"; cout << " <TD ALIGN=center>"; cout << " " << ReadPosition("total_items", Menu_Cfg); cout << " </TD>"; cout << " <TD>"; cout << " <script>document.write(ToDigits(\"" << ReadPosition("subtotal", Menu_Cfg) << "\"));</script>"; cout << " </TD>"; cout << " <TD ALIGN=left>"; cout << " " << ReadPosition("status", Menu_Cfg); cout << " </TD>"; cout << " <TD>"; cout << " " << ReadPosition("date", Menu_Cfg); cout << " " << ReadPosition("time", Menu_Cfg); cout << " </TD>";