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