Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Edit::userText()
- {
- char charly;
- int length = strlen(text);
- cout << "length" << length<<endl;
- int index = 0;
- bool bolek = 1;
- for (int i = 0; i < (length + 1); i++)
- {
- if (text[i] != '\0')
- {
- index++;
- cout << "index" << index << endl;
- }
- else if(text[i]=='\0' && index==0)
- index = 0;
- }
- /*
- if (length > 0)
- {
- while (bolek)
- {
- charly =_getch();
- }
- this->text[length] = '\0'; //Ustawianie spacji na ostatnim miejscu tablicy
- }
- else
- {
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement