Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void Edit::userText()
  2. {
  3.  
  4. char charly;
  5. int length = strlen(text);
  6. cout << "length" << length<<endl;
  7. int index = 0;
  8. bool bolek = 1;
  9.  
  10. for (int i = 0; i < (length + 1); i++)
  11. {
  12. if (text[i] != '\0')
  13. {
  14. index++;
  15. cout << "index" << index << endl;
  16. }
  17. else if(text[i]=='\0' && index==0)
  18. index = 0;
  19. }
  20.  
  21. /*
  22. if (length > 0)
  23. {
  24.  
  25. while (bolek)
  26. {
  27. charly =_getch();
  28.  
  29.  
  30.  
  31.  
  32. }
  33. this->text[length] = '\0'; //Ustawianie spacji na ostatnim miejscu tablicy
  34. }
  35.  
  36. else
  37. {
  38.  
  39. }*/
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement