码迷,mamicode.com
首页 >  
搜索关键字:fp    ( 907个结果
发送数据包
【实验代码】//sendpacket.cpp:定义控制台应用程序的入口点。//#include"stdafx.h"#include<stdlib.h>#include<stdio.h>#include<pcap.h>voidmain(intargc,char**argv){pcap_t*fp;pcap_if_t*d;pcap_if_t*alldevs;intinum;charerrbuf[PCAP_ERRBUF_SIZE];u_cha..
分类:其他好文   时间:2016-11-17 02:38:15    阅读次数:210
C文件操作
注:来自https://github.com/yaouser/C 1.fopen是文件的打开函数。语法如下:fp=fopen(文件名,使用文件方式) 文件名:指定磁盘文件的路径。 返回值:返回FILE类型的指针。 文件使用方式如下:"r"(只读)"w"(只写)"a"(追加)"rb"(只读):打开一个 ...
分类:其他好文   时间:2016-11-14 16:55:38    阅读次数:147
c++异常1
include<iostream> #include<cstdio> usingnamespacestd; classA{ public: A(void){cout<<"A::A()"<<endl;} ~A(void){cout<<"A::~A()"<<endl;} }; intfunc3(void){ Aa; FILE*fp=fopen("none.txt","r"); if(!fp){ throw-1;//抛出异常,跳转..
分类:编程语言   时间:2016-11-04 10:00:12    阅读次数:205
fopen和fopen_s用法的比较
fopen和fopen_s用法的比较 fopen 和 fopen_s fopen用法: fp = fopen(filename,"w")。 fopen_s用法:,须定义另外一个变量errno_t err,然后err = fopen_s(&fp,filename,"w")。 返回值: fopen打开文 ...
分类:其他好文   时间:2016-10-30 00:46:09    阅读次数:147
MFC的GUI窗口使用Console输出函数printf(AllocConsole后,使用GetStdHandle取得句柄,然后就可以操作了)
在GUI程序中使用printf函数: [cpp] view plain copy #include <io.h> #include <fcntl.h> void InitConsole() { int nRet= 0; FILE* fp; AllocConsole(); nRet= _open_os ...
分类:编程语言   时间:2016-10-27 07:36:32    阅读次数:349
WC项目
#include <stdio.h>#include <stdlib.h>#include <string.h> FILE *fp; void main() { int zifu=0,danci=0,kongbai=0,duanluo=0; char ch; char fname[1000]; pr ...
分类:其他好文   时间:2016-10-20 21:57:42    阅读次数:140
ansible控制windows安装及运行error与解决方法
Q1:安装kerberos报错$sudopipinstallkerberos runningbuild_ext building‘kerberos‘extension creatingbuild creatingbuild/temp.linux-x86_64-2.7 creatingbuild/temp.linux-x86_64-2.7/src gcc-pthread-fno-strict-aliasing-DNDEBUG-g-fwrapv-O2-Wall-Wstrict-prototypes-fP..
分类:Windows程序   时间:2016-10-18 23:44:40    阅读次数:5215
117 FP页面无法查看
用户表示117 FP页面无法查看,提示如下错误: 跟进: 1.进入FP服务器可看到以下错误 这个错误的框就表示FP的一个进程报错,自动断掉了,需要重新跑一次EXIT,INIT,PLAN,EXPORT,但不要跑IMPORT 千万千万不要跑IMPORT,不然数据是不对的 ...
分类:其他好文   时间:2016-10-12 11:24:51    阅读次数:129
判断浏览器
转载:http://fp-moon.iteye.com/blog/1142629 使用navigator.userAgent来判断浏览器类型 转载:http://fp-moon.iteye.com/blog/1142629 使用navigator.userAgent来判断浏览器类型 使用naviga ...
分类:其他好文   时间:2016-10-11 18:59:05    阅读次数:178
Pointer 零散记录
2016.10.11 32位系统中指针变量都占4个字节 只有在提取数据的时候才按照类型来分配。 fp=(uint8_t*)&f; 这里只是指向相同的地址 和数据 1、2:创建两个指针变量 fp ap 3: ap指向a 因为ap是uint8_t 类型的 所以强制转换 才能赋值 4:相同道理 5:实参 ...
分类:其他好文   时间:2016-10-11 13:56:52    阅读次数:161
907条   上一页 1 ... 41 42 43 44 45 ... 91 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!