- #include <iostream.h>
- #include <fstream.h>
- #include <string.h>
-
-
-
- void main()
- {
- char Ligne[256][100];
- int iCount;
-
- ifstream is;
- ofstream os;
-
- char Buffer[256];
-
-
- is.open("C:\\stream.cpp",ios::in);
-
- if(is){
- iCount = 0;
- while(!is.eof()){
- is.getline(Buffer,255,'\n');
- strcpy(Ligne[iCount++],strrev(Buffer));
- }
- os.open("C:\\reve.cpp",ios::out);
- for (int i=0;i<iCount;i++)
- os<<Ligne[i]<<endl;
- }
-
-
-
-
- }
#include <iostream.h>
#include <fstream.h>
#include <string.h>
void main()
{
char Ligne[256][100];
int iCount;
ifstream is;
ofstream os;
char Buffer[256];
is.open("C:\\stream.cpp",ios::in);
if(is){
iCount = 0;
while(!is.eof()){
is.getline(Buffer,255,'\n');
strcpy(Ligne[iCount++],strrev(Buffer));
}
os.open("C:\\reve.cpp",ios::out);
for (int i=0;i<iCount;i++)
os<<Ligne[i]<<endl;
}
}