Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86934072
user_interface.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Oct 9, 12:22
Size
999 B
Mime Type
text/x-c
Expires
Fri, Oct 11, 12:22 (2 d)
Engine
blob
Format
Raw Data
Handle
21506314
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
user_interface.h
View Options
//
// 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
Log In to Comment