mirror of
https://github.com/tdulcet/Table-and-Graph-Libs.git
synced 2025-12-16 00:18:55 +08:00
Updated to require C++17 and use exceptions.
This commit is contained in:
12
graphs.cpp
12
graphs.cpp
@@ -1,6 +1,6 @@
|
||||
// Teal Dulcet, CS546
|
||||
|
||||
// Compile: g++ -std=c++14 -Wall -g -O3 graphs.cpp -o graphs
|
||||
// Compile: g++ -std=gnu++17 -Wall -g -O3 graphs.cpp -o graphs
|
||||
|
||||
// Run: ./graphs
|
||||
|
||||
@@ -242,7 +242,7 @@ int main()
|
||||
{
|
||||
aoptions.style = style;
|
||||
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, graphs::size(functions), functions, aoptions);
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, size(functions), functions, aoptions);
|
||||
}
|
||||
}
|
||||
{
|
||||
@@ -257,7 +257,7 @@ int main()
|
||||
{
|
||||
aoptions.style = style;
|
||||
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, graphs::size(functions), functions, aoptions);
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, size(functions), functions, aoptions);
|
||||
}
|
||||
}
|
||||
{
|
||||
@@ -270,13 +270,13 @@ int main()
|
||||
|
||||
graphs::options aoptions;
|
||||
aoptions.axisunitslabel = false;
|
||||
// graphs::options aoptions{.axisunitslabel = false};
|
||||
// graphs::options aoptions = {.axisunitslabel = false};
|
||||
|
||||
for (const graphs::style_type style : graphs::style_types)
|
||||
{
|
||||
aoptions.style = style;
|
||||
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, graphs::size(functions), functions, aoptions);
|
||||
graphs::functions(height, width, xmin, xmax, ymin, ymax, size(functions), functions, aoptions);
|
||||
}
|
||||
|
||||
/* aoptions.style = 2;
|
||||
@@ -286,7 +286,7 @@ int main()
|
||||
cout << "\e[1;1H"
|
||||
<< "\e[2J";
|
||||
|
||||
graphs::functions(k, k, xmin, xmax, ymin, ymax, graphs::size(functions), functions, aoptions);
|
||||
graphs::functions(k, k, xmin, xmax, ymin, ymax, size(functions), functions, aoptions);
|
||||
|
||||
usleep(200000);
|
||||
} */
|
||||
|
||||
Reference in New Issue
Block a user