Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- bool inversa(string l[m][n]){
- for (int q=0; p<n; p++) {
- for (int p=0; p<i; p++)
- {
- string tmp=l[m][n]
- int lung=tmp.length;
- //for (int
- }
- }
- return true;}
- int main() {
- // input matrice stringhe
- int i,j;
- cout << "num righe: ";
- cin >> i;
- cout << endl << "num colonne: ";
- cin >> j;
- string matrix[i][j];
- for (int a=0; a<i; a++) {
- for (int b=0; b<j; b++) {
- cout << "Input[" << a+1 << "][" << b+1 << "]: ";
- cin >> matrix[a][b];
- }
- }
- // output matrice stringhe
- cout << endl;
- for (int a=0; a<i; a++) {
- for (int b=0; b<j; b++) {
- cout << matrix[a][b] << " ";
- }
- cout << endl;
- }
- cout << endl;
- bool ciao=inversa(matrix[i][j]);
- cout << ciao;
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement