From 32f2cb0d4c3abb8ab113b3f765c0a36dda033e80 Mon Sep 17 00:00:00 2001 From: zmocheng Date: Sat, 11 Dec 2021 01:48:57 +0100 Subject: [PATCH] Change the name of Direction.h and Direction.cpp into DA.h and DA.cpp. --- assignment2/assignment2.vcxproj | 4 ++-- assignment2/assignment2.vcxproj.filters | 4 ++-- assignment2/src/{Direction.cpp => DA.cpp} | 2 +- assignment2/src/{Direction.h => DA.h} | 0 assignment2/src/hw02.cpp | 6 ++---- 5 files changed, 7 insertions(+), 9 deletions(-) rename assignment2/src/{Direction.cpp => DA.cpp} (99%) rename assignment2/src/{Direction.h => DA.h} (100%) diff --git a/assignment2/assignment2.vcxproj b/assignment2/assignment2.vcxproj index 3fabdbb..5104983 100644 --- a/assignment2/assignment2.vcxproj +++ b/assignment2/assignment2.vcxproj @@ -146,12 +146,12 @@ - + - + diff --git a/assignment2/assignment2.vcxproj.filters b/assignment2/assignment2.vcxproj.filters index a7f012c..e810e47 100644 --- a/assignment2/assignment2.vcxproj.filters +++ b/assignment2/assignment2.vcxproj.filters @@ -21,7 +21,7 @@ 源文件 - + 源文件 @@ -29,7 +29,7 @@ 头文件 - + 头文件 diff --git a/assignment2/src/Direction.cpp b/assignment2/src/DA.cpp similarity index 99% rename from assignment2/src/Direction.cpp rename to assignment2/src/DA.cpp index b073f55..b9fec70 100644 --- a/assignment2/src/Direction.cpp +++ b/assignment2/src/DA.cpp @@ -3,7 +3,7 @@ #include #include "Raster.h" -#include "Direction.h" +#include "DA.h" void add_outlets_boundary(const int& Nrows, const int& Ncols, ProRaster& r, diff --git a/assignment2/src/Direction.h b/assignment2/src/DA.h similarity index 100% rename from assignment2/src/Direction.h rename to assignment2/src/DA.h diff --git a/assignment2/src/hw02.cpp b/assignment2/src/hw02.cpp index 6b70b70..dee2ee9 100644 --- a/assignment2/src/hw02.cpp +++ b/assignment2/src/hw02.cpp @@ -8,7 +8,7 @@ #include "string" #include "Raster.h" -#include "Direction.h" +#include "DA.h" using std::cout; using std::ios; @@ -51,10 +51,8 @@ int main(int argc, const char* argv[]) if (argc <= 1) { cout << "This is: " << argv[0] << '\n'; cout << '\n'; - cout << "Please Call this program with two files as program arguments" << '\n'; + cout << "Please call this program with one input file name(full path) as a program argument" << '\n'; cout << '\n'; - cout << "1. The first argument would be the FULL file path of the input file; " << '\n'; - cout << "2. The second argument would be the FULL file path and NAME of the output raster; " << '\n'; return EXIT_FAILURE; }