I made some changes, and apparently the errors has reduced to less, here's the updated code

Code: C++
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;


class currencies
{
public:

   
void USDtoRIY ();
void getUSDtoYen (double USdollars,double JPY, double& amt, double conamt);
void USDtoEuro ();
void Currencyrates ();
void Currencyinfo ();

void printJPY ();
void printRIY ();
void printEURO ();
 private:
 
double amt;
   
    double conamt ;

};

int main()
{
    currencies mycurrency;
   
    double Yen =   127.633;
    double Euro =  1.39009  ;
    double USD =   1.0;
    double RIY =   0.2667
   

    double JPY       = 127.633;
    double USdollars = 1.0 ;
    double Riyals    = 0.2667;
    double Euros     = 1.39009;

    string choice;
    string choice2;
   

    cout << "Thanks for using the USD currency converter program.\nThis program allows you to convert only from USD to Euro,JPY,and RIY." <<endl <<endl;
    cout << "Before we start the program, I would like you to know the basic commands that\nyou could use to interact with this program\n" <<endl;

    cout << "commands to use are as follows\n -JPY  = convert your USD to Yen \n -RIY  = convert your USD to Riyals \n -EURO = convert your USD to European Euros" <<endl << endl;
    cout << "Also you can type in 'Rates' to get information of each currencies' rate, and \ntype 'Cinfos' to get informations about each currency\n please note that the program is case sensitive so make sure you write the commands exactly as they appear in the instructions." <<endl << endl ;
    cout << "so now to start the program please type in 'Start', and when you're done you can exit the program by typing 'Exit'." <<endl<<endl;
    cin >> choice2;

    while ( choice2 == "Start" )
    {
        cin >> choice;
        if( choice == "JPY")
        {
            cout << "Enter the Dollars amount" <<endl;
            cin >> amt;
            mycurrency.printJPY();
        }
        else if (choice == "RIY" )
        cout << "Enter the Dollars amount" <<endl;
        cin >> amt;
        mycurrency.printRIY ();
    }
    return 0;
}


void currencies::getUSDtoYen (double USdollars,double JPY, double& amt, double conamt)
{
      conamt = (amt * USdollars) / JPY; //change the conversion rate
       

}
void currencies::printJPY (double &conamt)
{
 cout << "The amount in JPY is equal to" << conamt<< endl;
}

void currencies::USDtoEURO (double USD, double Euro);
{
    conamt = (amt*USD) * EURO; //change the conversion rate.

   
}
void currencies::printEURO ()
{
 cout << "The amount in EURO is equal to" << conamt<< endl;
}
void currencies::USDtoRiyal (double RIY, double USD, double conamt, double amt)
{
    conamt = (amt*USD)/RIY;//change the conversion rate.

   
}
void currencies::printRIY ();
{
    cout << "The amount in RIY is equal to" << conamt<< endl;
}

these are the errors:
Error 1 error C2065: 'amt' : undeclared identifier
Error 2 error C2065: 'amt' : undeclared identifier
Error 3 error C2511: 'void currencies:rintJPY(double &)' : overloaded member function not found in 'currencies'
Error 4 error C2039: 'USDtoEURO' : is not a member of 'currencies'
Error 5 error C2065: 'conamt' : undeclared identifier
Error 6 error C2065: 'amt' : undeclared identifier
Error 7 error C2065: 'EURO' : undeclared identifier
Error 8 error C2039: 'USDtoRiyal' : is not a member of 'currencies'


obviously my problem is how to get all the variables and functions to be connected........
Lunarek

Last edited by SaswatPadhi; 13Jul2009 at 23:25.. Reason: Code-blocks