Commit 02167790 authored by Marcus M. Darden's avatar Marcus M. Darden
Browse files

Add a module for external functions.

parent 3c989a70
// functions.cpp
//
// The Makefile expects that the project solution has main() in a file
// named project*.cpp
//
// These functions are declared in functions.h and implemented in functions.cpp
#include <iostream>
using std::cout;
using std::endl;
#include "functions.h"
void calculate(int x, int y) {
cout << x << " + " << y << " = " << x + y << endl;
}
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
void calculate(int x, int y);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment