🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by adi Sun, 08 Oct 2000 00:00
Operator OverLoading
#48
Author: adi
Date: Sun, 08 Oct 2000 00:00
30 lines
1314 bytes
Dear Friends !
Can any one help me with the following Exercise  ?
I need to write a program that Over Loading the Following Operators :
--,++, -, +, 
++ - Prefix & Suffix 
==,!=, ||
you should OverLoad in the way that you can to do the following
operations:
int+ob, ob+int when ob-name of the object.

Solving by code will be very Appreciated

==================================================

class three_d{
	int x,y,z;
public:
    three_d(int i, int j, int k);
    three_d();
    int get(int &i, int &j, int &k)
    {i=x, j=y;k=z;}
};

Thank You Very Much

Best Regards To All
==================
E-mail : adi@speedy.co.il
==================
Adi
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads