I would use a biometric machine that scans a fingerprint and a eye retina then calls up my bank information from the scan. Who wants to carry a card around anyway?
Answer:
/Question.h
#include<iostream>
#include<string>
using namespace std;
class Question
{
private:
string question;
string answer[4];
unsigned int correctAnswer;
public:
Question(string ques,string *ans,unsigned int x)
{
int i;
question.assign(ques);
for(i=0;i<4;i++)
{
answer[i]=ans[i];
}
correctAnswer=x;
}
~Question()
{
}
string getQuestion()
{
return question;
}
unsigned int getCorrectAnswer()
{
return correctAnswer;
}
string getAnswer1()
{
return answer[0];
}string getAnswer2()
{
return answer[1];
}
string getAnswer3()
{
return answer[2];
}string getAnswer4()
{
return answer[3];
}
int getNoOfPossibleAnswers()
{
return 4;
}
};
Explanation:
The Question class represents one question and the possible answers for that question.
The Question class contains the question text and the 4 possible answers. It also contains the answer number of the correct answer.
The answer number is an unsigned int in the range of 1 to 4.Your Question class needs to have one or more constructors and one destructor.
It needs a member function that returns the question text. It also needs member functions that return the answer text for a specific answer
(1 through 4). The class also needs a member function that returns the number of possible answers for this question. While this is 4 today,
it could change in future versions of the class. Finally there needs to be a member function that returns the answer number of the correct answer
(a value of 1 through 4).Do not make the data members public. You can have public and private member functions as needed.
I know this is a joke, but 21 (:
MS-DOS is a command-line operating system.
Therefore, the best answer is Command-line.
Being kind to others makes a significant impact on your life and the people you are being kind towards. Kindness puts a smile on other peoples faces, and the world without it would be very different. Even though their are a lot of people who are not kind throughout this world, if kindness was outlawed, their would still be a significant impact on our earth as it is today. For example, it would change the way people do business and it would be much harder to socialize. Kindness is way more important than we make it out to be. Their is always an opportunity to be kind wherever you are. Whether you’re online, next to someone, or just walking down a street, you can always find a chance to be kind if you really try.