Author Topic: need help understanding  (Read 5496 times)

overseer16

  • Guest
need help understanding
« on: August 02, 2010, 11:35:46 pm »
hey i need help understanding why this doesn't work. im learning from my C++ for dummies and just tryed the mynumber thing and thought this would work but seems like it hasn't my program reads:

#include <iostream>

using namespace std;

int main()
{
    int tom, dick, harry;
    tom = 10;
    dick = 20;
    harry = 3254;
 
    return 0;
}

it should go 10, 20, 3254 when i build it right? yet i get the error for the   cout << tom, dick, harry << endl;  line saying error: invalid operands of types `int' and `<unknown type>' to binary `operator<<'|

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: need help understanding
« Reply #1 on: August 02, 2010, 11:42:18 pm »
Wrong forum (and wrong website).
Please ask in a c++-forum.
Your post violates one of our forum rules (only C::B related questions allowed).

Topic locked !