syntax error
-
ich verstehs einfach nicht.....
int location, gl, disc; cout << "Loaction:" <<; cin >> location; cout << "gl:"<<; cin gl; cout << "disc:"; cin disc;
warum bekomme ich hier 4x den Fehler
d:\Visual Studio Projects\config\config.cpp(14): error C2059: syntax error : ';'
bin ich zu blind oder zu doof ?
-
das ist schonmal falsch
<<;
schau dir das nochmal im buch oder tutorial an.
-
bin ich zu blind oder zu doof ?
Bei Dir steht
cin gl;
es soll aber wohl
cin >> g1;
heißen oder (unten im Code hast Du nochmal das gleiche Problem!)?
Achja, und wie der unregistrierte schon sagt, in der ersten Zeile am Ende
das << entfernen!
-
danke :))
ich hab da bestimmt 15x drübergeguckt und das nicht gesehen - danke danke
-
ähmm.. mal ne Frage, in ner Consolenanwendung geht das jetzt. aber in meiner mfc kann er mit "ifstream dat_in" nichts anfangen
d:\Visual Studio Projects\IBAC Client\IBAC ClientDlg.cpp(134): error C2065: 'ifstream' : undeclared identifier
geht <fstream> mit mfc nicht?
-
Doch, hast du auch den richtigen Header inkludiert ?
#include "fstream.h"
Gruß
:: NoName ::
-
#include <fstream> std::ifstream inputFileStream;
-
hmmm
also ich incluede das hier:#include <fstream> #include <string> #include "stdafx.h" #include "IBAC Client.h" #include "IBAC ClientDlg.h" #include ".\ibac clientdlg.h" #include <process.h> #include <windows.h> #include <iostream> #include "Shlwapi.h"
habe dann gerade auch mal
#include "fstream.h"
probiert, das bringt aber nichts
wenn ich dann
#include <fstream> std::ifstream inputFileStream;
versuche bekomme ich das hier:
d:\Visual Studio Projects\IBAC Client\IBAC ClientDlg.cpp(134): error C2079: 'dat_in' uses undefined class 'std::basic_ifstream<_Elem,_Traits>'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
-
Schreib nichts vor #include "stdafx.h".
-
super, klappt danke