Skip to content
Snippets Groups Projects
Commit 0beb2afb authored by chafiol's avatar chafiol
Browse files

struct data

parent 91cac966
Branches
No related merge requests found
...@@ -43,13 +43,13 @@ void initData(struct data* d){ ...@@ -43,13 +43,13 @@ void initData(struct data* d){
void generate_tab(long* t, int nb){ void generate_tab(long* t, int nb){
int taille_tab = 0; int taille_tab = 0;
if(nb == NULL){ if(nb == NULL){
taille_tab = (int)(random()+1)%100 taille_tab = (int)(random()+1)%100;
} }
else{ else{
taille_tab = nb taille_tab = nb;
} }
for(int i = 0; taille_tab<taille_tab; i++){ for(int i = 0; taille_tab<taille_tab; i++){
} }
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment