I made a simple code in C++ but when i run it there is a compilation error even though i checked it so manu times, any ideas? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I made a simple code in C++ but when i run it there is a compilation error even though i checked it so manu times, any ideas?

5th Feb 2018, 8:44 PM
Panos Koklas
7 Answers
+ 7
Switch >> with << ... remember, data is sent to cout thus arrows should point that way...
5th Feb 2018, 8:56 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
Can you share your code here?
5th Feb 2018, 8:47 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
thank you
5th Feb 2018, 8:57 PM
Panos Koklas
+ 2
I have an idea. When I get off work, I'm going to get some hot wings and beer. Anyways, as Valentin said, if you post up your code we're more than happy to help you out with it.
5th Feb 2018, 8:48 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
i posted it
5th Feb 2018, 8:54 PM
Panos Koklas
+ 1
then why does it use >> in the exmples for C++
5th Feb 2018, 8:59 PM
Panos Koklas
+ 1
this symbol is for entering the contents
11th Feb 2018, 3:50 AM
Shridhar Rai
Shridhar Rai - avatar