c语言
linux
memcpy
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
int main(void)
{
c……继续阅读 »
10年前 (2015-07-10) 2956浏览 0评论
0个赞
今天看了谭浩强的书,用VC6.0实现了其中一个程序段,如下:
#include<stdio.h>
void main()
{
float f;
double d;
d=123.456789e100;
f=d;
//f=1e1;
printf("f=%f\n",f);
printf("d=%f\n",d);
}
按照以前……继续阅读 »
10年前 (2015-07-10) 2791浏览 0评论
0个赞
在研究MD5算法,发现它的头文件MD5.h有:
/* MD5 context. */
typedef struct {
UINT4 state[4]; /* state (ABCD) */
UINT4 count[2]; /* number of bits……继续阅读 »
10年前 (2015-07-10) 1609浏览 0评论
0个赞
NULL指针可以FREE多次吗 为什么; NULL指针可以FREE多次吗 为什么
当然可以。
4.10.3.2 The free function
Synopsis
#include <stdlib.h>
void free(void *ptr);
Description
Th……继续阅读 »
10年前 (2015-07-10) 1791浏览 0评论
0个赞
链表
数据结构
C
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int number;
struct node *next;
}Node;
void Link_initialize(Node *plist);
int main(voi……继续阅读 »
10年前 (2015-07-10) 1904浏览 0评论
1个赞
首先对自己编写的Hello.cpp编译成so
g++ -fPIC -D_REENTRANT -I/usr/jdk1.8/include -I/usr/jdk1.8/include/linux -c Hello.cpp
g++ -shared Hello.o -o libHello.so
然后因为Hello.cpp调用了第三方库,所以进行了以……继续阅读 »
10年前 (2015-07-10) 2201浏览 0评论
0个赞
很多在线网站提供格式化HTML代码的工具,那么如何在C#中集成格式化HTML代码的功能呢?如下代码提供C#格式化HTML代码帮助类:
public class HtmlFormater
{
public static string ConvertToXml(string str, bool bLineAndIndent)
{
XmlDocument docu……继续阅读 »
10年前 (2015-07-10) 3439浏览 0评论
0个赞
#ziplib (SharpZipLib, 之前叫 NZipLib) 是一个用C# 专门为.Net平台编写的 Zip, GZip, Tar 和 BZip2 类库。它作为程序集 (可安装在 gac 中)来实现,因此可以很容易地并入其他项目(任何.NET 语言)。#ziplib 的创建者就这么说:“我已经移植zip 库到 C# 因为我需要 gzip/……继续阅读 »
10年前 (2015-07-08) 10262浏览 0评论
1个赞
.NET Spring 调试程序,错误信息如下:can not lodad icsharpcode.sharpziplib
“/SC”应用程序中的服务器错误。未能加载文件或程序集“ICSharpCode.SharpZipLib”或它的某一个依赖项。参数错误。 (异常来自 HRESULT:0x80070057 (E_INVALIDARG))
说明: 执行当前 ……继续阅读 »
10年前 (2015-07-07) 6909浏览 0评论
0个赞