Visualizzazione dei risultati da 1 a 5 su 5

Hybrid View

  1. #1
    Utente di HTML.it L'avatar di shodan
    Registrato dal
    Jun 2001
    Messaggi
    2,381
    Non te la prendere, ma prima di affrontare gli algoritmi notevoli ti consiglierei un ripasso su dichiarazione degli array e tipo di ritorno delle funzioni.
    Parti errate.
    codice:
    int n;
    int v[n];
    ...
    cout<<"Il vettore ordinato è : "<<bubblesort(v,n); // cosa restituisce bubblesort?
    This code and information is provided "as is" without warranty of any kind, either expressed
    or implied, including but not limited to the implied warranties of merchantability and/or
    fitness for a particular purpose.

  2. #2
    Quote Originariamente inviata da shodan Visualizza il messaggio
    Non te la prendere, ma prima di affrontare gli algoritmi notevoli ti consiglierei un ripasso su dichiarazione degli array e tipo di ritorno delle funzioni.
    Parti errate.
    codice:
    int n;
    int v[n];
    ...
    cout<<"Il vettore ordinato è : "<<bubblesort(v,n); // cosa restituisce bubblesort?
    ma il tipo void non restituisce nulla giusto?mi fa solo degli scambi sul vettore di partenza

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.