This is a personal project in which I've implemented a simple flashcards program. It's designed to help with studying by allowing users to create and review flashcards.
To run the flashcards program, you'll need:
- C++ compiler (supporting C++11)
- Basic understanding of the command line interface
- None
-
Clone the repository:
git clone https://github.com/CrescentMnn/flashcards.git
-
Navigate to the project directory:
cd flashcards
-
Navigate to the appropriate source folder based on your system:
- For Linux:
cd src/linux
- For Windows:
cd src/windows
-
Compile the program:
- For linux:
g++ -o flashcards flashcards_lin.cpp
- For windows:
g++ -o flashcards.exe flashcards_win.cpp
To create a new flashcards file, follow these steps:
-
Run the program:
./flashcards
or
flashcards.exe
-
Choose the option to create a new file.
-
Enter the name for the new file when prompted.
-
Input the size of the flashcards and provide questions and answers for each card.
-
Once finished, the program will save the session to the file.
To read an existing flashcards file, follow these steps:
-
Run the program:
./flashcards
or
flashcards.exe
-
Choose the option to read an existing file.
-
Enter the name of the existing file when prompted.
-
The program will load the flashcards from the file.
After creating or reading a file, you'll be presented with the main menu. From here, you can choose between a study session or a quiz session.
- Study Session: You'll be shown each flashcard question one by one, and you can provide answers. The program will tell you if your answer is correct.
- Quiz Session: You'll answer flashcard questions as they come, without immediate feedback. At the end, your grade will be provided based on the number of correct answers.
Here's an example of running a study session: