1.依赖头文件
#include
#include
2.函数定义:
int truncate(const char *path,off_t length);
int ftruncate(int fd,off_t length);
函数说明:
The truncate() and ftruncate() functions cause the regular file named...
分类:
系统相关 时间:
2014-09-14 19:20:57
阅读次数:
289
class Solution {#define SINGLE 1#define MULTIP 2public: bool isMatch(const char *s, const char *p) { if (s == NULL || p == NULL) return true...
分类:
其他好文 时间:
2014-09-14 01:20:56
阅读次数:
261
正调试着程序,突然不能调试了。重启了也没用,还是报错:无法启动程序 C:\Program Files(X86)\IIS Express\iisexpress.exe. 和之前无法启动IIS Express又不同,这Asp.Net 开发服务器却已经启动了。 点开,能够浏览页面,不能调试,附加...
分类:
其他好文 时间:
2014-09-13 00:45:34
阅读次数:
415
给出两点,求经过这两点的正n边形的最小面积
大白鼠上说要注意精度,我没觉得精度有什么影响,然后就过了
我的做法:
相当于这两点构成的线段是正n边形的最长弦
我的代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using names...
分类:
其他好文 时间:
2014-09-11 22:26:22
阅读次数:
215
ok,先说说我学node的目的:用起来很舒服... 请刮开黑色区域。 接着,我介绍下node+express+mongodb这三个东西,我怕有人不晓得这是啥。 node:是运行在服务器端的程序语言,表面上看过去就是javascript一样的东西...
分类:
数据库 时间:
2014-09-11 14:00:52
阅读次数:
285
前提是搭建好了环境,node,npm,express;(推荐全局安装)开始用express创建一个基础工程:express –t ejs microblog进入文件夹之后npm-install(自动安装好要用的依赖)这个时候,用浏览器访问localhost:3000,就可以出来一个欢迎界面了,这里简...
分类:
Web程序 时间:
2014-09-10 15:27:40
阅读次数:
289
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
编程语言 时间:
2014-09-10 05:07:09
阅读次数:
200
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2014-09-09 18:01:59
阅读次数:
146
前言本教程将为您讲解使用微软的Visual Studio Express 2012或Visual Web Developer 2010 Express Service Pack 1 来建立一个ASP.NET MVC4 Web应用程序所需要的基础知识。建议您使用Visual Studio 2012,你...
分类:
Web程序 时间:
2014-09-09 15:58:58
阅读次数:
276