现在位置: 首页 > gabby发表的所有文章
fatal error C1083: Cannot open precompiled header file: 'Debug/HelloWorld.pch': No such file or directory 几种可以尝试的途径: 1)单独编译StdAfx.cpp (即按Ctrl+F7) 2)编译所有(F7) 3)在工程-设置-c++-最下面的工程选项里去掉××。pch文件 4)在工程-设置-c++-在分类里选择预编译头文件,选择自动使用预补偿页眉,或者选择不使用预补偿头 补充知识: 预编译头文件(一般扩展名为.PCH),是把一个工程中较稳定的代码预先编译好放在一个文件(.PCH)里.这些预先编译好的代码可以是任何的C/C++代码--甚至可以是inline函数,只它们......
阅读全文
  • 02月
  • 18日
综合 ⁄ 共 2288字 评论关闭
Distance Statistics Time Limit: 2000MS   Memory Limit: 64000K Total Submissions: 1660   Accepted: 528 Case Time Limit: 1000MS Description Frustrated at the number of distance queries required to find a reasonable route for his cow marathon, FJ decides to ask queries from which he can learn more information. Specifically, he supplies an integer K (1 <= K <= 1,000,000,000) and wants to know how many pairs of farms lie at a distance at most K from each other (distance is m......
阅读全文
  • 12月
  • 23日
综合 ⁄ 共 1330字 评论关闭
点击打开链接 有向图 把强联通分量缩点后得到一个DAG,然后DP。 </pre><pre name="code" class="cpp">#include <cstdio> #include <cstring> #include <algorithm> #include <stack> #include <vector> #include <queue> using namespace std; const int maxn = 1000 + 10; vector<int> G[maxn]; int dfn[maxn], low[maxn], sccno[maxn], dfs_clock, scc_cnt; stack<int> S; void dfs(int u) { dfn[u] = low[u] = ++dfs_clock; S.push(u); for(int i......
阅读全文
  • 06月
  • 10日
综合 ⁄ 共 12698字 评论关闭
ENGINE ====== With OpenSSL 0.9.6, a new component was added to support alternative cryptography implementations, most commonly for interfacing with external crypto devices (eg. accelerator cards). This component is called ENGINE, and its presence in OpenSSL 0.9.6 (and subsequent bug-fix releases) caused a little confusion as 0.9.6** releases were rolled in two versions, a "standard" and an "engine" version. In development for 0.9.7, the ENGINE code has been mer......
阅读全文
  • 06月
  • 06日
综合 ⁄ 共 1483字 评论关闭
UDP客户端源程序 #include   <stdio.h> #include   <winsock2.h> #pragma   comment(lib,   "WS2_32.lib") #define   BUF_SIZE         1024 #define   SERVER_IP       "127.0.0.1" #define   SERVER_PORT   5678 int   main(int   argc,   char**   argv) {         WSADATA   wsaData;         SOCKET     socketC;         SOCKADDR_IN   serverAddr;         char   sendbuf[BUF_SIZE]   =   "Hello   UDP   World!";         WSAStartup(MAKEWORD(1,1),   &wsaData);         socketC   =   socket(AF_I......
阅读全文
  • 05月
  • 19日
综合 ⁄ 共 688字 评论关闭
出现这个问题一般是内存申请不够,释放内存时出现错误;示例: int main() {      ........... i = ListEmpty(L); printf("L是否为空:i = %d(1:是 0:否)\n", i); ClearList(L);-- DAMAGE:after  Normal block(#xx)  printf("清空L后: L = "); ............ } void ClearList(LinkList L) // 不改变L {  // 初始条件:线性表L已存在。操作结果:将L重置为空表 LinkList p, q; p = L->next; // p指向第一个结点 while(p) // 没到表尾 { q = p->next; free(p);-- 释放内存时溢出 p = q; } L->next = NULL; ......
阅读全文
  • 05月
  • 14日
综合 ⁄ 共 23字 评论关闭
请选择所在省份 直辖市 陕西省 甘肃省 请选择所在城市
阅读全文
  • 02月
  • 05日
综合 ⁄ 共 5922字 评论关闭
aop编程 aop(aspect oriented programming)——面向切面(方面)编程,是对所有对象或者是一类对象编程,核心是(在不增加代码的基础上,还增加新功能) 汇编(伪机器指令)面向机器,c语言(面向过程)系统软件(操作系统,数据库,杀毒软件,防火墙...),java语法(面向对象->类-对象),面向切面 spring(->aop)面向n多对象编程 aop特别提醒:aop编程,实际上在开发框架本身用的很多,在实际项目中,用的不是很多。但是将来会越来越多,这是一个趋势 将事务、日志、、安全等公共功能抽取出来 aop原理+案例 aop编程说明......
阅读全文
  • 01月
  • 28日
综合 ⁄ 共 135字 评论关闭
DateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); format.format(new Date(format.parse(str).getTime())) mysql convert( s as datetime)
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 2125字 评论关闭
这是计算机和电子的小学期结课比赛。我闲着无聊,就跟着一起做了 其实题目都比较简单。但是还是没有AK。 这里贴一道当时没有做出的题目。 Alan玩转十滴水[紫] Time Limit: 1000 ms Memory Limit: 65536 KB Description Alan最近喜欢上了一个名为十滴水的游戏。 游戏是在一个6*6的方格内进行的,每个格子上有一滴水或者没有水滴。水滴分为四个等级1~4。初始时你有十滴水,通过把水加入格子内的水滴,会让水滴升1级。你也可以把水放到空格子内,这样会在这个格子里面产生一个1级的水滴。当水滴等级大于4时则会爆裂为四个小水滴,并......
阅读全文
  • 01月
  • 11日
综合 ⁄ 共 982字 评论关闭
1,指针数组,数组指针 指针数组:存放指针的数组   数组指针:指向数组的指针 例子:指针数组 int *a[10]  数组a里面存放的是10个int 型指针   数组指针int (*a)[10]  a是指针,指向一个数组,里面存放着10个int 型变量 进行扩宽:int (*a[10])(int)   //看这阵型,肯定是一个指向函数的的指针,或者叫函数指针  我们进行分析:从a开始,右边是一个[],a是一个含有10个元素的数组,再看左边是*,是指针,表示该数组里面的元素是指针。 出了括号后,再看右边是(int) 表示每个指针指向的都是函数 里面的int 表明形参是int型  再看左......
阅读全文
  • 12月
  • 14日
综合 ⁄ 共 2810字 评论关闭
ubuntu 10.04下配置tftp服务器: 第1步: 安装tftp所需的软件。首先需要安装tftp-hpa,tftpd-hpa,前者是客户端,后者是服务程序,在终端下输入 sudo apt-get install tftp-hpa tftpd-hpa,安装tftp-hpa和tftpd-hpa。然后还需要安装xinetd,在终端下输入 sudo apt-get install xinetd,安装好xinetd。 第2步: 配置相关服务文件。进入根目录下的etc文件夹(cd /etc/),首先看目录中有没有一个xinetd.conf文件,如果没有则新建一个,有的话查看内容,看是否与下面的一致,若不一致则修改,内容如下: # Simple configuration file......
阅读全文