Search:

Type: Posts; User: jriano

Search: Search took 0.01 seconds.

  1. Thread: getline problem

    by jriano
    Replies
    3
    Views
    1,783

    yes

    yes, it pretty much does it, thank u, the cin.clear doesn't
    seem to affect the program though. Only one thing, the
    first time I still have to press enter twice.
  2. Thread: getline problem

    by jriano
    Replies
    3
    Views
    1,783

    getline problem

    I dont know if the problem is the way I use getline.
    If I run this little program, it is supposed to read a string, a number...5 times, but it does not, after the second atepmt,
    the program goes...
  3. Replies
    2
    Views
    1,032

    A question about getline

    Could someone tell me what can be wrong with
    my vc++ installation?
    when I use getline as for example:

    getline(cin,name,'\n');

    I have to press twice ENTER.
    Why is that?

    and also, how do I...
  4. Replies
    3
    Views
    983

    thank u guys

    thank u guys
  5. Replies
    3
    Views
    983

    help, what is wron in this code?

    i created this class:

    class Surgery
    {
    public:
    double cost();
    };

    I am then using it in this line:
  6. Replies
    14
    Views
    1,351

    how is this evaluated?

    if(size & 1)
  7. Replies
    3
    Views
    1,867

    how do I input strings from a file

    I need to read from a file, line by line, the text has blanks in it, I need to know the number of characters per line(included the blanks). I tried using getline, get, so that i could store a line in...
Results 1 to 7 of 7