I am a beginner to C++ and pretty much programming altogether (besides a little html and css).
I have decided to start my first project for C++.
A friend recommended me trying to make a simple calculator so here is my first shot. Any pointers would be great too! Not sure exactly what I am missing, if anything, but the error I am receiving is:
1>------ Build started: Project: CalculatorFinal, Configuration: Debug Win32 ------
1>  CalculatorFinal.cpp
1>c:\users\ramee\documents\visual studio 2010\projects\calculatorfinal
 \calculatorfinal\calculatorfinal.cpp(32): warning C4102: 'calc' : unreferenced label
1>  CalculatorFinal.vcxproj -> c:\users\ramee\documents\visual studio 2010
\Projects\CalculatorFinal\Debug\CalculatorFinal.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
my code is below (apologize if its not formatted correctly on here. This is my first post :D
  // CalculatorFinal.cpp : Defines the entry point for the console application.
  //
  #include "stdafx.h"       // Including header
  #include <iostream>       // Including ioStream
  using namespace std;      // Namespace
  void calc (double x, double y);
  double result;
  double n1,n2;             // Declaring Variables
  char q,operation;
  int main()                
  { 
   cout<<"Welcome to My Calculator" <<endl; // Outputs welcome message
   cout<<""<<endl;                               // Blank Space
   cout<<"INSTRUCTIONS: Input a mathmatical equation" <<endl; // Outputs instruction            
   cout<<"              EX: 2 + 2" <<endl;       // Outputs instruction
   cout<<""<<endl;                               // Blank Space
   cout<<"Operators:"<<endl;                     // Outputs operation header
   cout<<"For Addition, select '+'"<<endl        // Outputs ADD instruction
   cout<<"For Subtraction, select '-'"<<endl;    // Outputs SUB instruction
   cout<<"For Multiplication, select '*'"<<endl; // Outputs MUL instruction
   cout<<"For Division, select '/'"<<endl;       // Outputs DIV instruction
   cout<<""<<endl;                               // Blank Space
   cout<<"To clear, select 'c'"<<endl;  // Outputs clear instruction
   cout<<"To quit, select 'q'"<<endl;   // Outputs QUIT instruction
   cout<<""<<endl;                                                                  // Blank Space
   cout<<"Input a mathmatical equation"<<endl;                                      // Input instructions
   cin>>n1>>operation>>n2;
   calc:(n1,n2);
   cout<<"The answer is:"<<result<<endl;
   std::cin>>q;             // Input "q" to "quit"
   return 0;}
void calc(double x, double y)                                                       // Operator function
    {            x=n1;
    y=n2;
    switch(operation)                                                           // Operator swtich statement
    {case '+':
        result = x + y;
        break;
    case '-':
        result = x - y;
        break;
    case '*':
        result = x * y;
        break;
    case '/':
        result = x / y;
        break;
    default:
        cout<<"Improper equation. Please input a valid mathmatical equation"<<endl;
        cin>>n1>>operation>>n2;
        calc (n1,n2);
    }
 }
 
     
     
     
     
     
     
     
    