Learn C++ Language from the Best Tutors
Search in
Lesson Posted on 09/07/2021 Learn Basic C++
Juhi G.
I am B.E, Computer Science having 13 years of experience as Software professional and worked for MNS...
# include
using namespace std;
int main()
{
cout<<"Welcome to C++";
return 0;
}
Answered on 19/04/2020 Learn C++ Language
Sejal
Answered on 09/07/2020 Learn C++ Language
Sunshine Technologies
Learn C++ Language from the Best Tutors
Answered on 03/05/2020 Learn C Language
Manjunath B
I Can teach Programming Languages also
Answered on 22/01/2019 Learn C++ Language
Amaninder Kaur
Trainer
Answered on 28/12/2018 Learn C Language
Narendra
Computer Science Tutor
Learn C++ Language from the Best Tutors
Answered on 08/11/2020 Learn C++ Language
Vidya
Yes, "C" is a sea, with C, you write high-level programs, assembly level using #Pragma & handle peripheral devices directly, With curses & 'C' you can play with "C and implement a graphical user interface for Linux", and the more :) you play with ASCII and Colour background in MS-DOS environment. Even much more 'C' language can do. I know this much.
read lessAnswered on 22/01/2019 Learn C++ Language
Amaninder Kaur
Trainer
Answered on 24/01/2019 Learn C++ Language
Srikanth Puli
C++ Tutor; Make it easy.
Using recursion;
#include<iostream>
void printNTimes(int nTimes)
{
if(nTimes <= 0)
return;
std::cout<<"I love programming ";
printNTimes(--nTimes);
}
int main()
{
int n = 0;
std::cin>>n;
printNTimes(n);
}
Learn C++ Language from the Best Tutors
Answered on 05/11/2020 Learn C Language
Ashish K.
Electrical Engineer from IIT Kanpur ,By profession Software Engineer and Teacher by passion
These rules are instrumental when you design your class.
When you create/write a new class, you always think of 5 place holder methods in it.
Earlier it was three, but after C++ 11 it became 5.
They are:
Best case is to design a class so that you have a rule of 0. But it's not always possible.
It will depend on the nature of your class members. It's bad practice to have them as raw pointers because then you have to write these constructors carefully and also think about resource leakage. Sometimes, we make them shared pointer or unique pointer etc. to reduce our work of writing these constructors and methods. If your class members are themselves following the rule of 0,3,5 etc., then it will also affect your decision whether you have to give all 5 or 0 or 3.
In a nutshell, it's always a good practice to think about these five methods, whenever you write a new class.
Good question!!
read lessUrbanPro.com helps you to connect with the best C++ Language Classes in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for C++ Language Classes are on UrbanPro
The best Tutors for C++ Language Classes are on UrbanPro
Book a Free Demo