ich raff es net warum cout nich von block eins ausgegeben wird:
fehler:
Cpp1.cpp(18) : error C2440: 'return' : cannot convert from 'class ostream_withassign' to 'int' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe.
thx
Code:
int eins() {
float i=1;
cout << "aussage: " << i << endl;
return cout;
}
int main () {
cout << "2";
return 0;
}
fehler:
Cpp1.cpp(18) : error C2440: 'return' : cannot convert from 'class ostream_withassign' to 'int' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe.
thx