// This is a named macro that will compile and run in linux. // Compile by doing: // g++ -Wall `root-config --cflags --libs` -o compiled_macro compiled_macro.C #include int main(){ std::cout << "Hello Duke REU students!" << std::endl; float x = 31.2; // Define a floating point variable 'x' and assign its value float y; // Define a floating point variable 'y' with no value assigned int i = 12; // Define an integer and assign its value. // Print these new variables to the screen std::cout << "x = " << x << std::endl; std::cout << "y = " << y << std::endl; std::cout << "i = " << i << std::endl; // Do some math and print the result y = x + i; std::cout << "The sum of x and i is: " << y << std::endl; return 0; }