Small question...
#4

Here's the results:

Код:
[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 !=
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);
}
I saw a topic where ****** said that makes no difference in PAWN but he does
Код:
for(new i = 0; i != 5; ++i)
because in C++ is faster.

Edit: That was an example, I know that I've assigned the wrong variable its acctualy int in C
Reply


Messages In This Thread
Small question... - by zDivine - 03.11.2012, 18:37
Re: Small question... - by Drake_Lopez - 03.11.2012, 19:16
Re: Small question... - by zDivine - 03.11.2012, 19:28
Re: Small question... - by TheArcher - 03.11.2012, 20:30
Re: Small question... - by Vince - 03.11.2012, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)