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
Chord Note Finder
hangman
Regex pipe and tabs c++
Replace all spaces in a string in C++
Thing
hangman
Two-phase sample with VC++ 2015
hangman
Default constructor - deleted
xyz1_1 programm