Add Papers Marked0
Paper checked off!

Marked works

Viewed0

Viewed works

Shopping Cart0
Paper added to shopping cart!

Shopping Cart

Register Now

internet library
Atlants.lv library
FAQ
5,99 € Add to cart
Add to Wish List
Want cheaper?
ID number:192296
 
Evaluation:
Published: 25.09.2007.
Language: Latvian
Level: College/University
Literature: n/a
References: Not used
Extract

Nepieciešams izveidot programmu, kas dod iespēju ‘
1)Izveidot failus f1.txt un f2.txt un ierakstīt tajos vārdus, kas ir sakārtoti alfabētiskā secībā;
2)Apvienot šos divus failus vienā failā f3.txt, kur vārdiem arī ir jābūt alfabētiskā secībā. Pie tam vienādi vārdi nedrīkst atkārtoties;
3)Apskatīt failu f1.txt, f2.txt un f3.txt.
Klases Merger funkciju pseidokods:
6. createFile (char fileName [6]) { // metode, kas izveido failu
7. get the string what ends with `.`;
8. write the string in the file;
9. }

10. printFile (char fileName [6]) { // metode, kas izdrukā faila saturu
11. if (the file exists) {
12. while (is not the end of the file) // bug #1 kļūdas apstrāde
13. get the string what ends with break;
14. print the string;
15. }
16. else // bug #1
17. print `File does not exist!` // bug #1
18. }
19. }

20. readFile (ifstream *file) { // metode, kas nolasa vārdu no faila
21. get one word what is separated by spaces;
22. return the word;
23. }…

Author's comment
Load more similar papers

Atlants

Choose Authorization Method

Email & Password

Email & Password

Wrong e-mail adress or password!
Log In

Forgot your password?

Draugiem.pase
Facebook

Not registered yet?

Register and redeem free papers!

To receive free papers from Atlants.com it is necessary to register. It's quick and will only take a few seconds.

If you have already registered, simply to access the free content.

Cancel Register