ludwig
2 years ago
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
cmake_minimum_required(VERSION 3.23) |
|||
project(untitled) |
|||
|
|||
set(CMAKE_CXX_STANDARD 14) |
|||
|
|||
add_executable(untitled 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…
Reference in new issue