New source
This commit is contained in:
+8
-10
@@ -1,15 +1,13 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
const std::string& get_greeting() {
|
|
||||||
return "Hello, world!";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the number of things.
|
|
||||||
int add_6(int cx) {
|
|
||||||
return 6 + cx;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << "Hello, world!" << add_6(5) << std::endl;
|
|
||||||
return 0;
|
auto max_value = 100;
|
||||||
|
auto total;
|
||||||
|
for (int i = 0; i < max_value; ++i) {
|
||||||
|
total += i;
|
||||||
|
}
|
||||||
|
std::cout << "Total: " << total << std::endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user