Is absent ";" before the "namespace" and ";" Before use '

So, Iโ€™m working on a program that should be tomorrow, and for some reason I continue to get these 2 errors if I click on the first one that will lead me to the iostream file, and right before _STD_BEGIN it wants me to put "; " but if I do this, it will ruin the file in the library, so I'm sure that I do not need to do this, the second error is in my main.cpp and indicates the use of the std namespace; and he wants me to put ";" before this = if I do this, the error will disappear, and it continues to indicate an iostream error .... I have no idea what to do, and my deadline is tomorrow. This is my main.cpp include section with a modification to using the std namespace

#include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> #include <stdio.h> #include "Package.h" ;using namespace std; 
+6
source share
2 answers

Find the definition of class or struct in Package.h that Package.h not have a semicolon. i.e.

 class act { // yadda } // no semicolon here 

Then add the missing semicolon.

+5
source

When you get "missing; type error on a line that follows closeley behind a bunch of #include statements, the likely culprit is a missing ;" in one of the header files. To find out where to start, include the last file. Package.h. semicolon. It is probably missing after the class declaration, as if you wrote:

 class Foo { } 

instead

 class Foo { }; 
+4
source

All Articles