Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int osszes=0, illeszkedo=0;
- char buf[64];
- ifstream cin;
- cin.open ("szoveg.txt", ifstream::in);
- char myid[]="Bocza'n Tama's <a@b.com> XXXXXX\n";
- char mytask[]="Feladat = 6 ISO 8859-2\n";
- setbuf(stdout,NULL);
- cout<<myid;
- cout<<mytask;
- while (cin.getline(buf, 64))
- {
- if (illeszkedik(buf)) illeszkedo++;
- osszes++;
- }
- cout<< oct<<osszes <<"/" <<illeszkedo<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment