Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,233 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,748 people online right now. Registration is fast and FREE... Join Now!




Operator Error with Dev-C++

 
Reply to this topicStart new topic

Operator Error with Dev-C++

7OXIC
19 Mar, 2007 - 02:56 PM
Post #1

New D.I.C Head
*

Joined: 14 Mar, 2007
Posts: 10


My Contributions
Ok, I am creating a prototype ATM and the only error I have left is this:

CODE
Stream<<-amountw<< endl;


It says there is no match for the 'operator<<' in 'Stream << -amountw'

This works with Borland, but I need it to work with Dev-C++. Any ideas? I'm pretty new at this....

This post has been edited by 7OXIC: 19 Mar, 2007 - 02:57 PM
User is offlineProfile CardPM
+Quote Post

ajwsurfer
RE: Operator Error With Dev-C++
20 Mar, 2007 - 11:22 AM
Post #2

D.I.C Regular
Group Icon

Joined: 24 Oct, 2006
Posts: 292



Thanked: 2 times
Dream Kudos: 50
My Contributions
maybe "Stream" needs to be all lowercase "stream".

also, you see that hiphen in front of "-amountw". it should probably be "amountw"

It apears that you overloaded the stream operator, but you have not posted enough code to verify that.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 03:46PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month