matrix transponation

Hello everyone , I write a program , but I dont know how to add a matrix transponation after readint it from a folder ..
this is the program, but it doesnt have the transformation funciotn

#include <iostream>
#include <fstream>

using namespace std;
int main ()
{
char str[256], c[50];
ifstream is;
ofstream rez;
is.open("2paskaita.txt", ios::in);
cout << "Iveskite failo pavadinima: ";
cin.get(str,256);
rez.open(str, ios::out);
while ( is.good() )
{
is.getline(c,50,' ');
cout << c;
rez << c << endl;


}
is.close();
rez.close();
system("pause");
return 0;
}
|
Topic archived. No new replies allowed.