automated commit TP3
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main(){
|
||||
string x,y,z;
|
||||
x = "ENS";
|
||||
y = "De Lyon";
|
||||
z = x + " " + y;
|
||||
println_string(z);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
// ENS De Lyon
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main(){
|
||||
string n,m;
|
||||
n = "foo";
|
||||
m = "bar";
|
||||
println_string(n);
|
||||
println_string(m);
|
||||
println_string(n + m);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
// foo
|
||||
// bar
|
||||
// foobar
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "printlib.h"
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
println_string(s);
|
||||
s = s + "Coucou";
|
||||
println_string(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// EXPECTED
|
||||
//
|
||||
// Coucou
|
||||
Reference in New Issue
Block a user