From: "Wynand Van Staden" To: Cc: 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); }