if i have to input a 2d character array and math and english marks....
CODE FRAGMENT:
for(int i=0;i<5;i++)
{cin>>a[i];/*a is the character array*/
cin>>math[i]>>english[i];
}
this fragment allows me to input 5 names with each name only upto 5 characters....
how do i increase the number of characters for each of the name.
will stringcopy function work for 2d arrays....please enclose fragment for the swapping technique for 2d array....