#include<conio.h> #include<iostream> using namespace std; int main() { char crew[2][2][10]; cin>>crew[0]; cout<<endl; cin>>crew[1]; cout<<crew[0][0]<<crew[0][1]<<crew[1][0]<<crew[1][1]; getch(); return 0; } now if I give input jack sparrow robert langdon crew[o][o] should be jack crew[0][1] should be sparrow crew[1][0] should be robert crew[1][1] sbould b2 langdon but this is incorrect
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/1skPXOE7zboJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.