Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed warning, formatted code, made it compatible with Linux and macOS #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ljut
Copy link

@Ljut Ljut commented May 27, 2023

Things I changed:

  1. I have fixed main.cpp:99:1: warning: non-void function does not return a value [-Wreturn-type]

  2. I have formatted the code to be easier to read.

  3. I have replaced system("pause"); with systemPause(); which is implemented on line 106.

    It does the same thing as system("pause"); but now your code isn't Windows exclusive.

  4. Using conditional compiling at lines 118-122, screen clearing will work on all major platforms (Windows, Linux and macOS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant