Im getting this error and i'm a relative neophyte to programming so could some help me?
"fatal error LNK1169: one or more multiply defined symbols found"
Here's my code:#include "stdafx.h"
#include <iostream>
using namespace std;
int main ()
{
cout << "Avoiding Technology" << endl;
bool status = true;
int location;
int a,b;
a = 1;
b = 2;
cout<< " You start at your desk, waking a up from a nap."<< endl;
cout << " The bus for school comes in 10 minutes" << endl;
cout <<" What do you want to do?"<< endl;
cin >> location;
Your program compiles without error. The error you are getting is a linker error for having something defined multiple times - are you accidentally compiling two programs (two main functions) in the same project?
Are you selecting a console application as your project type?
If you select a Windows application, main() will be supplied and your use of main will be detected as a duplicate symbol.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.