所以我在学校,我们刚刚切换到C ++,因为我一直在使用eclipse,我喜欢它到目前为止我想继续使用它。我的问题是CDT不会像iostream那样解决cxx中任何最基本的导入。
#include <iostream> // This import
#include <cstdlib> // Nor this import are parsing they show as Unresolved imports
using namespace std; // It says this symbol is not recognized
double underflow_double( );
float underflow_float( );
int main( )
{
cout << underflow_float() << endl; // cout isn't even working
cout << underflow_double() << endl;
return EXIT_SUCCESS;
}
double underflow_double( )
{
double n1 = 1;
return n1; // more is needed here
}
float underflow_float( )
{
float n1 = 1;
return n1; // more is needed here
}
我该如何解决这个问题?