السلم عليكم
اضع مباشرة بين ايديكم هذا السؤال وانتظر مساعدتكم ان شاء الله
write the code segment to define amatrix of type character the number of character each names doesnt exceed 20 char and the matrix contain 10 string and do the following:
1-read the matrix
2-print it
3-remove space from the matrix between the words
4-print it again
علما ان حل هذا السؤال وفق منهاجا عن طريق السي البسيطة cin and cout
وشكرا لكم
هذا هو الحل
char m [10][20]; for (int i=0;i<10;i++) for (int j=0;j<20;j++) cin>>m[j]; cout>>m[j]; for (int i=0;i<10;i++) for (int j=0;j<20;j++) if )m[j]==' ' ) هنا ينقصني الجملة ... cout<<m[j];