Write a program which has 7 functions. The functions should be main() this calls the other 6 functions namely: 5 fget_long() a function which returns a long data type from a file fget_short() a function which returns a short integer variable from a file fget_float() a function which returns a floating point variable from a file fprt_long() a function which prints its single, long argument into a file fprt_short() a function which prints its single, short argument into a file fprt_float() a function which prints its single, floating point argument into a file You should use scanf() to get the values of the variables from the input (the keyboard) and printf() to print the values to the terminal. Pay attention to using the correct format for each of the data types. If you have a compiler that only knows double, use double in place of float - or use it anyway if you want
Answers
Answered by
0
Answer:
What is the easiest way to convert from int to equivalent string in C++. I am aware of two methods. Is there any easier way?
(1)
int a = 10;
char *intStr = itoa(a);
string str = string(intStr);
(2)
int a = 10;
stringstream ss;
ss << a;
string str = ss.str()
Similar questions