include file cpp code example
Example 1: include cpp
#include <iostream>
#include "foop.h"
int main(int argc, char *argv[])
{
int x=42;
std::cout << x <<std::endl;
std::cout << foo(x) << std::endl;
return 0;
}
Example 2: including cpp header file in c++
#include "enter_name_here.cpp"
//Make sure the files are in the same directory.