由买买提看人间百态

topics

全部话题 - 话题: rh4
(共0页)
g*********s
发帖数: 1782
1
来自主题: Programming版 - RH3/RH4上cout默认格式问题
#include
#include
#include
#include
int main(){
float f = 0.0001;
printf("f = %f\n", f);
printf("f = %g\n", f);
printf("f = %e\n", f);
std::cout <<"f = "< std::cout.setf(std::ios_base::fmtflags(0), std::ios_base::floatfield);
std::cout <<"f = "< }
RH3:
f = 0.000100
f = 1e-04
f = 1.000000e-04
f = 1e-04
f = 1e-04
RH4:
f = 0.000100
f = 0.0001
f = 1.000000e-04
f = 0.0001
f = 0.0001
有啥办法统一格式么?机器是RH3/RH4都有。改程序也
g*********s
发帖数: 1782
2
来自主题: Programming版 - RH3/RH4上cout默认格式问题
For float f2 = 0.0002, there's no such difference b/w RH3 and RH4. Both
output 0.0002.
So it seems 1e-04 is a bug in RH3.
M****o
发帖数: 4860
3
大家来分析一下,哪些是1作,哪些是通讯,哪些是酱油?
PUBLICATIONS since 2007
1. Q. Zhou, Z. Zhao, Y. Chen, H. Hu, J. Qiu, Low temperature plasma-mediated
synthesis of
graphene nanosheets for supercapacitor electrodes, J. Mater. Chem., 2012, in
press, doi:10.1039/C2JM15572A.
2. J. Liu, L. Yu, Z. Zhao, Y. Chen, P. Zhu, C. Wang, Y. Luo, C. Xu, A. Duan,
G. Jiang,
Potassium-modified molybdenum-containing SBA-15 catalysts for highly
efficient production of acetaldehyde and ethylene by the selective oxidation
of ethane, J. Cata... 阅读全帖
l*****8
发帖数: 16949
4
来自主题: Parenting版 - 又一个华裔起诉校方歧视的案子
吐这种酸水没意思。看看他的文章。如果你不是在大学混的,可以原谅。
PUBLICATIONS since 2007
1. Q. Zhou, Z. Zhao, Y. Chen, H. Hu, J. Qiu, Low temperature plasma-mediated
synthesis of
graphene nanosheets for supercapacitor electrodes, J. Mater. Chem., 2012, in
press, doi:10.1039/C2JM15572A.
2. J. Liu, L. Yu, Z. Zhao, Y. Chen, P. Zhu, C. Wang, Y. Luo, C. Xu, A. Duan,
G. Jiang,
Potassium-modified molybdenum-containing SBA-15 catalysts for highly
efficient production of acetaldehyde and ethylene by the selective oxidation
of ethane, J... 阅读全帖
f**********r
发帖数: 18251
5
来自主题: Chess版 - 7th ch-Euro Atalik,S--Berescu,A
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.08"]
[Round "5"]
[White "Atalik,S"]
[Black "Berescu,A"]
[Result "0-1"]
[WhiteElo "2618"]
[BlackElo "2433"]
[EventDate "2006.04.04"]
[ECO "E11"]
1. d4 Nf6 2. c4 e6 3. Nf3 Bb4+ 4. Nbd2 Nc6 5. a3 Bxd2+ 6. Qxd2 a5 7. b3 Qe7
8. d5 exd5 9. cxd5 Ne5 10. Bb2 d6 11. Nxe5 dxe5 12. Qg5 O-O 13. Bxe5 Ra6
14. e3 h6 15. Qf4 Nxd5 16. Qd4 Re6 17. Bg3 Nxe3 18. fxe3 Rd8 19. Qa7 Rxe3+
20. Kf2 Rxg3 21. hxg3 Qf6+ 22. Kg1 Qxa1 23. Rh4 Qxa3 24. Rf4 Qxb3 25. Bc4
f**********r
发帖数: 18251
6
来自主题: Chess版 - 7th ch-Euro Dgebuadze,A--Inarkiev,E
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.09"]
[Round "6"]
[White "Dgebuadze,A"]
[Black "Inarkiev,E"]
[Result "1/2-1/2"]
[WhiteElo "2535"]
[BlackElo "2597"]
[EventDate "2006.04.04"]
[ECO "C55"]
1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. d3 h6 5. Nc3 d6 6. a3 g6 7. h3 Bg7 8. Be3
O-O 9. Qd2 Kh7 10. g4 Nd7 11. O-O-O Nd4 12. Bxd4 exd4 13. Ne2 Qf6 14. Qf4
Qxf4+ 15. Nxf4 Ne5 16. Nxd4 Nxg4 17. hxg4 Bxd4 18. g5 h5 19. Rdf1 c6 20. c3
Bg7 21. Rfg1 Bd7 22. d4 Rae8 23. f3 Re7 24. Rh4 f5 25. Rgh1 Be8
f**********r
发帖数: 18251
7
来自主题: Chess版 - 7th ch-Euro Dgebuadze,A--Minasian,Art
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.12"]
[Round "8"]
[White "Dgebuadze,A"]
[Black "Minasian,Art"]
[Result "0-1"]
[WhiteElo "2535"]
[BlackElo "2574"]
[EventDate "2006.04.04"]
[ECO "B19"]
1. e4 c6 2. d4 d5 3. Nc3 dxe4 4. Nxe4 Bf5 5. Ng3 Bg6 6. h4 h6 7. Nf3 Nd7 8.
h5 Bh7 9. Bd3 Bxd3 10. Qxd3 e6 11. Bf4 Qa5+ 12. Bd2 Qc7 13. O-O-O Ngf6 14.
Ne4 O-O-O 15. g3 Be7 16. Kb1 c5 17. Nc3 a6 18. Qe2 Bd6 19. dxc5 Nxc5 20.
Rh4 Qe7 21. Nd4 Bc7 22. b4 Nce4 23. Rxe4 Nxe4 24. Qxe4 Qxb4+ 25. Nb
f**********r
发帖数: 18251
8
来自主题: Chess版 - 7th ch-Euro Erenburg,S--Kovacevic,B
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.08"]
[Round "5"]
[White "Erenburg,S"]
[Black "Kovacevic,B"]
[Result "1/2-1/2"]
[WhiteElo "2573"]
[BlackElo "2463"]
[EventDate "2006.04.04"]
[ECO "C10"]
1. e4 e6 2. d4 d5 3. Nd2 dxe4 4. Nxe4 Nd7 5. Nf3 Ngf6 6. Nxf6+ Nxf6 7. c3
c5 8. Ne5 a6 9. Be3 Qc7 10. Qa4+ Nd7 11. O-O-O cxd4 12. Nxd7 Bxd7 13. Qxd4
e5 14. Qb6 Qxb6 15. Bxb6 Rc8 16. Be2 Bc5 17. Bxc5 Rxc5 18. Rhe1 Ke7 19. f4
Bc6 20. Bf1 e4 21. b4 Rh5 22. h3 f5 23. c4 Rh4 24. g3 Rh6 25. g4
f**********r
发帖数: 18251
9
来自主题: Chess版 - 7th ch-Euro Fressinet,L--Cvitan,O
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.07"]
[Round "4"]
[White "Fressinet,L"]
[Black "Cvitan,O"]
[Result "1-0"]
[WhiteElo "2625"]
[BlackElo "2528"]
[EventDate "2006.04.04"]
[ECO "B80"]
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. g3 e6 7. Bg2 Be7 8.
O-O Qc7 9. Be3 O-O 10. g4 Nc6 11. g5 Nd7 12. f4 Re8 13. Qh5 g6 14. Qh3 Bf8
15. a4 Bg7 16. Rad1 Nxd4 17. Rxd4 Nb6 18. e5 d5 19. Bf2 Bd7 20. f5 gxf5 21.
Rh4 Nc8 22. Rxh7 Ne7 23. Bd4 Qc4 24. Rf4 Ng6 25. Rxg7+ Kxg7 26. Qh6+
f**********r
发帖数: 18251
10
来自主题: Chess版 - 7th ch-Euro Guseinov,G--Cvitan,O
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.14"]
[Round "10"]
[White "Guseinov,G"]
[Black "Cvitan,O"]
[Result "1-0"]
[WhiteElo "2607"]
[BlackElo "2528"]
[EventDate "2006.04.04"]
[ECO "B80"]
1. e4 c5 2. Nc3 d6 3. Nf3 a6 4. d4 cxd4 5. Nxd4 e6 6. g3 Nf6 7. Bg2 Qc7 8.
O-O Be7 9. f4 Nc6 10. Be3 O-O 11. Kh1 Bd7 12. Nb3 b5 13. a3 Rad8 14. Qf3
Be8 15. Rad1 b4 16. axb4 Nxb4 17. Nd4 Nc6 18. g4 Nxd4 19. Bxd4 Bc6 20. g5
Nd7 21. Qh5 e5 22. Be3 exf4 23. Rxf4 Ne5 24. Rh4 h6 25. Rh3 Rb8 26. Bc1 R
f**********r
发帖数: 18251
11
来自主题: Chess版 - 7th ch-Euro Guseinov,G--Heberla,B
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.05"]
[Round "2"]
[White "Guseinov,G"]
[Black "Heberla,B"]
[Result "1/2-1/2"]
[WhiteElo "2607"]
[BlackElo "2487"]
[EventDate "2006.04.04"]
[ECO "C00"]
1. e4 e6 2. Nc3 d5 3. Nf3 Nf6 4. e5 Ne4 5. Qe2 Nxc3 6. dxc3 c5 7. h4 Nc6 8.
h5 h6 9. Rh4 Bd7 10. Rf4 Qb6 11. b3 O-O-O 12. Bb2 g5 13. hxg6 fxg6 14.
O-O-O g5 15. Rg4 Be8 16. c4 Bh5 17. Rg3 Bg7 18. cxd5 exd5 19. Qb5 d4 20.
Ba3 Bxe5 21. Nxe5 Nxe5 22. f3 Qxb5 23. Bxb5 a6 24. Be2 Nd7 25. Rh1 Bf7
f**********r
发帖数: 18251
12
来自主题: Chess版 - 7th ch-Euro Kosintseva,T--Kozul,Z
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.04"]
[Round "1"]
[White "Kosintseva,T"]
[Black "Kozul,Z"]
[Result "0-1"]
[WhiteElo "2479"]
[BlackElo "2600"]
[EventDate "2006.04.04"]
[ECO "B67"]
1. e4 c5 2. Nf3 Nc6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 d6 6. Bg5 e6 7. Qd2 a6 8.
O-O-O Bd7 9. f3 Rc8 10. Kb1 Be7 11. g4 Ne5 12. Be3 b5 13. g5 Nh5 14. Bd3 g6
15. f4 Nxd3 16. cxd3 b4 17. Nce2 e5 18. fxe5 dxe5 19. Nf3 Bd6 20. d4 Bc6
21. d5 Bb5 22. Ng3 Nxg3 23. hxg3 a5 24. Rh4 Qc7 25. Nh2 Qc4 26. b3 Qe2
f**********r
发帖数: 18251
13
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.05"]
[Round "2"]
[White "Meier,Geo"]
[Black "Mastrovasilis,D"]
[Result "0-1"]
[WhiteElo "2424"]
[BlackElo "2573"]
[EventDate "2006.04.04"]
[ECO "B46"]
1. e4 c5 2. Nf3 e6 3. d4 cxd4 4. Nxd4 Nc6 5. Nc3 a6 6. Nxc6 bxc6 7. Bd3 d5
8. O-O Nf6 9. Re1 Be7 10. e5 Nd7 11. Qg4 g6 12. Bh6 Rb8 13. b3 Rb4 14. Qf3
Rh4 15. Bf4 Bb4 16. Na4 Bxe1 17. Rxe1 O-O 18. Qe3 Qa5 19. c3 c5 20. Qg3
Rxf4 21. Qxf4 Bb7 22. Re3 Qc7 23. Qg5 Bc6 24. Qh6 Rd8 25. Rh3 Qxe5 2
f**********r
发帖数: 18251
14
来自主题: Chess版 - 7th ch-Euro Michalczak,T--Bartel,Mat
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.04"]
[Round "1"]
[White "Michalczak,T"]
[Black "Bartel,Mat"]
[Result "0-1"]
[WhiteElo "2361"]
[BlackElo "2524"]
[EventDate "2006.04.04"]
[ECO "B19"]
1. e4 c6 2. d4 d5 3. Nc3 dxe4 4. Nxe4 Bf5 5. Ng3 Bg6 6. h4 h6 7. Nf3 Nf6 8.
Ne5 Bh7 9. Bd3 Nbd7 10. Bxh7 Nxe5 11. dxe5 Qa5+ 12. Kf1 Nxh7 13. e6 Qd5 14.
exf7+ Qxf7 15. h5 Nf6 16. Rh4 e5 17. Qe2 O-O-O 18. Be3 Nd5 19. Bxa7 b6 20.
c4 Nf4 21. Qxe5 Qxc4+ 22. Ne2 Qxe2+ 23. Qxe2 Nxe2 24. Bxb6 Rd2 25
f**********r
发帖数: 18251
15
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.10"]
[Round "7"]
[White "Petrosian,TL"]
[Black "Mastrovasilis,A"]
[Result "1/2-1/2"]
[WhiteElo "2558"]
[BlackElo "2508"]
[EventDate "2006.04.04"]
[ECO "C67"]
1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. O-O Nxe4 5. Re1 Nd6 6. Nxe5 Be7 7. Bd3
Nxe5 8. Rxe5 O-O 9. Nc3 c6 10. Qf3 Ne8 11. b3 d5 12. Bb2 Bd6 13. Rh5 g6 14.
Nxd5 cxd5 15. Rxh7 d4 16. Bxd4 Bxh2+ 17. Rxh2 Qxd4 18. Re1 Nf6 19. c3 Qd6
20. Bc4 Rb8 21. Rh4 Bf5 22. Rd4 Qc6 23. Qxc6 bxc6 24. Rd6 Ne
f**********r
发帖数: 18251
16
来自主题: Chess版 - 7th ch-Euro Zueger,B--Kuzubov,Y
[Event "7th ch-Euro"]
[Site "Kusadasi TUR"]
[Date "2006.04.10"]
[Round "7"]
[White "Zueger,B"]
[Black "Kuzubov,Y"]
[Result "0-1"]
[WhiteElo "2433"]
[BlackElo "2544"]
[EventDate "2006.04.04"]
[ECO "D13"]
1. c4 c6 2. Nf3 d5 3. e3 Nf6 4. d4 Bf5 5. cxd5 cxd5 6. Nc3 Nc6 7. Ne5 Nd7
8. g4 Be6 9. Nd3 h5 10. gxh5 Bf5 11. Bg2 e6 12. Nf4 Bd6 13. e4 Bxe4 14.
Nxe4 dxe4 15. Bxe4 Nf6 16. Bxc6+ bxc6 17. Qf3 Rc8 18. h6 Rxh6 19. Nd3 Rh4
20. Be3 Qa5+ 21. Ke2 Nd5 22. Bg5 Rxd4 23. Rhd1 Qb5 24. Be3 Rxd3 25. Rxd3
Qxb2
f**********r
发帖数: 18251
17
来自主题: Chess版 - 93rd ch-GBR Ashton,A--Fowler,S
[Event "93rd ch-GBR"]
[Site "Swansea WLS"]
[Date "2006.08.17"]
[Round "11"]
[White "Ashton,A"]
[Black "Fowler,S"]
[Result "0-1"]
[WhiteElo "2329"]
[BlackElo "2181"]
[EventDate "2006.08.07"]
[ECO "C18"]
1. e4 e6 2. d4 d5 3. Nc3 Bb4 4. e5 Ne7 5. a3 Bxc3+ 6. bxc3 c5 7. h4 Qa5 8.
Bd2 Nbc6 9. h5 Bd7 10. Nf3 O-O-O 11. h6 gxh6 12. Rxh6 Rdg8 13. g3 Nf5 14.
Rh2 Qa4 15. dxc5 Qe4+ 16. Qe2 Qxc2 17. Qd3 Qa4 18. Bh3 Na5 19. Bxf5 exf5
20. Nd4 Nb3 21. Nxb3 Qxb3 22. Rh4 Rg4 23. Rxg4 fxg4 24. a4 Qc4 25. Qxc4
dxc4
f**********r
发帖数: 18251
18
来自主题: Chess版 - 93rd ch-GBR Davies,Ni--Cobb,J
[Event "93rd ch-GBR"]
[Site "Swansea WLS"]
[Date "2006.08.17"]
[Round "11"]
[White "Davies,Ni"]
[Black "Cobb,J"]
[Result "1-0"]
[WhiteElo "2512"]
[BlackElo "2370"]
[EventDate "2006.08.07"]
[ECO "A29"]
1. c4 Nf6 2. Nc3 e5 3. Nf3 Nc6 4. g3 d6 5. Bg2 g6 6. d4 exd4 7. Nxd4 Bd7 8.
b3 Bg7 9. Bb2 O-O 10. O-O Re8 11. Nc2 Bf5 12. Ne3 Rxe3 13. fxe3 Ng4 14. Qd2
Nxe3 15. Qxe3 Bd4 16. Qxd4 Nxd4 17. Rad1 Qg5 18. Kh1 c5 19. Nd5 Qh6 20. Rf4
Be6 21. Rdf1 Nxe2 22. Rh4 Qd2 23. Nf6+ Kf8 24. Nxh7+ Ke7 25. Bf6+ Kd7 2
f**********r
发帖数: 18251
19
来自主题: Chess版 - World Blitz Zoler,D--Bacrot,E
[Event "World Blitz"]
[Site "Rishon Le Zion ISR"]
[Date "2006.09.07"]
[Round "3"]
[White "Zoler,D"]
[Black "Bacrot,E"]
[Result "1-0"]
[WhiteElo "2455"]
[BlackElo "2707"]
[EventDate "2006.09.07"]
[ECO "B00"]
1. d4 b6 2. e4 Bb7 3. Bd3 Nc6 4. c3 e5 5. d5 Nce7 6. c4 Ng6 7. g3 c6 8. h4
Nf6 9. h5 Bb4+ 10. Kf1 Ne7 11. h6 gxh6 12. Bxh6 Rg8 13. Qf3 Rg6 14. a3 Bc5
15. Rh4 b5 16. Nd2 Bd4 17. d6 Nc8 18. Ne2 Bxb2 19. Ra2 Qa5 20. Rxb2 Qxa3
21. Rb3 Qxd6 22. cxb5 Nb6 23. Be3 Rc8 24. Bxb6 axb6 25. Nc4 Qe6 26. Qf
I*******e
发帖数: 1879
20
来自主题: Programming版 - [合集] 一个依赖于平台的memory问题
☆─────────────────────────────────────☆
gandjmitbbs (Nothing) 于 (Wed Jan 21 14:36:51 2009) 提到:
#include
#include
#include
int main(int argc, char* argv[]) {
char* str = "hello";
char* str1 = new char [strlen(str)+1];
strcpy(str1, str);
char* str2 = str1;
printf("str1: %s, str2: %s\n", str1, str2);
delete [] str1;
delete [] str2;
}
RH3上,输出结果,退出,一切正常。
RH4上:
str1: hello, str2: hello
*** glibc detected *** double free or corruption (fastt
(共0页)