We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pour la question test, un étudiant propose
#include <stdlib.h> #include <string.h> int main(int argc,char *argv[]){ if(!strcmp(argv[2],"-ne")){ return atof(argv[1])==atof(argv[3]); } else if(!strcmp(argv[2],"-ge")){ return atof(argv[1])<atof(argv[3]); } else if(!strcmp(argv[2],"-gt")){ return atof(argv[1])<=atof(argv[3]); } else if(!strcmp(argv[2],"-le")){ return atof(argv[1])>atof(argv[3]); } else if(!strcmp(argv[2],"-lt")){ return atof(argv[1])>=atof(argv[3]); } else if(!strcmp(argv[2],"-eq")){ return atof(argv[1])!=atof(argv[3]); } else{ return 0; } }
comment faire en C pour compter efficacement le nombre de sous-fonctions qui sont implémentés et les forcer à utiliser des sous-fonctions ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pour la question test, un étudiant propose
#include <stdlib.h>
#include <string.h>
int main(int argc,char *argv[]){
if(!strcmp(argv[2],"-ne")){
return atof(argv[1])==atof(argv[3]);
}
else if(!strcmp(argv[2],"-ge")){
return atof(argv[1])<atof(argv[3]);
}
else if(!strcmp(argv[2],"-gt")){
return atof(argv[1])<=atof(argv[3]);
}
else if(!strcmp(argv[2],"-le")){
return atof(argv[1])>atof(argv[3]);
}
else if(!strcmp(argv[2],"-lt")){
return atof(argv[1])>=atof(argv[3]);
}
else if(!strcmp(argv[2],"-eq")){
return atof(argv[1])!=atof(argv[3]);
}
else{
return 0;
}
}
comment faire en C pour compter efficacement le nombre de sous-fonctions qui sont implémentés et les forcer à utiliser des sous-fonctions ?
The text was updated successfully, but these errors were encountered: