for (int i =0; i <ala.size(); i++ ) { for (int j=0; j<ala[i].m_nodes.size(); j++) { pied++; string f=ala[i].m_nodes[j]; cout<<"f="<<f<<endl; vector<int>naoufal = reader2.distance_calculation(ala[i], f); for( int a =0; a <naoufal.size(); a++ ) { int Number=naoufal[a]; string g = static_cast<ostringstream*>( &(ostringstream() << Number) )->str(); String^ Cell2= gcnew String(g.c_str()); array<String^>^row1 = gcnew array<String^>{ Cell2 }; array<Object^>^rows = {row1}; System::Collections::IEnumerator^ myEnum = rows->GetEnumerator(); while ( myEnum->MoveNext() ) { array<String^>^rowArray = safe_cast<array<String^>^>(myEnum->Current); dataGridView3->Rows->Add( rowArray ); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)