test ed studio LAB2
This commit is contained in:
parent
0b992089f3
commit
9b0c46bccc
12 changed files with 323 additions and 0 deletions
27
LAB2/ref.cpp
Normal file
27
LAB2/ref.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#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 );
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue