码迷,mamicode.com
首页 >  
搜索关键字:comment    ( 4550个结果
LintCode-Longest Common Subsequence
Given two strings, find the longest comment subsequence (LCS).Your code should return the length of LCS.ExampleFor "ABCD" and "EDCA", the LCS is "A" (...
分类:其他好文   时间:2015-01-01 00:12:17    阅读次数:122
tinyhttpd跨平台代码兼容linux和solaris
tinyhttpd是超轻量级的web服务器,代码量只有500余行,因此非常适合学习web服务器的工作原理。然而,代码是在solaris下编写,不过作者在httpd.c中作出linux下的编译的修改方法,如下: This program compiles for Sparc Solaris 2.6.   To compile for Linux:   1) Comment out the #i...
分类:Web程序   时间:2014-12-30 22:12:50    阅读次数:333
linux 单词
syntax 语法arguments 参数separated 区分letter 字母preceded 优于memorize 记忆chapter 章节/ forward slash \ back slash// comment; semicolon - hypen-- dash* quotation#...
分类:系统相关   时间:2014-12-30 15:04:20    阅读次数:179
【转】朱兆祺带你一步一步学习嵌入式(连载)
原文网址:http://bbs.elecfans.com/jishu_357014_2_1.html#comment_top从最初涉及嵌入式Linux开始到现在,深深的知道嵌入式的每一步学习都是举步维艰。从去年11月份开始,我就着手整理各种学习资料,希望推动嵌入式学习的前进贡献自己微不足道的一份力量...
分类:其他好文   时间:2014-12-28 00:19:20    阅读次数:1407
VC网络编程 Socket套接字编程
基于TCP的Socket编程 TCP服务器: #include //包含头文件 #include #include #pragma comment(lib,"WS2_32.lib") //显式连接套接字库 int main() //主函数开始 { WSADATA data; //定义WSADATA结构体对象 WORD w=MAKEWORD(2,0); //定义版本...
分类:其他好文   时间:2014-12-26 09:40:36    阅读次数:249
mysql 数据插入时的问题
问题:在实现json串插入到数据库的时候发现中文utf-8传入的。但到数据中的时候反斜杠\就不见了,导致后面显示的时候也不能正常显示。解决方法:comment=comment.replace("\\","\\\\")(python)如此插入到数据中能保证反斜杠\存在。
分类:数据库   时间:2014-12-25 17:40:02    阅读次数:112
OpenGL用法暨第一个OpenGL程序
//OpenGL的书写规范 暨我的第一个OpenGL程序 //有了框架,其他就什么都好说了 #include "..\H\glut.h"  #pragma comment(lib, "glut.lib") void init(void) { glClearColor(1.0, 1.0, 0.0, 0.0);//设置主窗口的背景颜色 glColor3f(1.0f,0.0f,0.0f...
分类:其他好文   时间:2014-12-25 16:30:57    阅读次数:140
【用户】create_user_with_sshkey.sh
【用户】create_user_with_sshkey.sh#!/bin/bash #$ssh-keygen-trsa-b2048-Cyou_comment_here-ffilename #createuserwithsshpublickey #20140214 username=‘yourname‘ useradd${username} id${username} [-d/home/${username}/.ssh]||mkdir-p/home/${username}/.ssh cat<&..
分类:其他好文   时间:2014-12-24 18:35:37    阅读次数:165
windows下面的网络编程
客户端的程序#include "stdafx.h" #include #include #pragma comment(lib,"ws2_32.lib") int main(int argc, char* argv[]) { WORD sockVersion = MAKEWORD(2,2); WSADATA data; if(WSAStartup(sockVe...
分类:Windows程序   时间:2014-12-22 14:29:19    阅读次数:206
(转)VLC播放RTP打包发送的.264文件
VLC播放RTP打包发送的.264文件1,要有一个发送RTP包的264文件的服务器;具体代码如下:rtp.h#include #pragma comment(lib,"ws2_32.lib") #define PACKET_BUFFER_END (unsigned int)0...
分类:其他好文   时间:2014-12-22 10:56:08    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!