I have the following code and was wondering if there's a function that can be used in istream that will give a newline in output. For instance, having a newline between feet and inches in istream.
> used in istream that will give a newline in output.
don't quite understand your question
istream is used for input
as you are reading numbers, whitespace will be ignored
I'll try to explain better. The code above has the following output:
1 2 3 4 5 6
Enter the value of object :
70
10
First Distance : F : 11 I : 10
Second Distance :F : 5 I : 11
Third Distance :F : 70 I : 10
I want to know if there is some type of function for spacing to use in istream(not main function, I know how to do it in main function) to make my output look like this:
1 2 3 4 5 6 7 8
Enter the value of object :
70
10
//this is what I'm trying to do
First Distance : F : 11 I : 10
Second Distance :F : 5 I : 11
Third Distance :F : 70 I : 10