Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
  • nthiery/wims-info
  • medimegh/wims-info
  • ventos/wims-info
  • bokaris/wims-info
4 results
Select Git revision
  • master
1 result
Show changes
Showing
with 251 additions and 0 deletions
!changeto oef/about.phtml
#include <iostream>
using namespace std;
int main() {
int n, resultat;
n = 4;
resultat = 1;
do {
resultat = resultat * n;
n = n - 1;
} while (n > 0);
cout << resultat << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n = 0;
do {
cout << n << endl;
n = n - 1;
} while (n > 0);
cout << "fin" << endl;
}
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream fichier("essai.txt");
fichier << 10 << 24 << endl;
fichier.close();
ifstream fichier2("essai.txt");
int i;
fichier2 >> i;
fichier2.close();
cout << i << endl;
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
istringstream a("12 1 4 5");
int I1, I2, I3;
a >> I1 >> I2 >> I3;
cout << I3 << endl;
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
istringstream flux("12 14.5 13 4");
int I1, I2, I3;
string S1;
flux >> I1 >> I2 >> S1 >> I3;
cout << I2 << " " << S1 << " " << I3 << endl;
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
istringstream a("a bc de f");
string S1, S2, S3;
a >> S1 >> S2 >> S3;
cout << S3 << endl;
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
ostringstream flux;
flux << "8+CI1=" << 8 + CI1;
string s = flux.str();
cout << s.length() << endl;
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
istringstream flux("bonjour");
float I1;
flux >> I1;
if ( flux ) {
cout << "A" << endl;
} else {
cout << "B" << endl;
}
return 0;
}
#include <iostream>
#include <sstream>
using namespace std;
int main() {
istringstream flux("CI1.01 CI2.02");
int I1, I2;
flux >> I1;
if ( flux ) {
cout << "A" << endl;
} else {
cout << "B" << endl;
}
flux >> I2;
if ( flux ) {
cout << "A" << endl;
} else {
cout << "B" << endl;
}
return 0;
}
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream flux("xkasflakjsjlkdfjasadffk.zut");
if ( flux ) {
cout << "A" << endl;
} else {
cout << "B" << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
for (int i = 5; i <= 8 ; i = i + 1 ) {
cout << i << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
for (int i = 5; i <= 8 ; i = i + 2 ) {
cout << i << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
for (int i = 5; i <= 8 ; i = i + 1 ) {
cout << 2 * i << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 0;
for ( int i = 1; i <= 3 ; i = i + 1 ) {
x = x + 5;
}
cout << x << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 2;
for ( int i = 1; i <= 3 ; i = i + 1 ) {
x = x + 5;
}
cout << x << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 0;
for ( int i = 1; i <= 3 ; i = i + 1 ) {
x = x + i;
}
cout << x << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 2;
for ( int i = 1; i <= 3 ; i = i + 1 ) {
x = x + i;
}
cout << x << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a, b, resultat;
resultat = 0;
a = 2;
cin >> b;
for ( int k = 0; k <= b; k++ ) {
resultat = resultat + a * k;
}
cout << resultat << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n, resultat;
n = 5;
resultat = 1;
for ( int k = 1; k <= n; k++ ) {
resultat = resultat * k;
}
cout << resultat << endl;
return 0;
}