摘要:
Description FJ has purchased N (1 #include #include using namespace std;int a[2005],dp[2005][2005];int main(){ int n,i,j,k,l,ans; while(~scanf("%d",&n)) { for(i = 1; i<=n; i++) scanf("%d",&a[i]); memset(dp,0,sizeof(dp)); for(i = 1; i<=n; i++) dp[i]... 阅读全文
摘要:
三个小函数getdiv(); 求因子 getsum(); 求平方和 change(); 转换成该进制 #include #include #include #include #include using namespace std;int n,m,cnt,ans,num;int di[555555];char str[111111];void getdiv() { int up = sqrt(n); cnt = 0; for(int i=1; i= 10) { str[num++] = t - 10 + 'A'; } else... 阅读全文
摘要:
拷贝构造函数必须以引用的形式传递(参数为引用值)。其原因如下:当一个对象以传递值的方式传一个函数的时候,拷贝构造函数自动的被调用来生成函数中的对象。如果一个对象是被传入自己的拷贝构造函数,它的拷贝构造函数将会被调用来拷贝这个对象这样复制才可以传入它自己的拷贝构造函数,这会导致无限循环直至 栈溢出(Stack Overflow)。除了当对象传入函数的时候被 隐式调用以外,拷贝构造函数在对象被函数返回的时候也同样的被调用。 阅读全文
摘要:
导读:朋友和我说能不能写点关于营销类的文章,方便提升对互联网营销的认知。互联网营销的定义,亦可(称为:网络营销On-line Marketing或E-Marketing)互联网营销就是以互联网为主要手段进行的,为达到一定营销目的的营销活动。 互联网营销则是一种概念化的营销理论,一切的核心思想围绕着以互联网为基础的市场里,市场中的交易营销概念就是互联网营销。电子商务时刻在做市场营销,市场营销服务于电子商务,他们有一个”中间件“,就是以互联网为基础。今天就说说,互联网时代的互联网营销的个人感悟。 据新闻报道,美国60%的企业都将网络营销作为产品营销的核心策略之一。比如,作为国际上个人电脑销售排名第 阅读全文
摘要:
网上流传了很多安装插件的方法。在这里我只讲解一种方法.因为我认为这种方法有以下两个优点:第一、简单,方便安装;第二、对于自己安装的插件易于管理。我的myeclipse版本号为10.5,操作系统为win7 安装方法详细步骤:我的MyEclipse路径是:D:\MyEclipse10,下面不再重复。 从官网或其他地方下载所需安装插件的压缩包,我要安装Propedit,所以我从官网上下载了它的压缩包:jp.gr.java_conf.ussiy.app.propedit_5.3.3.zip。将下载的压缩包解压。得到两个目录,分别为:features和plugins(这两个目录里存放了安装插件的所必需的 阅读全文