A simple program written in C++ to count the characters in a .txt file.
- Download Visual Studio 2022 from the Microsoft website.
- Open Visual Studio 2022 and select 'Create a new project' and create a new project by choosing 'Create Console App'.
- Download GIT.
- Open your terminal and run the command
git clone https://github.com/FreddieCrew/CharCounter.git
to clone this repository. - Drag and drop the Main.cpp file into the Visual Studio 2022 Solution Explorer.
- Click on the 'Build' option in the Visual Studio 2022 navigation menu.
- Right-click on the project name in the Solution Explorer and select 'Properties' or press ALT + Enter.
- In the project settings, double-click on the 'C/C++' option to expand its contents.
- Click on 'Language'.
- Then click on the 'C++ Standard Language' option and select 'Standard ISO C++20'.
- Then click on the 'Build Solution' option in the Visual Studio 2022 navigation menu or press CTRL + Shift + B.
- Download CMake from the official CMake website.
- Download GIT.
- Open your terminal (On Windows, press CTRL + R and type 'cmd' in the Run window).
- Run the command
git clone https://github.com/FreddieCrew/CharCounter.git
to clone this repository. - Then run the command
cd CharCounter
to navigate to the cloned repository folder. - Create a folder named 'build' by running the command
mkdir build
. - Enter the 'build' folder by running the command
cd build
. - Run the command
cmake ..
. - Then build the project by running the command
cmake --build .
.
- Clone this repository by following the build steps above.
- Place the .txt file(s) inside the "txt" folder.
- Then run the program.
Useless and pointless? Yeah, I know, this program was created for the sole purpose of being an exercise.