#include#includeusing namespace std;int main(){
//初始化10个元素,每个值都为0 vector fvec(10); //输出 for(vector::size_type
ix=0;ix!=fvec.size();ix++) ...
分类:
其他好文 时间:
2014-05-08 18:44:26
阅读次数:
528
题目链接附上代码: 1 #include 2 #include 3 #include 4 using
namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector
&numbers, int target) ...
分类:
其他好文 时间:
2014-05-08 17:50:11
阅读次数:
253
Struts2出现错误,总是提示"There is no Action mapped for
namespace / and action name"的错误。 错误代码如下: 09:36:13,515 WARN [Dispatcher] Could
not find action or result...
分类:
移动开发 时间:
2014-05-08 10:26:18
阅读次数:
525
#include
#include
using namespace std;
class CPerson
{
protected:
char *m_szName;
char *m_szId;
int m_nSex;//0:women,1:man
int m_nAge;
public:
CPerson(char *name,char *id,int sex,int age);
voi...
分类:
其他好文 时间:
2014-05-08 08:15:08
阅读次数:
250
热身运动:1. 启动MongoDB shell => mongo.exe or
./mongo(先确保有一个mongod的实例):2. 切换到一个用于练手的namespace => use
xxxxxxx:增:db.[table].insert({[field]: [value]})查:db.[ta...
分类:
数据库 时间:
2014-05-08 07:59:42
阅读次数:
435
先上源码: 1 using System; 2 using
System.Diagnostics; 3 using System.IO; 4 using System.IO.Compression; 5 using
System.Text; 6 7 namespace TestCompress 8....
分类:
其他好文 时间:
2014-05-08 07:04:16
阅读次数:
360
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 04:44:47
阅读次数:
237
#include
using namespace std;
//节点类
template
struct QNode
{
T data;
QNode *next;
};
//队列类
template
struct LinkList
{
QNode * front;
QNode * rear;
size_t size;
};
//构造一个空队列
template
void InitQueu...
分类:
编程语言 时间:
2014-05-08 03:48:19
阅读次数:
346
定义了一个基类的指针,通过基类操纵派生类,初始化派生类对象。。粤粤大神教我的。。嘻嘻。。。
代码如下:
#include
#include
#include
using namespace std;
void menu1() // 选择积分函数功能菜单
{
cout<<" 请 选 择 被 积 函 数"<<endl;
cout<<"\n...
分类:
其他好文 时间:
2014-05-08 03:46:23
阅读次数:
289
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 03:42:17
阅读次数:
273