Hi there,
Can anyone out there help me with this. I have just written a small program to add to numbers together and find the squareroot in C++
The problem is that I have declared my two variables as int, yet it accepts this. In Visual Studio it comes out, quite correctly, with an error, as the variables should be declared as doubles.
????
Any input on this would be greatly appreciated.
Kind regards
Jonny
Can anyone out there help me with this. I have just written a small program to add to numbers together and find the squareroot in C++
The problem is that I have declared my two variables as int, yet it accepts this. In Visual Studio it comes out, quite correctly, with an error, as the variables should be declared as doubles.
????
Any input on this would be greatly appreciated.
Kind regards
Jonny