sir kya hum ek hi program me 2 aise function bana sakte h jiska nam same ho arguments same type ke pass ho ....like ek me hum check kre area of circle and 2nd me check kre area of semi circle.............
#include #include using namespace std; float area(int r) {return(3.14*r*r);} int area (int l,int b){return(l*b);} int area( int a,int b,int c) { int s=(a+b+c)/2; return(sqrt(s*(s-a)*(s-b)*(s-c))); } int main() { int r,l,b,a1,a2,a3; cin>>r; \\ radius of circle cin>>l>>b; \\ length breadth of rectangle cout
it means we say that we read things by default. If we say using namespace std; then we say: If we come across an object name that doesn't exist in our current namespace, check if there exists a namespace std in which it does exist, and use that object. Thus, it doesn't really add a function, it is the include that "loads" cout, cin, endl and all the like.
Bhut pasand aya hai ye video
U r amazing ...I gave 2 months to ur videos ...just watching one video a day ...it was great . U r the best
Kindly check the details
@@MicroNG which kind of details?
❤
Sir please make vedio on .....program to show monthly expenses of a person using function overloading in C++........ Please sir 🙏
kindly check the details
and 11 g express edition me sql quries bhi start karona sir plzzz
nice sir i need sql practicals sir please teach us sir
sir kya hum ek hi program me 2 aise function bana sakte h jiska nam same ho arguments same type ke pass ho ....like ek me hum check kre area of circle and 2nd me check kre area of semi circle.............
Kya tum abhi bhi Zinda ho bhaiii
best video sir
Thank you sirg
kindly check the details
koi book bta dain jis mai problems hon taky apnay concept sai kar sakhain
sir agar circle rectangle k sath triangle ka bhi are nikal na ho to declartion or function define kese karege?
plz sir i m wait yuor reply......
multitelentsworks shivani patelzzz agar chaho m help kru
us mai do variable bnain gay int base,height....phr coutbase>>height;
float area(float,float);
sqrt(s(a-s)(b-s)(c-s))
where s = (a+b+c)/2
#include
#include
using namespace std;
float area(int r) {return(3.14*r*r);}
int area (int l,int b){return(l*b);}
int area( int a,int b,int c)
{
int s=(a+b+c)/2;
return(sqrt(s*(s-a)*(s-b)*(s-c)));
}
int main()
{
int r,l,b,a1,a2,a3;
cin>>r; \\ radius of circle
cin>>l>>b; \\ length breadth of rectangle
cout
Hii sir
using namespace std
ye kya kaam karta hai
Ese keun use kate hai
it means we say that we read things by default. If we say using namespace std; then we say: If we come across an object name that doesn't exist in our current namespace, check if there exists a namespace std in which it does exist, and use that object. Thus, it doesn't really add a function, it is the include that "loads" cout, cin, endl and all the like.
Sir , I want a bundle of c++ programs for practice. From where can I get ???
go for geeksforgeeks.org
codechief,hackerearth,and many more if u google
more programs :)
sir why are u writing 2 times getch()???
one time likha toh bi chalega .......