2021-07-11 19:11:55 +02:00
|
|
|
#include <iostream> // library for printing
|
2021-07-12 19:49:40 +02:00
|
|
|
#include <string> // support for strings
|
2021-07-11 19:11:55 +02:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
// For compiling C++ code
|
|
|
|
// g++ a.c -o a
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
2021-07-12 19:49:40 +02:00
|
|
|
string s0 = "DOG....";
|
|
|
|
string s1 = "---....";
|
|
|
|
string s2 = "----...";
|
|
|
|
string s3 = "-------";
|
|
|
|
string s4 = "...----";
|
|
|
|
string s5 = "....---";
|
|
|
|
string s6 = "....CAT";
|
|
|
|
|
|
|
|
s0.append("EXTRA!!");
|
|
|
|
cout << "s0 is now: " << s0 << "\n";
|
2021-07-11 19:11:55 +02:00
|
|
|
}
|