>DansTonCode();

Tous les codes sources "Mais pourquoi ?"page 29

C++
 15 July, 2014 à 11:27
#119
		int multiplyBy10(int number)
		{
			std::stringstream str;
			str << number << '0';
			str >> number;
			return number;
		}
C++
 14 July, 2014 à 04:00
#217
protected void refreshLayout() {
// We are forcing scroll bar refreshing too
composite.getParent().getParent().getParent().getParent().getParent().getParent().pack(true);
composite.getParent().getParent().getParent().getParent().getParent().getParent().getParent().layout();
}
PHP
 13 July, 2014 à 11:58
#224
          $recherche = array();
          foreach($particulier as $k=> $v)
          {
            switch($k)
            {
              case 'civilite':
                $recherche['civilite'] = $v;
                break;
              case 'nom':
                $recherche['nom'] = $v;
                break;
              case 'prenom':
                $recherche['prenom'] = $v;
                break;
              case 'code_postal':
                $recherche['cp_ville']['codepostal'] = $v;
                break;
              case 'ville':
                $recherche['cp_ville']['ville'] = $v;
                break;
              case 'telephone':
                $recherche['telephone'] = $v;
                break;
              case 'email':
                $recherche['email'] = $v;
                break;
              default: break;
            }
          }
          $form->bind($recherche);