Hi,
I need a vector of strings to store the 1154 strings output of the following code?
what is the best way of doing that? any idea?
Thanks
Hash-mobtadi
Code:
#include <iostream>
#include<iomanip>
#include <string>
#include <sstream>
using std::string;
using namespace std;
int main (){
for (int i=0; i< 10; i++){
for (int j=0; j< 10; j++){
for (int t=0; t< 10; t++){
for (int l=0; l< 10; l++){
if ( (i*1000+ j*100 + t*10 + l) > 1154) break;
cout<<"M0"<<i<<j<<t<<l<<endl;
}
}
}
}
system("pause");
return 0;
}