VS2010中如何添加“依赖","库目录","包含目录"1. 添加编译所需要(依赖)的 lib 文件[解决方案资源管理器]“项目->属性->配置属性->连接器->输入->附加依赖项”里填写“winsock.lib”,多个 lib 以空格隔开。(等同于“#pragma comment(lib, "wi...
分类:
其他好文 时间:
2014-09-22 12:34:02
阅读次数:
197
Grade
Problem Description
Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and ask him to grade each mushroom according to its weight. Suppose the...
分类:
其他好文 时间:
2014-09-22 11:32:12
阅读次数:
281
Problem Description
Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and ask him to grade each mushroom according to its weight. Suppose the weight of a mu...
分类:
其他好文 时间:
2014-09-22 02:09:11
阅读次数:
238
Problem Description
Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and ask him to grade each mushroom according to its weight. Suppose the weight of...
分类:
其他好文 时间:
2014-09-21 19:16:31
阅读次数:
303
最长上升子序列+最长递减子序列-反复的方法不严谨,貌似有人已经找到反例了,至于为什么那种方法能ac应该是測试数据弱吧下面才是最标准的做法//#pragma comment(linker, "/STACK:102400000,102400000")#include#include#include#in...
分类:
其他好文 时间:
2014-09-21 13:40:00
阅读次数:
316
#pragma pack(4)typedef struct{ char buf[3]; word a;}kk;#pragma pack()对齐的原则是min(sizeof(word ),4)=2,因此是2字节对齐,而不是我们认为的4字节对齐。这里有三点很重要:1.每个成员分别按自己的方式对齐,并能最...
分类:
其他好文 时间:
2014-09-21 13:09:20
阅读次数:
217
本文转载自:http://blog.csdn.net/jcodeer/article/details/1811343'''Tkinter教程之Text篇(1)''''''1.创建第一个Text'''fromTkinterimport*root=Tk()t=Text(root)t.pack()root...
分类:
其他好文 时间:
2014-09-21 13:05:50
阅读次数:
303
本文转载自:http://blog.csdn.net/jcodeer/article/details/1813077'''Tkinter教程之Pack篇'''#Pack为一布局管理器,可将它视为一个弹性的容器'''1.一个空的widget'''#不使用pack#-*-coding:cp936-*-f...
分类:
其他好文 时间:
2014-09-21 12:52:20
阅读次数:
341
【1】内存对齐方式
C++代码:
#pragma pack(push)
#pragma pack(1)
typedef struct _testStru2
{
int iVal;
char cVal;
__int64 llVal;
}testStru2;
#pragma pack(pop)EXPORTDLL_API void Struct_PackN( testStru2 *p...
分类:
编程语言 时间:
2014-09-20 14:09:17
阅读次数:
235
主要是通过禁用浏览器相关头信息,只需要在servlet的doget或dopost方法中加入如下语句即可
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("expires", -1);...
分类:
编程语言 时间:
2014-09-20 13:48:38
阅读次数:
191