Page MenuHomec4science

user_interface.h
No OneTemporary

File Metadata

Created
Wed, Oct 9, 12:22

user_interface.h

//
// Homework 2
// 2019
// CP & AASU
//
#ifndef HOMEWORK2_USER_INTERFACE_H
#define HOMEWORK2_USER_INTERFACE_H
struct user_choices {
bool guided_input = true;
// guided_input tells if the user has to specify the arguments at run time or while calling the program
int type_of_serie = 3;
/*
'1' for ComputeArithmetic
'2' for ComputePI
'3' for EXIT the program
*/
int N = 0;
int frequency = 0;
int extension_type = 1;
int precision = 10;
/*
'1' .txt and " " between numbers
'2' .csv and "," between numbers
'3' .psv and "|" between numbers
*/
int write_or_print = 0;
/*
'1' write
'2' print
*/
} ;
bool ask_type_of_serie(user_choices &mychoices);
void ask_precision(user_choices &mychoices);
void ask_frequency(user_choices &mychoices);
void ask_N(user_choices &mychoices);
bool ask_extension_type(user_choices &mychoices);
bool ask_write_or_print(user_choices &mychoices);
#endif //HOMEWORK2_USER_INTERFACE_H

Event Timeline