Hi,
I just created my own syntax highlighter, which formats C++ code with the color tags for this forum. So it's easier to post my code.
If anybody would like to see it, i'll post it up on the forum for download.
Testing:
Code:
#include <iostream>
#include <string>
int AddNumbers(int Number1, int Number2);
int main(void)
{
//display hello world message
cout << "Hello World" << endl;
//show a sum and its result
cout << "The sum of 2 + 2 = " << AddNumbers(2, 2) << endl;
return 0;
};
int AddNumbers(int Number1, int Number2)
{
//declare variable for storing result
int SumResult;
//get the answer to the sum
SumResult = Number1 + Number2;
//return the total result
return SumResult;
};
Yippee!
VD