Skip to content

Commit

Permalink
Change the name of Direction.h and Direction.cpp into DA.h and DA.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
zfengyan committed Dec 11, 2021
1 parent 9c7cd9d commit 32f2cb0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions assignment2/assignment2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\Direction.cpp" />
<ClCompile Include="src\DA.cpp" />
<ClCompile Include="src\hw02.cpp" />
<ClCompile Include="src\Raster.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\Direction.h" />
<ClInclude Include="src\DA.h" />
<ClInclude Include="src\Raster.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
4 changes: 2 additions & 2 deletions assignment2/assignment2.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
<ClCompile Include="src\Raster.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="src\Direction.cpp">
<ClCompile Include="src\DA.cpp">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\Raster.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="src\Direction.h">
<ClInclude Include="src\DA.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion assignment2/src/Direction.cpp → assignment2/src/DA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <queue>

#include "Raster.h"
#include "Direction.h"
#include "DA.h"


void add_outlets_boundary(const int& Nrows, const int& Ncols, ProRaster& r,
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions assignment2/src/hw02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "string"

#include "Raster.h"
#include "Direction.h"
#include "DA.h"

using std::cout;
using std::ios;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 32f2cb0

Please sign in to comment.