well here is the same using cstring
(cstring arent c++ they are plain c..)
but you can achieve the same..
Code:
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
int max =4;
char first[max][256]; strcpy(first[0],"George"); strcpy(first[1],"robert"); strcpy(first[2],"bob"); strcpy(first[3],"luigi");
char last[max][256]; strcpy(last[0],"Bush"); strcpy(last[1],"barbeau"); strcpy(last[2], "floyd"); strcpy(last[3],"kenedy");
char final[max][256];
strcpy(final[0],""); strcpy(final[1],""); strcpy(final[2],""); strcpy(final[3],"");
for(int i =0; i<max;i++) strcpy(final[i],last[i]);
for(int i =0; i<max;i++) strcat(final[i]," ");
for(int i =0; i<max;i++) strcat(final[i],first[i]);
for(int i =0; i<max;i++) cout << final[i] << endl;
for(int i =0; i<max;i++) cout << last[i] << endl;
for(int i =0; i<max;i++) cout << first[i] << endl;
return 0;
}
Also use code tags if u want people to look at ur code..