It worked, thanks. I guess I really have been doing java too long and not touched c++. Oh well, it compiles and runs now, thanks. Oh, is there a way of bringing a command line program into focus in c++ if it is minimized? The prog is the Java timer I was trying to convert, using the Sleep() c++ method. When the time is up I would like to have the timer be brought into focus so the user can see the message they input to remind them what the timer is for.
Have a great day, Alex
----- Original Message ----- From: Chris Meredith <cmered@xxxxxxxxxxxxxTo: "programmingblind@xxxxxxxxxxxxx"
<programmingblind@xxxxxxxxxxxxx
Date sent: Sat, 16 Feb 2008 13:39:35 -0800 Subject: RE: c++ "cout" causing problems
Alex,
Try the following: Cout << h << ":" << m << ":" << s << endl;
As there is no implementation of Operator + that adds a string toan int or vice versa, but the above should concatenate the values and display them as you're wanting.
-C-
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall-----Original Message-----From: programmingblind-bounce@xxxxxxxxxxxxx
Sent: Saturday, February 16, 2008 12:49 PM To: programmingblind@xxxxxxxxxxxxx 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