Search:
Type: Posts; User: justutiz
Search:
Search took 0.01 seconds.

October 9th, 2011, 04:07 AM
I have a mind with a lot of 'if'. If number 1 is biggest than other, then first and so on. but i think you guys have a greatest idea.

October 8th, 2011, 01:35 PM
Hi, how can i know which array number is biggest?
I need to know the number ant which.
Example: a[5] = {1, 2, 5, 4, 3}
Bigest number is third and this is number 5.

October 7th, 2011, 12:15 PM
Hi everyone,
need some help, this function doesnt work for me and I dont know why, maybe you can help me.
void menu4(double array[], int n) {
ofstream results("results.txt");
for...

October 2nd, 2011, 09:41 AM
Yes, but dont understand everything. I just need to do a program in few days. This is my first program and I am still learning everything.

October 2nd, 2011, 08:52 AM
so it is posible to make working with all values, if az i take 0.000000001 then it is not working, so i need to add more 0.00000000000000001 in compare, it is other way?

October 2nd, 2011, 08:45 AM
so
if ( fabsf(c  a) < 0.000001 ) is the best and shortest way?

October 2nd, 2011, 08:32 AM
when add one time its true, but when you do it with cycle it looks something like this
a = 0.1 + 0.01000000001 and so on
and then you compare 0 with a it is looks something like this 0 !=...

October 2nd, 2011, 08:16 AM
Yes, it works, but maybe it is shortes way to compare ca is 0?

October 2nd, 2011, 08:14 AM
Yes, but why in my code 0.1 + 0.1 is not 0?

October 2nd, 2011, 08:10 AM
Im still geting
1 1 0
1.11 0.9 0
1.25 0.8 0
1.43 0.7 0
1.67 0.6 0
2 0.5 0
2.5 0.4 0

October 2nd, 2011, 07:42 AM
but abs want me to use int, my a and c is floats

October 2nd, 2011, 06:00 AM
Im reading, and Im very new in C++, so I dont find how I can do the folowing that a == c, then a and c is floats.

October 2nd, 2011, 05:08 AM
OK, i have a script, which calculate Y=1/(CA). C is input, A is intetrval [Ap;Ag] with step Az;
And i have one problem, when c=2, A[1.5;2.5] with step 0.1, when i want to say that 0 isn't possible...

Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!
