Thanks guys. I realized that "d" just had to be positive or 0! Just had to type in the right numbers ! :)
Type: Posts; User: farligefinn
Thanks guys. I realized that "d" just had to be positive or 0! Just had to type in the right numbers ! :)
Tried to change numbers to 2.0 and 4.0, and added cin.ignore();
but when i type in all numbers it says:" -1.#IND "
Anybody know what to do?
Updated code:
#include <iostream>
#include...
Thanks.. i have now included the sqrt command in my code. Still it doesn't put out the number i want it to ( actually no number is calculated )
I would appreciate any kind of help, especially if i...
Hey everybody.
I'm new to programming (still :) )
I was trying to make some calcuators, but realised that i didn't know how to use squareroot ( if possible ) can anybody please tell me :)!
...
I'll do that next time!
Now i want to make some comments, that depends on the value i get from the last function ( j / d ). But i doesn't seem like i can do that, the comment is always the same, no...
Hey.. You guys were right :). Just switched cin>> x; with the function, cuz i had to declare the function before, else the value of the function would be ignored. Thx :)
Hey everybody.
I am new to this forum, and i just started programming. I have been trying to make some different simple programs, but when i tried this, it just wouldn't put out a number at the...