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
|
# include <iostream>
# include <cstring>
using namespace std;
int main()
{
char _2DString[20][2][20] = {{"apple"," is good"},
{"annas"," is bad"},
{"shoes"," is black"},
{"two"," is a number"},
{"tie"," is tall"},
{"car"," is red"},
{"man"," loves women"},
{"women","loves money"},
{"money"," loves to be spent"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"},
{"my vocabilary"," is suck"}};
for(int i=0;i<20;i++)
{
strcat(_2DString[i][0],_2DString[i][1]);
}
for(int i=0;i<20;i++)
{
cout << _2DString[i][0] << endl;
}
return 0;
}
|