Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6877471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:36:16+00:00 2026-05-27T04:36:16+00:00

Well I’m trying to figure out inheritance in c++, and I’m getting a compile

  • 0

Well I’m trying to figure out inheritance in c++, and I’m getting a compile time error error: expected type- specifier before ‘Pawn’. I get this on the following line

Piece * p = new Pawn(c);

I removed this code because I got worried about people using my code for the assignment I was doing at the time. I apologize if this caused any inconvenience, if you have any specific questions contact me.

I’m aware there may be some other errors but This is the one I’m at a loss with. Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:36:16+00:00Added an answer on May 27, 2026 at 4:36 am

    In the file that has the statement

    Piece * p = new Pawn(c);
    

    you seem to forget to include corresponding header files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I was trying to fix this program, and I keep getting the errors
well, I am trying to include a header file in my project, while the
Well my windows service has to send out automated emails when the sql database
Well it's not realy causing any errors. Anyways i'm sending ajax request and getting
Well, I have to revive a question that was answered here before. I've made
well. i was use Reactive Extensions (Rx) package async Request,Before you can start writing
well I'm trying to create a great playlist of music, only using a sigle
Well I have a view of this type of hierarchy Main View (having some
Well i have var message , which has any type of character... I replace
Well, I come from compiled languages as Java and now I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.