I hereby claim:
- I am miniriley2012 on github.
- I am rileyq (https://keybase.io/rileyq) on keybase.
- I have a public key ASAVmogYgHYnGQGXSZqib1-XteqQ5sJMzsM8w-tkS-_vdgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
get_directory_property(THIS_PROJECT_PARENT_DIR PARENT_DIRECTORY) | |
if (NOT THIS_DIRECTORY_PARENT_DIR) | |
set(THIS_PROJECT ${PROJECT_NAME}) | |
endif () |
add_test(build_tests COMMAND ${CMAKE_COMMAND} -E true) | |
set_tests_properties(build_tests PROPERTIES DEPENDS build_tests_command) | |
add_custom_target(build_tests_command COMMAND ${CMAKE_CTEST_COMMAND}) | |
macro(add_build_test target) | |
add_executable("${target}" ${ARGN}) | |
add_test(NAME "${target}_test" COMMAND "${target}") | |
add_dependencies(build_tests_command ${target}) | |
endmacro() |
include(FetchContent) | |
macro(FetchGitVersion name url tag) | |
FetchContent_Declare(${name} | |
GIT_REPOSITORY ${url} | |
GIT_TAG ${tag} | |
${ARGN} | |
) | |
FetchContent_MakeAvailable(${name}) |
cmake_minimum_required(VERSION 3.15) | |
project(minesweeper) | |
set(CMAKE_CXX_STANDARD 17) | |
add_executable(minesweeper main.cpp) | |
target_link_libraries(minesweeper ncurses) |
Homebrew build logs for llvm on macOS 10.13.6 | |
Build date: 2018-08-10 01:12:58 |
#include <iostream> | |
#include <cmath> | |
#include <iomanip> | |
#include <vector> | |
/// Get input from standard input | |
/// \tparam T type of input to return | |
/// \param prompt a optional prompt to show the user | |
/// \return input a T | |
template<typename T> |
import java.util.Scanner; // Import "Scanner" for user input | |
import java.util.concurrent.ThreadLocalRandom; // import "ThreadLocalRandom" for random number creation | |
class eightBall { // Start class | |
public static void main(String[] args) { // start main | |
System.out.println("Welcome to my magic eight ball! press ^C to exit."); // Welcome message | |
Scanner sc = new Scanner(System.in); // Set up Scanner for System.in | |
while (true) { // Start loop until user does keyboard interrupt | |
System.out.print("Ask me a question: "); // Prompt for input |