(1)
i=0;
a=(++i)+(++i);
then a==4
(2)
i=0;
a=(++i)+(++i)+(++i);
then a==7
(3)
i=0;
a=(++i)+(++i)+(++i)+(++i);
then a==11
i just test this with vc++ 6.0 & gcc 3.2 for win32
i wonder how to explain it.
Search found 5 matches
- Wed Jun 09, 2004 7:20 am
- Forum: C++
- Topic: about (++i)+(++i)
- Replies: 2
- Views: 1832
- Wed Mar 10, 2004 5:27 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10605 - Mines For Diamonds
- Replies: 22
- Views: 9483
- Wed Mar 10, 2004 10:54 am
- Forum: Volume 106 (10600-10699)
- Topic: 10605 - Mines For Diamonds
- Replies: 22
- Views: 9483
i still cannot understand the problem.
i still cannot understand the problem.
for this case:
6 3
###
#.#
#*#
#*#
#.#
###
why it has a solution?
and, what does "within a mine there may not be any grid square with more than two directly connected grid squares" mean?
for this case:
6 3
###
#.#
#*#
#*#
#.#
###
why it has a solution?
and, what does "within a mine there may not be any grid square with more than two directly connected grid squares" mean?
- Wed Mar 03, 2004 10:08 am
- Forum: C++
- Topic: it's time to update the complier
- Replies: 3
- Views: 2119
it's time to update the complier
the c/c++ complier used in ACM/ICPC final contest 2004 is gcc 3.2, but the one used here is only 2.9.5. There are lots of difference between the two complier.
- Sat Feb 14, 2004 5:13 am
- Forum: C++
- Topic: Why i can not include <streambuf> ??
- Replies: 1
- Views: 1671
Why i can not include <streambuf> ??
Some data are so big that it takes much time to read.
But when i use file buffer , it can not be compiled on the judger.
But when i use file buffer , it can not be compiled on the judger.