D
D
dr sbtn2016-04-26 00:35:37
C++ / C#
dr sbtn, 2016-04-26 00:35:37

Why is the c++ compiler in netbeans swearing at cout?

c++ compiler installed.
When writing code, he swears in netbeans on include (also tried with .h), cout (even on endl) and even attempts to bind printf there.
I also tried using std::cout.
What could be the problem? although it doesn't yell at the header math.h. But at the same time, it does not allow you to touch pow.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony, 2016-04-26
@RiseOfDeath

First - .h is C-headers, just all sorts of pluses
Second - I'm sure that you do not specify a namespace. Either specify at the beginning of the .cpp file using namespace std, or write

std::cout;
std::endl;

And in general - let's code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question