Errors in class

I am almost done with a project but I keep getting these errors when I compile. They occur in both of my classes and this is a barrier that is keeping me from finishing. I would like to understand what I am doing wrong and would be grateful for the help. As you can tell, I am a beginner.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>  // simplification of code
#include <string>
using namespace std;

class std::A
{ //error: qualified name does not name a class before '{' token
    A();
};

class B: public std::A
{         //error:expected class-name before '{' token
    B();
};


int main()
{
    // some code written
    return 0;
}
//hundreds of code written 
Why are you using class std::A Why not just try class A That's the only thing that really stands out to me.
Topic archived. No new replies allowed.