1234567891011121314151617181920212223242526
#include "stdafx.h" #include<cstdio> #include<cmath> #include<iostream> #include<vector> using namespace std; int main() { int B, K; const int N =2; const int n = 5; double FINAL[n][N]; for(int s=1; s<=n; s++) { for(int i=0; i<=N; i++) { FINAL[s][i]=B; cout << "(s=" << s << ") (i=" << i << ")" << endl; } //end 2nd loop }//end 1st loop cin >> K; return 0; }
123
std::vector<int> vectorOfInts; //As an exercise you declare a vector of vector of ints. <Try it out> vectorOfVectorOfInts;