changement du fichier tp scr
This commit is contained in:
29
TP_SCR3.1/TP_Threads/exo2somme.c
Normal file
29
TP_SCR3.1/TP_Threads/exo2somme.c
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
|
||||
|
||||
if(argc != 3) {
|
||||
|
||||
fprintf(stderr, "Usage :%s <max> <n>\n",argv[0]);
|
||||
return 1;
|
||||
|
||||
|
||||
}
|
||||
long N = strtol(argv[1], NULL,0);
|
||||
long M = strtol(argv[2], NULL,0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user