Okay, I've got two files: a main and a header to go with it.
I'm not too far into it yet, but for some reason I'm having problems with the string. Am I declaring my strings incorrectly? Am I missing a header file from installation of Visual Studio? Am I doing something else wrong?!? Any thoughts/help?! Thanks in advance!
Main:
#endif
#include "main.h"
#include <string>
int main()
{
quizz q;
cout<<"Welcome to The Geek Quizz!"<<endl;
//cout<< q.question1<<endl;
//cout<<q.answers1<<endl;
system("pause");
return 0;
}
Header:
#ifndef MAIN_H
#define MAIN_H
#include <iostream>
#include <string>
using namespace std;
class quizz
{
public:
//void outQ1()
//{
// cout<<question1<<endl;
//}
////void outQ2()
//{
// cout<<question2<<endl;
//}
////void outQ3()
//{
// cout<<question3<<endl;
//}
////void outQ4()
//{
// cout<<question4<<endl;
//}
////void outQ5()
//{
// cout<<question5<<endl;
//}
/*void outA1()
{
cout<<answers1<<endl;
}
void outA2()
{
cout<<answers1<<endl;
}
void outA3()
{
cout<<answers1<<endl;
}
void outA4()
{
cout<<answers1<<endl;
}
void outA5()
{
cout<<answers1<<endl;
}*/
private:
string question1;
question1= "What is the net?";
string question2 = "What is an operator";
string question3 = "What do chips mean to you?";
string question4 = "What is a icon?";
string question5 = "What is a PNG";
string answers1 = "a) A fishing net in norway\nb) What net?\nc) The Internet\nd) The National Entimology Team";
string answers2 = "a) A person on a phone\nb) What operator?\nc) A thing that changes your looks\nd) + - * / & %";
string answers3 = "a) A lunch source\nb) Sillicon chips?\nc) A fattning source\nd) A quick Snack";
string answers4 = "a) 3 Mile island\nb) What's a Icon?\nc) a .ico file that has pictures in it\nd) a picture";
string answers5 = "a) A File?\nb) A Portable Network Graphic\nc) A portly nincompoop in graphite\nd) An image";
char rans1 = 'c';
char rans2 = 'd';
char rans3 = 'a';
char rans4 = 'c';
char rans5 = 'b';
};