Search
 
SCRIPT & CODE EXAMPLE
 

C

Successeur récurssive

void Succ (char * ch){
    if (Dernier(ch) == '9'){
        // Debut(ch) : délivre ch privée de son dernier élément
      	Succ(Debut(ch));
      	// AjoutF(ch, c) : délivre ch à laquelle on a rajouté à la fin de ch 
        AjoutF(ch, '0');
    }else{
      	// Dernier(ch) : délivre le dernier caractère de ch
        int n = int(Dernier(ch));
        n++;
        //Carat(n) : int -- char
        AjoutF(Debut(ch), Carat(n));
    }
}
Comment

PREVIOUS NEXT
Code Example
C :: postgres random select 
C :: c format specifiers 
C :: add 2 numbers in c 
C :: input in c 
C :: how to read character from a string in c 
C :: search array element in c 
C :: how to ban websites on mac 
C :: find smallest number in array in c 
C :: create empty vector in rust 
C :: how to empty string in c 
C :: how to login to another user in powershell 
C :: write a binary file c 
C :: How to change an array in a function in c 
C :: read string with space c 
C :: c program to print the multiplication table 
C :: set value of boolean in c 
C :: c string to int 
C :: enable disable audio listener unity 
C :: search in gz file 
C :: round float in c 
C :: how to use malloc in c 
C :: bubble sort in c 
C :: getchar in c 
C :: print an int c 
C :: unpack and repack deb package 
C :: arduino empty serial buffer 
C :: c read binary file 
C :: fifo in c 
C :: c functions 
C :: localStorage.setItem multpile arra 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =