Reorganize

This commit is contained in:
oleg20111511
2026-03-02 19:15:17 +02:00
parent 9192716bfb
commit f235a35ebb
610 changed files with 1 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#include <iostream>
using namespace std;
string name = "Cat";
// Объявление класса
class MyClass {
public:
int myNum;
string name;
string str() {
return name;
}
};
int main() {
// Создание объекта
MyClass myObj;
// Доступ к атрибутам
myObj.myNum = 5;
myObj.name = "Vincent";
cout << myObj.str() << endl;
return 0;
}