码迷,mamicode.com
首页 >  
搜索关键字:r语言中的 vector    ( 11651个结果
ArrayList
ArrayList相当于STL里面的Vector。 {CSDN:CODE:505358} 下面是成员方法。 Method Summary  boolean add(E e)              Appends the specified element to the end of this list. ...
分类:其他好文   时间:2014-11-02 19:42:48    阅读次数:230
水仙花数
水仙花数描述请判断一个数是不是水仙花数。 其中水仙花数定义各个位数立方和等于它本身的三位数。输入有多组测试数据,每组测试数据以包含一个整数n(100 #include using namespace std; int main() { vector ivec; int...
分类:其他好文   时间:2014-11-02 17:49:42    阅读次数:159
hdu 5089
1 #include 2 #include 3 #include 4 #include 5 #define inf 1e-8 6 using namespace std; 7 vector vec; 8 int main() 9 {10 int cas,n,k,posi;11 ...
分类:其他好文   时间:2014-11-02 13:45:36    阅读次数:243
重构_改善既有代码的设计第一章重构例子
/** * */package statedesignmodel;import java.util.Enumeration;import java.util.Vector;/** * @author Administrator * */public class Customer { priv...
分类:其他好文   时间:2014-11-01 18:58:33    阅读次数:125
简单的vector实现
学习c++中,看完书后,最近苦于不知道下一步该怎么办了,就翻翻STL源码剖析中的各种容器,想重新实现一遍。很多问题之前看的时候还不知道是怎么回事,当自己写的时候才发现许多应该注意与理解的。这个vector类写得特别简单,只实现了其中的一部分功能,因为没有使用iterator,发现一些函数不太好写,而且封装性极差,同时,只能存放内置类型。在这些问题中,希望自己以后会好好重写一下。 这个程序有点小情...
分类:其他好文   时间:2014-11-01 17:51:23    阅读次数:157
codeforces 425C
题意:给定长度为n,m 2 using namespace std; 3 #define vii vector::iterator 4 #define M0(a) memset(a, 0, sizeof(a)) 5 #define repf(i, a, b) for (int i = (a); i ...
分类:其他好文   时间:2014-11-01 16:04:36    阅读次数:194
SVM算法
转载自http://blog.csdn.net/sunanger_wang/article/details/7887218又有很长的一段时间没有更新博客了,距离上次更新已经有两个月的时间了。其中一个很大的原因是,不知道写什么好-_-,最近一段时间看了看关于SVM(Support Vector Mac...
分类:编程语言   时间:2014-11-01 15:59:49    阅读次数:273
[wxWidgets]_[初级]_[不常见但实用的类wxCmdLineParser]
1. 有时候需要构造命令行字符串传递給函数调用,比如CreateProcess,如果参数是动态的,那么就得使用类似std::vector添加单个参数,之后拼接为一个string. wx有给这类处理类,就是wxCmdLineParser ,它既能拼接为字符串,又可以把字符串分解为一个参数数组。...
分类:其他好文   时间:2014-10-31 23:45:05    阅读次数:366
PAT 1077 Kuchiguse
#include #include #include #include using namespace std;int main() { int n = 0; cin>>n; getchar(); vector strs; for (int i=0; i= len) b...
分类:其他好文   时间:2014-10-31 23:27:34    阅读次数:277
uva 10474 Where is the Marble?[ vector ]
思路:sort+low_bound()二分 #include #include #include #include #include #include using namespace std; int main() { vectorv; int n,m; int cas=1; while(scanf("%d%d",&n,&m),n||m) ...
分类:其他好文   时间:2014-10-31 22:19:20    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!