Hello
Excuse me for being such a beginner…
Just starting to teach myself C++ and am using Microsoft Visual C++.Net Step by Step manual. Following the project in the book I have come up against a problem I cannot seem to solve myself. It is very basic(!) so here goes:
//Investment Planner
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
void DisplayWelcome();
void DisplayProjectedValue(double amount, int years, double rate);
double GetInvestmentAmount();
int GetInvestmentPeriod(int min=10, int max=25);
int _tmain();
void DisplayWelcome()
{
Console::WriteLine(S"-------------------------------------------");
Console::WriteLine(
S"Welcome to your friendly Investment Planner");
Console::WriteLine(S"-------------------------------------------");
return;
}
I am getting an error :
LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Since I am such a beginner the Help file isn’t helping me. What fundamental part am I failing to grasp? Please put me out of my misery…any help gratefully received.
Thanks
BillyCoff
Excuse me for being such a beginner…
Just starting to teach myself C++ and am using Microsoft Visual C++.Net Step by Step manual. Following the project in the book I have come up against a problem I cannot seem to solve myself. It is very basic(!) so here goes:
//Investment Planner
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
void DisplayWelcome();
void DisplayProjectedValue(double amount, int years, double rate);
double GetInvestmentAmount();
int GetInvestmentPeriod(int min=10, int max=25);
int _tmain();
void DisplayWelcome()
{
Console::WriteLine(S"-------------------------------------------");
Console::WriteLine(
S"Welcome to your friendly Investment Planner");
Console::WriteLine(S"-------------------------------------------");
return;
}
I am getting an error :
LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Since I am such a beginner the Help file isn’t helping me. What fundamental part am I failing to grasp? Please put me out of my misery…any help gratefully received.
Thanks
BillyCoff