// Same "console application", but this time // put the answer in large red text inside a // big yellow circle! #include "GraphicsMagician.h" // function prototypes here int larger(int m, int n); int main() { Machine.Start(); // declare some variables int number1, number2, product, big; // get a couple of numbers from the user cout << "Enter a number:"; cin >> number1; cout << "Enter another:"; cin >> number2; // call a function to get the larger number big = max(number1, number2); cout << "The the larger of the two numbers is..."; // x-center, y-center, radius, color, "filled" Machine.Circle(400,300,100,Machine.Yellow,1); // Pick a new font and size Machine.ChangeFont("Times New Roman",72); // And a color for the text Machine.TextColor(Machine.Red); // Position the cursor Machine.TextPosition(350,250); cout << big; // Note: simple colors are pre-defined, such as: Machine.Red // You can mix it on your own with: RGB(255,0,0) // pause for a keypress before going away getch(); return 0; } // a function that returns the larger of two integers int larger(int m, int n) { if (m > n) return m; else return n; }