03.11.2012, 20:30
Here's the results:
using
I saw a topic where ****** said that makes no difference in PAWN but he does
because in C++ is faster.
Edit: That was an example, I know that I've assigned the wrong variable its acctualy int in C
Код:
[21:46:20] Increase of i++ 0 using < [21:46:20] Increase of i++ 1 using < [21:46:20] Increase of i++ 2 using < [21:46:20] Increase of i++ 3 using < [21:46:20] Increase of i++ 4 using < [21:46:20] Increase of ++i 0 using < [21:46:20] Increase of ++i 1 using < [21:46:20] Increase of ++i 2 using < [21:46:20] Increase of ++i 3 using < [21:46:20] Increase of ++i 4 using < [21:46:20] Increase of ++i 0 using != [21:46:20] Increase of ++i 1 using != [21:46:20] Increase of ++i 2 using != [21:46:20] Increase of ++i 3 using != [21:46:20] Increase of ++i 4 using != [21:46:20] Increase of i++ 0 using != [21:46:20] Increase of i++ 1 using != [21:46:20] Increase of i++ 2 using != [21:46:20] Increase of i++ 3 using != [21:46:20] Increase of i++ 4 using !=
pawn Код:
main()
{
for(new i = 0; i < 5; i++) printf(" Increase of i++ %d using <", i);
for(new i = 0; i < 5; ++i) printf(" Increase of ++i %d using <", i);
for(new i = 0; i != 5; ++i) printf(" Increase of ++i %d using !=", i);
for(new i = 0; i != 5; i++) printf(" Increase of i++ %d using !=", i);
for(new i = 0; i > 5; i++) printf(" Increase of i++ %d using >", i);
for(new i = 0; i > 5; ++i) printf(" Increase of ++i %d using >", i);
}
Код:
for(new i = 0; i != 5; ++i)
Edit: That was an example, I know that I've assigned the wrong variable its acctualy int in C