ah, ok -- just zeroed in on the sequence "int+" which I believe is illegal anywhere in C++ except as text inside a string. Happy hacking. --le ----- Original Message ----- From: "Chris Meredith" <cmered@xxxxxxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, February 16, 2008 7:50 PM Subject: RE: c++ "cout" causing problems I think "int" was being used as a placeholder in that instance, indicating the variable's type without having to have the declarations in the sample. -C- -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of tribble Sent: Saturday, February 16, 2008 4:04 PM To: programmingblind@xxxxxxxxxxxxx Subject: Re: c++ "cout" causing problems the word "int" is a keyword in C++ -- this should fail miserably and the compiler should rightly give you a cascade of errors. And you can't declare something inside a cout operation. If you want to use "int i;" to declare an integer i and then output the value of i, do this: int i = 0; cout << i; HTH --le ----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, February 16, 2008 3:49 PM Subject: c++ "cout" causing problems Hi all, I have not done c++ in a year or so, but even so this should work fine: cout << int+":"+int+":"+int; It causes the program to not compile, though; when I comment it out it works fine, but when I leave it says something about the + operator (I cannot review my errors very easily in the ide I have). What is going on? The statement should not have any problems. Oh, "int" are 3 variable names, h, m, and s. Thanks for any help. Have a great day, Alex __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind