Search:

Type: Posts; User: c++dummy

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    2,172

    Molokai, I tried your code, but it doesn't...

    Molokai,

    I tried your code, but it doesn't work.
    I partly understand your code, but ...
    What is the "s" for in your case?
    After "while(cin >> score[w])" why not "cin << score;" to input the...
  2. Read multiple data for one declared variable

    How can I read multiple datas from outside text file that have the same data type by declaring only one variable?
    For example:
    numbers below are scores and they are double, the negative number is...
  3. Replies
    10
    Views
    2,172

    Daved, I tried as you suggested, but doesn't...

    Daved,
    I tried as you suggested, but doesn't seem to work out. Can anyone tell me what's wrong with my code here:



    in >> fname >> lname;

    while (in >> fname)
    {
    ...
  4. Replies
    10
    Views
    2,172

    Salem, you're absolutely right, but what code do...

    Salem, you're absolutely right, but what code do I have to use to use the negative a "break" for each record?
  5. Replies
    10
    Views
    2,172

    Reading string from outside data file

    Hi everyone,
    I'm trying to read data from a text file, which looks like this:

    Toots Sweet 87 76 90 -1
    Willy Nilly 73 63 74 70 -1
    Phil O'Sophy -88
    Jill Quirk 84 73 83 -3

    I delcare first...
Results 1 to 5 of 5