d_array2.c
资源名称:leda.tar.gz [点击查看]
上传用户:gzelex
上传日期:2007-01-07
资源大小:707k
文件大小:0k
源码类别:
数值算法/人工智能
开发平台:
MultiPlatform
- #include <LEDA/d_array.h>
- main()
- {
- d_array<double,float> N(0);
- double s;
- while (cin >> s) N[s]++;
- forall_defined (s,N) cout << s << " " << N[s] << "n";
- return 0;
- }