I’m getting this compilation error with the following code:
error C2143: syntax error : missing ‘;’ before ‘using’
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "s.h"
using namespace std;
How is this possible? How can it be fixed?
"s.h"might contain a class declaration that wasn’t terminated with a;When you include a header, the C preprocessor puts substitutes header’s contents in in-line, so if you look at
s.hyou will probably find something unterminated by;