
please wait
|
|
|
|
|
|
using namespace;
error: expected identifier before ‘;’ token |
using namespace std;
using namespace;
[code] //...your code goes here [/code] |
|
|
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
using namespace std;
in them, so this line is not needed in the header file. And to that you should read http://www.lonecpluspluscoder.com/2012/09/22/i-dont-want-to-see-another-using-namespace-xxx-in-a-header-file-ever-again/#pragma once
is not needed if you are using the include guard that you have. Also if you need to include "<string>" in the header file then something is out of sequence somewhere.