Search for tag: "programming"
Vector, Part 1) Create non-empty vector in C++#include <vector> using std::vector; int main() { auto my_data = vector<int>{17, 25, -300, 14}; return 0; }
From Lane Schwartz
10 plays
0
|
|
Command line arguments in C++#include <iostream> int main(int argc, char** argv) { for (int n{0}; n <= argc; n += 1) { std::cout << argv[n] << '\n'; } return 0; }
From Lane Schwartz
2 plays
0
|
|
Basic for loop in C++#include <iostream> int main() { for (int n{10}; n > 0; n = n - 1) { std::cout << n << "\n"; } }
From Lane Schwartz
1 plays
0
|
|
Hello world in C++This video shows how to create, compile, and run a simple program in C++ that prints the message "Hello, world"
From Lane Schwartz
19 plays
0
|
|