chikon
Programmer
- Sep 19, 2007
- 1
the error is:
error C2653: 'question' : is not a class or namespace name
my h file:
=========================================
#pragma once
using namespace std;
class question
{
public:
question(void);
private:
char[200] quest;
bool wasAnswered;
bool isCorrect;
int counter=0;
public:
char* getQuestion()=0;
void answerQestion()=0;
bool iscorrect()=0;
~question(void);
};
class yesNo::question{
bool answer;
yesNo(bool ans);
};
class open::question{
char[400] answer;
open (ans);
};
class multi::question{
char[5][200] answer;
multi (ans);
};
=============================
my c file
==================
#include "question.h"
#include "StdAfx.h"
char* question::getQuestion(){
return quest;
}
question::~question(void)
{
}
====================
thanks
error C2653: 'question' : is not a class or namespace name
my h file:
=========================================
#pragma once
using namespace std;
class question
{
public:
question(void);
private:
char[200] quest;
bool wasAnswered;
bool isCorrect;
int counter=0;
public:
char* getQuestion()=0;
void answerQestion()=0;
bool iscorrect()=0;
~question(void);
};
class yesNo::question{
bool answer;
yesNo(bool ans);
};
class open::question{
char[400] answer;
open (ans);
};
class multi::question{
char[5][200] answer;
multi (ans);
};
=============================
my c file
==================
#include "question.h"
#include "StdAfx.h"
char* question::getQuestion(){
return quest;
}
question::~question(void)
{
}
====================
thanks