void CWriteWnd::OpenFileDialog(){ OPENFILENAME ofn; TCHAR szFile[MAX_PATH] = _T(""); ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); o.....
流方式上传:$post_input = 'php://input';$save_path = dirname( __FILE__ );$postdata = file_get_contents( $post_input );if ( isset( $postdata ) && strlen( $po...
分类:
其他好文 时间:
2014-07-06 19:08:44
阅读次数:
177
1.函数是具有特定功能的代码段。通俗地讲,一连串语句组合在一起,实现了某一功能,我们为他们起了一个名字strlen 求字符串?长度函数,?用于求指定字符串的?长度!strcpy 字符串拷?贝函数,?用于实现字符串的赋值函数的使?用可以省去重复代码的编写,?大?大简化程序,提?高开发效率。void 空...
分类:
编程语言 时间:
2014-07-06 15:54:41
阅读次数:
185
C++类所占内存大小计算转载时请注明出处和作者联系方式文章出处:http://blog.csdn.net/chenchong08作者联系方式:vision_chen@yeah.net说明:笔者的操作系统是32位的。class A {};sizeof( A ) = ?sizeof( A ) = 1明明...
分类:
编程语言 时间:
2014-07-04 00:14:20
阅读次数:
355
Microsoft在StrSafe.h定义了新的安全字符串函数为了防止缓冲区溢出,在将一个可写缓冲区作为参数传递时,必须传递它的大小,大小可以有_countof获得,_countof获取字符数, sizeof获取字节数for example: int a[10]; // _countof(a) =....
sizeof(short int ) = 2;
测试用例
#include
int main()
{
short int a = -32768;
short int b = 0x8000;
short int c = 0xffff;
short int d = 0x8001;
printf("%d, %d, %d, %d\n", a, b, c...
分类:
编程语言 时间:
2014-07-03 17:15:54
阅读次数:
275
在这里我只放我的模板和一些我个人的“理解”。。最大流测试题:usaco草地排水EK:时间复杂度:O(VE^2)代码复杂度:最易代码:#include #include #include using namespace std;#define CLR(a) memset(a, 0, sizeof(a)...
分类:
其他好文 时间:
2014-07-02 20:54:22
阅读次数:
276
string有个成员函数,assign()可以这样:1 string str;2 str.assign(temp, sizeof(temp));
分类:
其他好文 时间:
2014-07-02 17:23:54
阅读次数:
229
题目链接:uva 11728 - Alternate
Task
题目大意:给出S,求N,要求N所有的因子和为S。
解题思路:枚举因子i,所有整除i的数和加上i。
#include
#include
const int N = 1005;
int n, c[N], v[N];
void init () {
memset(c, 0, sizeof(c));
...
分类:
其他好文 时间:
2014-07-02 16:55:04
阅读次数:
167
#include int get_thread_amount(){ int i = 0; char Buff[9]; PROCESSENTRY32 pe32; pe32.dwSize = sizeof(pe32); int processid = GetCurrentP...
分类:
编程语言 时间:
2014-07-02 13:50:40
阅读次数:
282