From eca991fd8844690e01e5a83028266dd04b0c8607 Mon Sep 17 00:00:00 2001 From: ludwig Date: Sat, 13 Aug 2022 14:51:07 -0500 Subject: [PATCH] Cmake list added --- CMakeLists.txt | 6 ++++++ converter.cpp | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 converter.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..84542fc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.23) +project(untitled) + +set(CMAKE_CXX_STANDARD 14) + +add_executable(untitled converter.cpp) \ No newline at end of file diff --git a/converter.cpp b/converter.cpp new file mode 100644 index 0000000..55a1b55 --- /dev/null +++ b/converter.cpp @@ -0,0 +1,22 @@ +#include + +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. +//