Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Testing C++
#include <iostream> using namespace std; // Playing around with classes :/ class idkClass{ public: int add(int x, int y){ return x + y; } private: // Just trying to create good habbits int num1; int num2; }; int main() { idkClass cmd; cout << cmd.add(7, 1) << endl; cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Tower of hanoi
delta
Quadratic Equation
unique_list
array, loop, function examples
scuba
PalindromeDay
Vector+-OpLoad
OneANOVA
AVL - ith element
Please log in to post a comment.