cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Why do I get these errors?
Why do I get these errors?
Dec 2, 2012 at 6:03pm UTC
Dukats
(5)
Hey, having some trouble with my Visual studio. See the errors in the errorlist.
Why do I get those errors? Have done other programs exactly(well probably not since I get errors now) the same way.
http://img254.imageshack.us/img254/6971/namnls2u.png
Dec 2, 2012 at 6:12pm UTC
closed account (
3hM2Nwbp
)
Looks to me that you've mixed up the stream extraction / insertion operators @ line 21.
change:
cin << ...
to
cin >> ...
and you should be set. Good luck!
Dec 2, 2012 at 6:37pm UTC
Dukats
(5)
thanks, it works now! Got 49 errors so I didn't even look at that:P
Dec 2, 2012 at 7:05pm UTC
closed account (
3hM2Nwbp
)
Aye, modern C++ compilers leave
much
to be desired with their output...hopefully they'll get around to fixing it up one of these decades.
Dec 2, 2012 at 8:54pm UTC
ne555
(10692)
¿how so?
error: no match for `operator<<' in `std::cin << choosenNum
looks quite clear to me.
Topic archived. No new replies allowed.