Search
 
SCRIPT & CODE EXAMPLE
 

CPP

recherche recursive le max dans une liste

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
int maxrecursive(liste L)
 
{
 
    if(L==NULL)
 
        exit(EXIT_FAILURE);
 
    liste temp=L;
 
    int max=temp->element;
 
    if(longueur(L)==1)
 
        return temp->element;
 
    if(temp->suivant==NULL)
 
        return max;
 
    else
 
        if(temp->element<temp->suivant->element)
 
        {
 
            temp=temp->suivant;
 
            return temp->element;
 
        }
 
        else
 
            return maxrecursive(temp->suivant);
 
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++c 
Cpp :: pointer to value of others file cpp 
Cpp :: even or odd program in c++ 
Cpp :: wgat is duble in c++ 
Cpp :: short int range in c++ 
Cpp :: why the << operator is friend 
Cpp :: OpenCV" is considered to be NOT FOUND 
Cpp :: How do you count the occurrence of a given character in a string? c++ 
Cpp :: return multiple values c++ 
Cpp :: person parametr cpp 
Cpp :: C++ Changing Default Value of Enums 
Cpp :: c++ vector move element 
Cpp :: kruskal algorithm 
Cpp :: convert c++ to c online 
Cpp :: c to assembly mips converter 
Cpp :: cout alternative c++ 
Cpp :: how to change the icon of an exe in c++ 
Cpp :: multi variable assignment cpp 
Cpp :: c++ vector allocator example 
Cpp :: how to run the code 
Cpp :: how to use #define c++ 
Cpp :: formated string std::cout 
Cpp :: ubuntu dotnet create blazorserver linux 
Cpp :: 400 watt hour per kg 
Cpp :: Maximum Cake Tastiness codeforces solution 
Cpp :: nodeafternode 
Cpp :: sinh to hop c++ 
Cpp :: two dimensional matrix using oops concept 
Cpp :: convert char to C 
Cpp :: how to make a running text in c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =