Browse Source

Cmake list added

master
ludwig 2 years ago
parent
commit
eca991fd88
  1. 6
      CMakeLists.txt
  2. 22
      converter.cpp

6
CMakeLists.txt

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.23)
project(untitled)
set(CMAKE_CXX_STANDARD 14)
add_executable(untitled converter.cpp)

22
converter.cpp

@ -0,0 +1,22 @@
#include <iostream>
using namespace std;
int main() {
double input;
char Q;
cout << "Simple temperature converter" << "\n";
cout << "Select conversion type (C F or Q for quit): ";
cin >> input;
if (input == Q) {
cout << "Quitting..." << endl;
}
return(0);
}
//
// Created by fuze on 8/13/22.
//
Loading…
Cancel
Save