cppcourse/src/sheet03.cpp
2022-11-10 10:41:51 +01:00

25 lines
374 B
C++

#include <string>
#include <iostream>
#include "../headers/MyType.h"
int calculate(const char &argv)
{
}
int main(int argc, char **argv)
{
MyType j("jj", 69);
MyType cj(j);
MyType caj("jj",420);
caj = j;
MyType mj(std::move(j));
MyType maj("jj", 69);
maj = std::move(cj);
if(argc == 4)
{
calculate(argv);
}
return 0;
}