Hi !

Some (weird) problem i got :

I have a header file, InputHandler.h, which has one Class called InputH, and inside i have public: and a Void named Hi().

When i try to include InputHandler.h in PRPT.cpp, i get an error, weird one; The error says that i should put a ; before the using, like this :

#include <iostream>
#include <windows.h>
#include <string>
#include "Linker.h"
#include "InputHandler.h"

;using namespace std;
using namespace System;
using namespace System::IO;

And it works !

WHY ?!
Why should i put a ; ?

9 Years
Discussion Span
Last Post by Narue

> Why should i put a ; ?
Because it needs it.

However, it might be better placed at the end of InputHandler.h (say at the end of a class declaration), rather than in your C++ code just to make the compiler shut up.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.