1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#include<iostream>
#include<string>
#include <sstream>
using namespace std ;
int abee1 [4] [4] ;
int abee2 [4] [4] ;
int myarray [4] [4] = {{10,0,3,2},{2,0,4,9},{13,0,5,64},{14,0,2,6}};
int main()
{
int cc;
for ( cc = 1 ; cc < 3; cc++)
// making the name of nbee1 and nbee2
{ string String = static_cast<ostringstream*>( &( ostringstream () << cc) )->str();
string arrayname = "abee" + String;
int *arrayname [] = &myarray
}
return 0;
}
|