Bonjour, je suis débutant en langage c++, mon problème se situe au niveau du deuxième </iostream> : pourquoi l'antislash ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 // Simple demonstration de récursion 
#include <iostream></iostream> 
using namespace std; 
void retirerChapeau(char cat) {  
   for(char c = 'A'; c < cat; c++)    
   cout << "  "; 
   if(cat <= 'Z') 
       {    cout << "cat " << cat << endl;    
             retirerChapeau(cat + 1); // appel récursif  
       } 
   else    
             cout << "VOOM !!!" << endl; 
} 
int main() {  
    retirerChapeau('A'); 
}
merci de votre reponse