Tests: Update style of c++ code snippets in Tutorial directions

This commit is contained in:
Zack Galbreath
2019-01-11 11:31:12 -05:00
committed by Betsy McPhail
parent f2ddedfa58
commit 0e2cdacf7b
2 changed files with 17 additions and 25 deletions

View File

@@ -52,14 +52,13 @@ make use of the version numbers. The resulting source code is listed below.
int main (int argc, char *argv[])
{
if (argc < 2)
{
if (argc < 2) {
std::cout << argv[0] << " Version "
<< Tutorial_VERSION_MAJOR << "." << Tutorial_VERSION_MINOR
<< std::endl;
std::cout << "Usage: " << argv[0] << " number" << std::endl;
return 1;
}
}
double inputValue = atof(argv[1]);