Error with void class calling

Here is the code:

EmotionALPHA.cpp

/* Emotion ALPHA

Quiz version of the EmotionDetector idea.

http://projects.icbse.com/cpp-185 (Reference project)

Created by Dee on 16/02/2014.
Copyright (c) 2014 Dee. All rights reserved.
*/

#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include "QuizClass.h"

using std::cout;
using std::cin;


#define class quiz::
//void quiz::start()
void class start()
{
marks = 0;

// QUESTION 1
cout << "\n Welcome to the EmotionDetector ALPHA";
cout << "\n ======================================================== ";
cout << "\n Do you often worry for no reason at all? ";
cout << "\n A) True \t\t B) False";
cout << "\n ======================================================== ";

cin >> ans;
if ((ans == 'a') || (ans == 'A') || (ans == 'true') || (ans == 'TRUE') || (ans == 'True'))
{
cout << "\n Thanks.";
marks++;
}

QuizClass.h


#include <iostream>

class quiz
{
public:

char ans;
int marks;
void start();
};
Topic archived. No new replies allowed.