27 lines
		
	
	
		
			462 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			462 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <stdio.h>
 | |
| #include <stdlib.h>
 | |
| #include "queue.h"
 | |
| 
 | |
| int main(int argc, char *argv[]){
 | |
| 	int i, ignores, somme;
 | |
| 
 | |
| 	for(i=0;i<=argc;i++){
 | |
| 		if(argv[i]<10){
 | |
| 
 | |
| 		}else if(argv[i]>="a" || argv[i]<="z"){
 | |
| 			while(argv[i]!=" "){
 | |
| 				ignores = ignores + argv[i];
 | |
| 			}
 | |
| 			ignores = ignores + " ";
 | |
| 
 | |
| 		}else if(argv[i]<0 || argv[i]>0){
 | |
| 			while(argv[i]!=" "){
 | |
| 			somme = somme + argv[i];
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	}
 | |
| 
 | |
| 	printf("somme : %d\n", somme);
 | |
| 	printf("ignorés : %s\n", ignores)
 | |
| } |