Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- using namespace std;
- class Osztaly {
- int t[5];
- public:
- Osztaly(int *tomb) {
- for (int i = 0; i < 5; i++) {
- t[i] = tomb[i];
- }
- }
- const Osztaly& operator=(const Osztaly& theOther) {
- for(int i=0;i<5;i++){
- t[i] = t[i] * theOther.t[i];
- cout << t[i] << endl;
- }
- return *this;
- }
- };
- int main() {
- //tesztelés
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement