Skip to content

Conversation

linuchs
Copy link

@linuchs linuchs commented Oct 18, 2023

No description provided.

@Picred
Copy link
Collaborator

Picred commented Oct 18, 2023

Potresti migliorare l'indentanzione scegliendo un modo univoco per farlo senza aggiungere/rimuovere spazi per righe consecutive


int somma(int A, int B)
{

Copy link

Choose a reason for hiding this comment

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

Questa riga è in più. Penso possa andare tolta

int primo;
int secondo;
cout << "Inserisci primo: \n";
cin >> primo;
Copy link

Choose a reason for hiding this comment

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

Qui e nelle righe a seguire ci sono problemi di intendazione. Il testo deve essere allineato, in cin invede è qualche spazio più avanti rispetto al cout precedente

using namespace std;


int somma(int A, int B)
Copy link

Choose a reason for hiding this comment

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

Solitamente i parametri e le variabili in generale vanno in minuscolo mentre le costanti in maiuscolo

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.

3 participants