L-zl před 4 roky
revize
bf7a9e0089
3 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 1 0
      .gitignore
  2. 6 0
      CMakeLists.txt
  3. 13 0
      main.cpp

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/cmake-build-debug

+ 6 - 0
CMakeLists.txt

@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.19)
+project(CppYoutube)
+
+set(CMAKE_CXX_STANDARD 17)
+
+add_executable(CppYoutube main.cpp)

+ 13 - 0
main.cpp

@@ -0,0 +1,13 @@
+#include <iostream>
+
+using namespace std;
+
+int main() {
+    float annualSalary;
+    cout << "Please enter you annual salary" << endl;
+    // cin >> annualSalary;
+    // cout << "Your monthly salary is " << annualSalary / 12<<endl;
+    cout << "Size of float" << sizeof(float) << endl;
+    cout << INT_MAX<<endl;
+    return 0;
+}