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 6668003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:59:35+00:00 2026-05-26T02:59:35+00:00

This is my Position.h file: #ifndef POSITION_H_ #define POSITION_H_ class Position{ public: Position(int v);

  • 0

This is my Position.h file:

#ifndef POSITION_H_
#define POSITION_H_

class Position{
    public:
    Position(int v);
    int pos();
    private:
    int value;
    bool win;

};

#endif

This is my Position.cpp file:

#include "Position.h"

Position::Position(int v):value(v){
}

int Position::pos(){
    return value;
}

My error is:

Position.cpp:8: error: no ‘int Position::pos()’ member function declared in class ‘Position’

I’ve been trying to fix this for hours and the function is declared. I don’t understand why this wont compile.

  • 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-26T02:59:35+00:00Added an answer on May 26, 2026 at 2:59 am

    Its compiling for me… you must be doing something weird.

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

Sidebar

Related Questions

I am creating a Javascript class The class is this (function(window){ function Person(id,name,position,imageUrl){ this.id
This is my model: class Position(models.Model): map = models.ForeignKey(Map,primary_key=True) #members=models.CharField(max_length=200) LatLng = models.CharField(max_length=40000) infowindow
I am read from a file like this: #include <stdio.h> int main() { FILE
Here's my code: 34 35 /** 36 ** \file position.hh 37 ** Define the
I have a file like this: Name Position Letter String Bla 123 A ..B.,,,.C..
I need to position this update button on www.euroworker.no/order (you'll have to add an
I am trying to position this sale banner over the image. The red border
I have imageView in activity. How I can set position this imageView in my
My current position is this: if I thoroughly test my ASP.NET applications using web
I'm capturing mouse position like this mouse_move: function(e) { mousePos.x = e.pageX - vr.o.context.canvas.offsetLeft;

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.