Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sample ptr and obj ex
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <stdio.h> using namespace std; class parent { public: void parentname(); }; void parent::parentname() { cout<<"name:::::"<<endl; } int main() { std::cout << "Hello, world!\n"; parent pobj; pobj.parentname(); parent *pobjptr = new parent(); pobjptr->parentname(); }
run
|
edit
|
history
|
help
0
vaska
Adaptive return type
post_decrement_example
#30.2
3 sayinin toplami
c++functor
class with unique_ptr to vector
a parameter pack
defined(FOO)
hangman