Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marcus M. Darden
eecs281_project0
Commits
02167790
Commit
02167790
authored
Sep 10, 2015
by
Marcus M. Darden
Browse files
Add a module for external functions.
parent
3c989a70
Changes
2
Hide whitespace changes
Inline
Side-by-side
functions.cpp
0 → 100644
View file @
02167790
// 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
;
}
functions.h
0 → 100644
View file @
02167790
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
void
calculate
(
int
x
,
int
y
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment