Could anyone explain the errors please (in beginners terms if possible!)
Thanks in advance
Graham
Warning 1 warning C4390: ';' : empty controlled statement found; is this the intent? c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 24
Warning 2 warning C4390: ';' : empty controlled statement found; is this the intent? c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 35
Warning 3 warning C4390: ';' : empty controlled statement found; is this the intent? c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 45
Error 4 error C2562: 'functionout' : 'void' function returning a value c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 83
Error 5 error C1075: end of file found before the left brace '{' at 'c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp(60)' was matched c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 85
6 IntelliSense: return value type does not match the function type c:\users\graham\documents\visual studio 2010\projects\numerals function\numerals function.cpp 83
// Numerals Function.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
// Definitions
char rodent;
int Arabicyear;
int year;
int M;
int N;
int D;
int C;
int L;
int X;
int V;
int I;
// Function for 1000s
void functionM ()
{
if (Arabicyear >=1000);
{
M=Arabicyear/1000;
cout << "Thousands = " << M << endl;
}
}
//Function for 100s
void functionC ()
{
if (Arabicyear>=100);
{
C=Arabicyear-M*1000;
C=C/100;
cout << "Hundreds = "<< C<< endl;
}
}
// Function for 10s
void functionX ()
{
if (Arabicyear >= 10);
{
X=(Arabicyear-(M*1000)-(C*100))/10;
cout << "Tens = " << X << endl;
}
}
// Function for integers
void functionI ()
{
I=(Arabicyear-(M*1000)-(C*100)-(X*10));
cout << "Units = " << I <<endl;
}