delorie.com/archives/browse.cgi | search |
From: | "Wynand Van Staden" <s9800973 AT student DOT rau DOT ac DOT za> |
To: | <cavgp AT aol DOT com> |
Cc: | <djgpp AT delorie DOT com> |
Date: | Sat, 27 Nov 1999 08:46:05 +0000 (GMT) |
Organization: | RAU Student Server |
X-Mailer: | ObsidianSystems-OcsEmail1-0-30 brewed at www.obsidian.co.za |
Message-ID: | <9436923653028-2710463028s9800973@student.rau.ac.za> |
Reply-To: | djgpp AT delorie DOT com |
int Add (int x,int y) { cout << ("The number entered was" << x << "and" << y << "\n"); return(x+y); } what you are doing is bit shifting a const char[23] left x times. lose the quotation marks. rather try int Add (int x,int y) { cout << "The number entered was" << x << "and" << y << endl; return (x + y); }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |