Skip to content

Commit

Permalink
Update 10.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emilstankov authored May 12, 2024
1 parent 9b770ef commit b82ef8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mk/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Ne znam, seushte ne e objaveno na sajtot.
```cpp
#include <iostream>
#include <fstream>
#include <cstring>
#include <string>
using namespace std;

int main()
Expand All @@ -325,10 +325,10 @@ int main()
cout<<"Ne mozham da ja otvoram datotekata izlezna.txt!"<<endl;
return -1;
}
char linija[81];
while(fin.getline(linija, 81))
string linija;
while(getline(fin, linija))
{
int br = strlen(linija);
int br = linija.length();
fout<<br<<endl;
fout<<linija<<endl;
}
Expand Down

0 comments on commit b82ef8d

Please sign in to comment.