Guest User

Untitled

a guest
Jul 12th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. if(mojplik.is_open())
  2. {
  3. cout << "Uzyskano dostep do pliku!" <<endl;
  4. tabela<<"<table border=\"5\" cellpadding=\"10\" cellspacing=\"10\" bordercolordark=\"navy\" bordercolorlight=\"aqua\">\n";
  5. while(mojplik.good())
  6. {
  7. getline(mojplik, tekst);
  8. //zlicz(tekst,'$');
  9.  
  10.  
  11. if(mojplik.is_open())
  12. {
  13. for(int i=0; i<tekst.length() ; i++)
  14. {
  15. if(tekst[i]=='$')
  16. {
  17. tabela << "<td>\n";
  18. }
  19. else if(tekst[i]=='#')
  20. {
  21. tabela << "<\57td>\n";
  22. }
  23. else
  24. {
  25. tabela<<tekst[i];
  26. }
  27.  
  28. }
  29.  
  30. }
  31.  
  32.  
  33.  
  34.  
  35. }
  36. tabela<< "\n<\57tr><\57table>";
  37. }
Add Comment
Please, Sign In to add comment