Search:

Type: Posts; User: dafa

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,382

    Well, I tried this code. It works untill the...

    Well, I tried this code. It works untill the final loop, than it crush.


    getline(cin, str, '\n'); //I also tried without '\n'

    //now replacing every 2 ' ' with one ' '
    while...
  2. Replies
    8
    Views
    1,382

    another question in this matter

    How can I ignore extra spaces in the input?
    I am not alowd to use flush, fflush or anything like that.

    I have to get a line (optionaly with too many spaces) and than separate to words (with no...
Results 1 to 2 of 2