I want to know the output of this code. I tried to compile it but it just stopped after line 26.
Anyways other than that.
here's my questions
1) does line 23 output anything? does it output line 17 and line 18's couts?
2)in line 25 cout<<argc is it 2?
3) what is the output of argv[2]? My guess it means the second argument which is atEnd2 which is Bye, bye, bye!
4)i have no idea what line 27 do. I know it set the field width to be 10 and precision to be 2. But i don't nkow what does atof(argv[1])'s output
5) line 30 ::x and x output are both 11.001? and does line 30 output be affected by line 27?
6)what does line 32 do? to be exact what dose myVals(8,1.618) do? does it create a vector array of 8 and fill it with 1.618?
7)38~40's cout statements i can't plow through it.
8)line 28 the cout should be e bye!? becuase it's + so i think it's 2 sppace ahead.
The problem is i can't view the errors. IT saids the program stops working correctly, it seems this program traps itself in an infinite loop. Or that's what i thought so i comment out those for loops and the problem still present.
So argv[2] is actualyl the third argument that actually doesn't exist? becuase comptuer code count 0, 1, 2 since we have two argument i should change all the 1s to 0 and all the 2s to 1?(i was wrong lol i tried it the problem still present)