#include "stdafx.h"
#include <string>
#include <map>
#include <functional>
using namespace std;typedef struct S_1 {
int i;
public:
bool operator()(S_1 &s1, S_1 &s2)
{
return s1.i < s2.i;
}
bool operator<(S_1 &s2)
{
return i < s2.i;
}
// bool operator<(S_1 &s1, S_1 &s2)
// {
// return s1.i < s2.i;
// }
}S_1;int main(int argc, char* argv[])
{
S_1 S1;
// pair<string, string> p1;
S1.i = 1;
map<S_1, int> m_map1;
m_map1[S1] = 1;
// m_map1.insert();
printf("Hello World!\n");//make_pair("x", "x");
return 0;
}
解决方案 »
- wpf
- 远程调用失败,进入RpcExpect(1)语句.为什么会失败?
- 关于就业的一些迷惑,望指教,给条明路
- error LNK2001: unresolved external symbol"class fileDescriptorManager
- 请问这里InternetOpenUrl为什么老是出错?
- 请问vc中是在哪个函数中初始化某个按钮的图标样式的?
- 疑问?? return i++; 之后。。
- hook api的问题
- 如何设置CString输出结果指定其整数部分的位数
- 有个关于编译后资源修改的问题请教各位。我想得到某一个pe类型的exe里面某一个对话框模版的详细资料,怎么办??详情请进,up有分
- 请教高手 一个穿透防火墙想法的技术可行性(把TCP当UDP用)
- Vista 的Comon place在Shell API中对应什么CSIDL?
没有这种用法吧