So this is my code,
//Precompiled Libaries
#include <iostream>
#include <string>
#include <string.h>
#include <Windows.h>
#include <conio.h>
#include <process.h>
#include <time.h>
#include <stdlib.h>
#include <ctime>
#include <cstdlib>
#include <stdio.h>
#include <fstream>
//Program To Run From
using namespace std;
int intNumber1;
string strName;
void Menu(void){
cout << "Please Select Your Choice " << strName << "!";
Sleep(2000);
}
void Name(void){
cout << "Please Enter Your Name" << endl;
cin >> strName;
Menu();
}
void Main(void){
system("COLOR C");
Name();
}
its just simple stuff, probably wrong as just learnt in college, but these are the errors when building,
1>------ Build started: Project: Revision Application, Configuration: Debug Win32 ------ 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users------\Desktop\Revision Application\Debug\Revision Application.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Then when debugging,
Unable to start program 'C:\Users------\Desktop\Revision Application\Debug\Revision Application.exe'.
The system cannot find the file specified.
im probably being silly but i cant find a fix anywhere :( please help!