1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
vector<string> streamTable =
{
"S1", "A1", "A2", "A4", "A4", "A5", "A6",
"S2", "S3", "B1", "B2", "B4", "B4", "B5",
"B6", "S4", "S5", "S6", "C1", "C2", "C3",
"C4", "C5", "C6", "S7", "S8", "S9", "S10",
"D1", "D2", "D3", "D4", "D5", "D6", "S11",
"E1", "E2", "E3", "E4", "E5", "E6", "S12", "S13"
};
vector<vector<string>> kws =
{
{ "A2", "A4", "A6" },
{ "B2", "B4", "B6" },
{ "C2", "C4", "C6" },
{ "D2", "D4", "D6" },
{ "E2", "E4", "E6" }
};
int counter = 0;
for (auto & i : streamTable){
cout << i << endl;
for(auto & j : kws) {
cout << " => " <<j.at(counter) << endl;
if(i == j.at(counter)){
cout << j.at(counter) << endl;
}
if(&j==&kws.back()){
counter++;
}
if(!notFoundAtAll){
counter = 0;
}
}
}
return 0;
}
|