Skip to content

Conversation

@AvaiaMbare98
Copy link

No description provided.


int main(){
std::cout << "A random number between 1 and 100: " << numGenerator() << std::endl;
return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return 0 non è molto significativo e non vi è una determinata semantica. Per migliorare la leggibilità potresti definire:

#define EXIT_SUCCESS 0;

E utilizzarla nel seguente modo.

Suggested change
return 0;
return EXIT_SUCCESS;

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.

2 participants