Skip to content

A simple example C++ program to demonstrate the use of user-defined functions using multiple files in the program.

Notifications You must be signed in to change notification settings

yuvraaaj/simple-multifile-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-multifile-program

A simple example C++ program to demonstrate the use of user-defined functions using multiple files in the program.

Question for the program (taken from Codeacademy's "Learn C++" course):

In main.cpp, we have a program with a few functions. Let’s move them into a different file.

First, add a declaration for each function in main.cpp above the functions above main().

Now, move all of the function definitions over to my_functions.cpp.

Finally, compile and execute your code. Remember to link the two .cpp files when compiling.

About

A simple example C++ program to demonstrate the use of user-defined functions using multiple files in the program.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages