Elikä olla oleva ohjelma päätty virheeseen. voisiko kukaan auttaa miten pääsee eteenpäin. Koitan kääntää optiolla g oo.cpp -oo
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
const char eka [] = {"kissa_0"};
// this line causes error: oo.cpp:20: error: aggregate ‘std::ifstream f’ has incomplete type and // cannot be defined
ifstream f;
// This has no effect to compilation
f.open(eka ,ios::out | ios::binary);
return 0;
}
oo.cpp:20: error: aggregate ‘std::ifstream f’ has incomplete type and cannot be defined
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
const char eka [] = {"kissa_0"};
// this line causes error: oo.cpp:20: error: aggregate ‘std::ifstream f’ has incomplete type and // cannot be defined
ifstream f;
// This has no effect to compilation
f.open(eka ,ios::out | ios::binary);
return 0;
}
oo.cpp:20: error: aggregate ‘std::ifstream f’ has incomplete type and cannot be defined
Vastaukset 1
Vanhimmat
Yhden kirjaimen muutos: ->