/******************************************************************************************** 2fileMain.cpp Jim Millard for CO311 simple program in 2 files (plus header) ********************************************************************************************/ #include <iostream> #include <string> using namespace std; #include "2fileFunc.h" //prototypes void SayHello(); void SayPrompt(string); //the MAIN main, which must be here ------------- void main() { SayHello(); string prompt = "Enter a number: "; SayPrompt(prompt); float input; cin >> input; cout << input << " squared equals " << squared(input) << endl; return; } // --------- functions that can later exist elsewhere --------- void SayHello() { cout << "This program will display the square of a number you input." << endl; } void SayPrompt(string prompt) { cout << prompt; }