I am switching from PHP to C++ and I have this questions.
I have main.cpp,true.cpp,false.cpp and header.h.
The header.h has a function "Function_go_to_requested_page.cpp()"
main.cpp looks like this
#include header.h
bool x;
cin>>x;
Function_go_to_requested_page(x) // It should take to page true.cpp if x=1 else to false.cpp
I don`t know how to define this function in header file,as I will be calling this function in both in true.cpp and false.cpp .
Thanks for your time.