I am pretty new to programming. For one of my classes i have to write a program using functions. So far this is what i have. I left out the functions that are working so far but every time i compile it i get this error
1>GeometricShapes.obj : error LNK2001: unresolved external symbol "double __cdecl clac(double,double,double,char)" (?clac@@YANNNND@Z)
1>c:\users\per\documents\visual studio 2010\Projects\GeometricShapes\Debug\GeometricShapes.exe : fatal error LNK1120: 1 unresolved externals // GeometricShapes.cpp : Defines the entry point for the console application.
//
i have left the call to the calc() function out and it runs fine. Can anyone help me out?
#include "stdafx.h"
#include <iostream>
using namespace std;
char moreData, shapeSelection;
double Length, Width, Radius, Area = 0.0;
Overview();
do
{
cout << " -- VALID SHAPES --\n"
<< "Enter S for square\n"
<< "Enter C for circle\n"
<< "Enter R for rectangle\n";
cout << "Enter your selection: ";
cin >> shapeSelection;
while (shapeSelection != 'S' && shapeSelection != 's' && shapeSelection != 'C' && shapeSelection != 'c' && shapeSelection != 'R' && shapeSelection != 'r')
{
cout << "\n\n -- VALID SHAPES --\n"
<< "Enter S for square\n"
<< "Enter C for circle\n"
<< "Enter R for rectangle\n";
cout << "<" << shapeSelection << ">" << " is not a valid selection. Please re-enter: ";
cin >> shapeSelection;
}