Appunti_Programmazione_OOP/LAB2/ref.cpp
2025-01-30 02:34:55 +01:00

27 lines
391 B
C++

#include <iostream>
#include <stdio.h>
// classe test
class Meow {
private:
double m_real;
double m_imag;
public:
Meow(const Meow &orig):
{};
void stampami();
Meow operator+(const Meow &addendo);
Meow &operator=(const Meow &orig);
};
int main(int argc, char const *argv[]) {
std::string gatto = "meow";
printf("1 Gatto: %s\n", gatto );
}