Calling external code in C++ program???

I'm new to C++, but I've been a PHP programmer for years. I've searched all over, and can't seem to find an example of how I might do this code in C++. Forgive me for my ignorance.

PHP:
1
2
3
4
5
6
7
8
9
10
<?php
a=10;
b=20;
if((a+b)==30){
include("message.php");
}
else{
include("alternativemessage.php");
}
?>


The problem is with the includes. How can I include external code to be executed with my console application file in C++?

Any help is greatly appreciated.
Thanks. That sheds a little light for me.
Topic archived. No new replies allowed.