mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
Tests: Update style of c++ code snippets in Tutorial directions
This commit is contained in:
committed by
Betsy McPhail
parent
f2ddedfa58
commit
0e2cdacf7b
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user