#include #include #include #define itoa(value,str) sprintf((str),"%d",(value)) #define COLUMNS 2 int main( int argc, char **argv ) { std::ofstream fileOutput("pages/screenshots"); std::string images[] = { "Tiled view of multiple graphs", "Simple view of function graph", "Calculating arc length of function", "Multiple windows open and cascaded", "3D function graph", "Another 3D function graph", "And another 3D function graph", "New graph dialog", "Box zoom with parametric graph", "Polar graph", "Density Plot" }; fileOutput << "\n"; fileOutput << "\t\n"; for ( int i=1; i <= 11; i++ ) { char number[3]; itoa(i,number); fileOutput << "\t\t\n"; if ( i % COLUMNS == 0 ) { fileOutput << "\t\n"; fileOutput << "\t\n"; } } fileOutput << "\t\n"; fileOutput << "
\n"; fileOutput << "\t\t\t
"+images[i-1]+"
\n"; fileOutput << "\t\t
\n"; fileOutput.close(); return 0; }