C++ code error !! I have the follwoing code, and i get the error \"error C1004:
ID: 665989 • Letter: C
Question
C++ code error !!
I have the follwoing code, and i get the error "error C1004: unexpected end-of-file found" and I don't know how to fix it.
Also, "IntelliSense this declaration has no storage class or type specifier" No clue what this means. Thanks !!
#include #include #include #include #include iostream» "Employee. h" using namespace std; int main() ifstream fin("input.txt"); ofstream fout("output.txt"); map>action; "NEW")-= 0) { if (strcmp(action . c-str( ), int id; char name [100] fin>>id; fin.getline (name, 100) employees [1d] = Employee (string(name)); "RAISE") == 0) { } else if (strcmp(action . c_str(), int id, raise; fin id>>raise;Explanation / Answer
C++ code error !!
I have the follwoing code, and i get the error "error C1004: unexpected end-of-file found" and I don't know how to fix it
unexpected end of file found
The compiler reached the end of a source file without resolving a construct. The code may be missing one of the following elements:
To resolve this error, check for the following:
// C1004.cpp
Possible resolution:
There maybe many problems:
1: may be you used classes here synatax of the class definition must be correct.(like keep ; at the end of class braces)
Example:
Class Employee
{
};
Also, "IntelliSense this declaration has no storage class or type specifier" No clue what this means. Thanks !!
That code has to go inside a function. Your class definition can only contain declarations and functions.
Classes don't "run", they provide a blueprint for how to make an object.
When macro expansions are not used, but using the full wrapper, things work!
May be missing semicoma somewhere?
May be cout is ambigious?
That code has to go inside a function. Your class definition can only contain declarations and functions.
Classes don't "run", they provide a blueprint for how to make an object.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.