Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32346fb92e | |||
| 4973316155 |
+7
-3
@@ -1,11 +1,15 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// Add six
|
std::string get_greeting() {
|
||||||
|
return "Hello, world!";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add the number of things.
|
||||||
int add_6(int cx) {
|
int add_6(int cx) {
|
||||||
return 3 + cx;
|
return 6 + cx;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << "Hello, world!" << add_6(5) << std::endl;
|
std::cout << "Hello, world!" << add_6(5) << get_greeting() << "/n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user