#include <iostream.h> int Square(int Value); float Square(float Value); //----------------------------------------------------------------------- int main(void) { int IntInput,IntSquare; float FloatInput,FloatSquare; cout << "Enter and integer and a float : "; cin >> IntInput >> FloatInput; IntSquare = Square(IntInput); FloatSquare = Square(FloatInput); cout << IntInput << " squared is " << IntSquare << endl; cout << FloatInput << " squared is " << FloatSquare << endl; return(0); } //----------------------------------------------------------------------- int Square(int Value) { return(Value * Value); } //----------------------------------------------------------------------- float Square(float Value) { return(Value * Value); } //-----------------------------------------------------------------------
//------------------------------------------------------ #ifndef BASICCLASS_H //------------------------------------------------------ class basic { public: basic(void); int PlayBasicStuff(int Something); private: char BasicData; }; //------------------------------------------------------ #define BASICCLASS_H #endif //------------------------------------------------------