Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by pam ( 18 years ago )
#include "stdafx.h"
#include "conio.h"
#include "iostream"
#include "stdio.h"
using namespace std;
#include <fstream>
int main ()
{int k; int p=0;
char mas[1000];
*mas= NULL; int i=0;
filebuf fb;
filebuf fb2;
fb.open ("c:sd
nn.txt",ios::in);
fb2.open ("c:sd
nn1.txt",ios::out);
istream is(&fb);
ostream to(&fb2);
char a;
while (is.get(a))
{
mas[i]=a;
i++;}
k=i;
for (int j=0;j<=k;j++)
{
{//if (mas[j]==char(10))
///p++;
}
//if (mas[j]==char(10))&&mas[j+1]==char(10)
to.put(mas[j]);
}
cout<<p;
fb.close();
fb2.close();
return 0;
}
Revise this Paste