Skip to content

Conversation

@Dani220406
Copy link

No description provided.

int main(){
srand(time(NULL));
cout << "The random number generated (1-100) is: " << generate() << 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