Initial commit

This commit is contained in:
2022-04-28 04:34:45 +03:00
commit 4c0cdb2f71
30 changed files with 1218 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include <iostream>
using namespace std;
int main() {
/*
Синтаксис: тип имя;
или: тип имя = значение;
*/
int myInt;
myInt = 5;
float myFloat = 6.23;
double myDouble = 6.2340282;
// Pointers
int *myPointer;
myPointer = &myInt; // создание ссылки
cout << "Значение из указателя: " << *myPointer << endl; // Получение значения из ссылки
// None
myPointer = nullptr;
return 0;
}