[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux] Re: aide en c++



Hello !

On Tue, Sep 11, 2001 at 10:17:57PM +0200, Cedric De Wilde wrote:
[clip]
> Voila celle par pointeur:
> void modif1(char **t)
> {
> 	int i = 0;
> 	int x=0;
> 	while(**(t+i)){
> 		for( x = 0 ;*(*(t+i)+x);x++){
> 			if (isdigit(*(*(t+i)+x))){
> 				*(t+i)=*(t+i)+x;
> 				break;
> 			}
> 		}
> 		i++;
> 	}
> }

Oufti. S'il n'y a pas au moins douze bugs dans un code pareil, c'est une
chance ;) Dis, c'est votre prof qui vous oblige à écrire de telles
coconstés illisibles ?

> Cedric

Cu,
Dash.

-- 
"Intelligence is the ability to avoid doing work, yet
getting the work done."
                -- Linus Torvalds
-- 
Damien Diederen
dash@linuxbe.org
http://users.swing.be/diederen/

[ Soyez précis dans vos sujets svp afin de déterminer directement  ]
[ le type de demande...                                            ]
[ Pour vous (dés)inscrire, aller sur http://unixtech.be/ml.php     ]
[ Archives de la mailing list: http://archives.unixtech.be/linux/  ]
[ http://unixtech.be              Contact: listmaster@unixtech.be  ]