Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: justutiz

1. ## Thread: Which array number is biggest.

by justutiz
Replies
4
Views
1,204

### Re: Which array number is biggest.

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.
2. ## Thread: Which array number is biggest.

by justutiz
Replies
4
Views
1,204

### Which array number is biggest.

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.
3. ## Thread: help with write to .txt file

by justutiz
Replies
3
Views
407

### help with write to .txt file

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...
4. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

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.
5. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

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?
6. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

so
if ( fabsf(c - a) < 0.000001 ) is the best and shortest way?
7. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

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 !=...
8. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

Yes, it works, but maybe it is shortes way to compare c-a is 0?
9. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

Yes, but why in my code -0.1 + 0.1 is not 0?
10. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

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
11. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

but abs want me to use int, my a and c is floats
12. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### Re: 0 isn't 0 in C++ math

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.
13. ## Thread: 0 isn't 0 in C++ math

by justutiz
Replies
22
Views
2,501

### 0 isn't 0 in C++ math

OK, i have a script, which calculate Y=1/(C-A). 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...
Results 1 to 13 of 14