F
felixnielsen
In function `void print_calc()':
[Warning] converting to ìnt' from `double'
Thats the message i get when compiling, the problem should lie within
these 3 lines:
(using bloodshed dev-c++)
p_pointer = P.size();
periode_size = pow(P[e+1],2)-pow(P[e],2);
prob -= prob*pow(P[e],-1);
In this little piece of code i have the problem that it ignoret the
cin.get() endless im writing it twice, how can that be?
std::cout << "some text" <<std::endl;
std::cout << std::endl;
std::cin.get();
std::cout << " Press enter to return to menu..." << std::endl;
std::cin.get();
Im getting a file named 'gmon.out' and i have no idea why.
The program im working on is writing some stuff to af file once in a
while and its importaint that the process is completed, eg. halfway
through when the user kills the program, doesnt work. Is there a way to
solve that problem?
Thanks in advance...
NB.
Im posting the code for the complete program in a new threath, its
pretty messy and long, however some might find it interesting.
[Warning] converting to ìnt' from `double'
Thats the message i get when compiling, the problem should lie within
these 3 lines:
(using bloodshed dev-c++)
p_pointer = P.size();
periode_size = pow(P[e+1],2)-pow(P[e],2);
prob -= prob*pow(P[e],-1);
In this little piece of code i have the problem that it ignoret the
cin.get() endless im writing it twice, how can that be?
std::cout << "some text" <<std::endl;
std::cout << std::endl;
std::cin.get();
std::cout << " Press enter to return to menu..." << std::endl;
std::cin.get();
Im getting a file named 'gmon.out' and i have no idea why.
The program im working on is writing some stuff to af file once in a
while and its importaint that the process is completed, eg. halfway
through when the user kills the program, doesnt work. Is there a way to
solve that problem?
Thanks in advance...
NB.
Im posting the code for the complete program in a new threath, its
pretty messy and long, however some might find it interesting.