Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Better documentation for the new program version
Browse files Browse the repository at this point in the history
Updated installation instructions for new program version(#v.1.1).
  • Loading branch information
FreddieCrew authored Sep 15, 2023
1 parent b529669 commit 9635376
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
# CharCounter
Simple program written in C++ to count the characters inside a .txt file.
A simple program written in C++ to count the characters in a .txt file.

## How to build
## How to Build

### Using Visual Studio Code 2022(Not Recommended)
1. Download Visual Studio 2022 from the [Microsoft website](https://visualstudio.microsoft.com/vs/).
2. Open Visual Studio 2022 and select 'Create a new project' and create a new project by selecting 'Create Console App'.
2. Open Visual Studio 2022 and select 'Create a new project' and create a new project by choosing 'Create Console App'.
3. Download [GIT](https://git-scm.com/downloads).
4. Open your terminal and run the command `git clone https://github.com/FreddieCrew/CharCounter.git` to clone this repository.
5. Drag and drop the Main.cpp file into the Visual Studio 2022 Solution Explorer.
6. Click on the 'Build' option in the Visual Studio 2022 navigation menu.
7. Then click on the 'Build Solution' option or press **CTRL + Shift + B**.
7. Right-click on the project name in the Solution Explorer and select 'Properties' or press **ALT + Enter**.
8. In the project settings, double-click on the 'C/C++' option to expand its contents.
9. Click on 'Language'.
10. Then click on the 'C++ Standard Language' option and select 'Standard ISO C++20'.
11. Then click on the 'Build Solution' option in the Visual Studio 2022 navigation menu or press **CTRL + Shift + B**.

### Using CMake(Recommended)
1. Download CMake from the [official CMake website](https://cmake.org/download/).
2. Download [GIT](https://git-scm.com/downloads).
3. Open your terminal (On Windows, press CTRL + R and type 'cmd' in the Run window).
4. Run the command `git clone https://github.com/FreddieCrew/CharCounter.git` to clone this repository.
5. Then run the command `cd CharCounter` to navigate to the cloned repository folder.
6. Create a folder named 'build' by running the command `mkdir build`.
7. Enter the 'build' folder by running the command `cd build`.
8. Run the command `cmake ..`.
9. Then build the project by running the command `cmake --build .`.

## Usage(After building)
1. Clone this repo by following the build steps above.
## Usage(After Building)
1. Clone this repository by following the build steps above.
2. Place the .txt file(s) inside the "txt" folder.
3. Then run the program.

Expand Down

0 comments on commit 9635376

Please sign in to comment.