快速生成折线图时,只需要修改代码中的以下数据:1、Y轴刻度个数:Ycounts2、Y轴最小刻度数:YminValue3、横坐标:数组mouth4、标题:strTopic5、用户数据:数组d6、[可选]修改背景色:代码中27行改为所需要的颜色即可完整代码:
1 using System; 2 usin...
分类:
其他好文 时间:
2014-05-07 17:18:20
阅读次数:
364
#include using namespace std;#define Max(a, b)((a
> b)? a : b)int count = 9;int nMax = Max(count++, ++count);int main(){
cout<<count<<endl; cout<<...
分类:
其他好文 时间:
2014-05-07 11:07:48
阅读次数:
242
c#的邮件服务,主要有两种。一种是利用JMail组件,进行收发。另一种是利用vs自带的stmp/pop3邮件服务,来实现。我将要讲解的是利用stmp/pop3邮件服务。原因无它。vs自己就有,无需安装插件之类。首先,我们要添加stmp/pop3邮件服务类的命名空间:using
System.Net....
分类:
其他好文 时间:
2014-05-07 03:02:13
阅读次数:
736
注:在VS2010 UPDATE1下测试通过 1
/*测试functional的bind以及相关功能*/ 2 3 #include 4 #include 5 6 using namespace std; 7
using namespace std::placeholders; 8 9 in...
分类:
其他好文 时间:
2014-05-07 02:33:16
阅读次数:
294
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 7 8
namespace Synchroniza...
分类:
其他好文 时间:
2014-05-07 02:18:18
阅读次数:
287
必须:添加引用“using Excel =
Microsoft.Office.Interop.Excel;”(手动添加引用:右键--添加引用--。net--excel)关键:创建Excel各个对象模型
private Excel.Application excel; //Excel的当前工作环境 p...
分类:
其他好文 时间:
2014-05-07 01:47:41
阅读次数:
257
#include #include #include using namespace
std;int main(){ int n;cin>>n; while(n--){ stack s; string
str;cin>>str; for(int ...
分类:
其他好文 时间:
2014-05-07 00:19:41
阅读次数:
356
这是概念学习的一个简单示例的C++代码。 1 #include 2 using
namespace std; 3 typedef enum Sky{Sunny,Rainy}Sky; 4 typedef enum
AirTemp{Warm,Cold,Cool}AirTemp; 5 type...
分类:
其他好文 时间:
2014-05-06 23:46:41
阅读次数:
689
#include
#include
using namespace std;
#define n 8
int * filler=new int[n*n];//记录填充位置
int initFiller(){//初始化填充记录器
int i,j;
for(i=0;i<n;i++){
for(j=0;j<n;j++){
*(filler+n*i+j)=0;
}
}
retur...
分类:
其他好文 时间:
2014-05-06 21:51:33
阅读次数:
323
#include
using namespace std;
class Stu
{
public:
Stu (int n,string nam);
void display();
protected:
int num; //学号
string name; //姓名
};
Stu::Stu(int n,st...
分类:
其他好文 时间:
2014-05-06 21:35:26
阅读次数:
292