Skip to content

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

Open
Ljut wants to merge 1 commit intoMaticSulc:masterfrom
Ljut:master
Open

fixed warning, formatted code, made it compatible with Linux and macOS#1
Ljut wants to merge 1 commit intoMaticSulc:masterfrom
Ljut:master

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