Sign in to follow this  
Followers 0
cyber panther

My recent code in c++

3 posts in this topic

#include

#include

class addition

{

public :

inline int sum(int m,int v) //inline

{

int f=m+v;

int *h; //pointer

h=&f;

return(*h);

}

inline float sum(float g,float n) //inline

{

float u=g+n; //pointer

float *k;

k=&u;

return(*k);

}

};

int main()

{

addition x;

int a=2,b=3;

float c=1.0000,d=2.0000;

clrscr();

cout<<"a+b="<

Share this post


Link to post
Share on other sites

An alternative would be to use HasteBin or just the code brackets on here when pasting code sir

Share this post


Link to post
Share on other sites

#include

#include class addition

{

public : inline int sum(int m,int v) //inline

{

int f=m+v; int *h; //pointer h=&f; return(*h);

}

inline float sum(float g,float n) //inline

{

float u=g+n; //pointer float *k; k=&u; return(*k);

}

}

; int main()

{

addition x; int a=2,b=3; float c=1.0000,d=2.0000; clrscr(); cout<<"a+b="<

} //Code doesn't have a closing bracket??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0