基本上最初的编程都会拿hello
world来说事,其实能简单的运行出它来,c的编程环境就慢慢熟悉起来了。1.现在已经基本没有纯粹的c编译环境了,都是用兼容c++的编译工具来编译c,所以创建的都是c++模板;2.在vs2008
中建立一个project(c代码)步骤:1.file——new--pro...
分类:
其他好文 时间:
2014-05-26 14:42:19
阅读次数:
203
1 #include 2 #include 3 4 int k=1; 5 int main() 6 {
7 int i=1; 8 char *j; 9 static int m=1;10 char *n="hello";11 12 printf("栈区地址...
分类:
其他好文 时间:
2014-05-26 14:24:28
阅读次数:
201
URL 只是一个 路径 : 协议头:// 域名/ 资源 (就是要查询的内容)
比如http://m.baidu.com/s?word=iOS 上面的是 手机版的域名 UIWebView : 也是一个IOS 程序的控件 能拖 能用代码实现
能设置代理 ...
分类:
Web程序 时间:
2014-05-26 14:17:06
阅读次数:
310
DFS算法,非常容易TLE,需要一个boolean矩阵来记录是否访问过某个节点。写DFS主要就是两个方法:用recursion或者Stack,
用recursion会带来time和memory的cost增加,而且因为要用矩阵做argument,
所以非常担心TLE或者MLE的问题。但是用recurs...
分类:
其他好文 时间:
2014-05-26 13:03:20
阅读次数:
273
C++的IO比较复杂,记录一下碰到的问题:#include
"stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout
<< 22/5*3 << endl; printf("Hello Wor...
分类:
编程语言 时间:
2014-05-26 12:42:11
阅读次数:
290
创建Hello World项目1.
下载框架选择最新的版本,进行下载。框架下载地址:http://initphp2. 创建项目目录创建项目目录,目录示意图:1.
文件夹initphp是最新下载的initphp框架文件夹2. conf/comm.conf.php 放置项目配置文件3. web/cont...
分类:
Web程序 时间:
2014-05-26 11:21:15
阅读次数:
307
网上找了一堆资料学习一下,了解这些,有助于规化程序结构,优化代码;使用gcc编译出来的程序,用size可以查看程序结构和大小,如
1: #size hello 2: Text data bss dec hex filename 3: 778 200 4 982 3D6 hello...
分类:
其他好文 时间:
2014-05-26 10:07:17
阅读次数:
289
1.PHP和js同样是弱类型的语言 字符串的截取php中: $str ="hello world!";
substr($str,1,2);//从字符串的下标为1的地方截取2个字符, eljs中 var str = "hello world!";
str.substring(1,2);//e ...
分类:
其他好文 时间:
2014-05-26 09:55:57
阅读次数:
243
1. Content() 返回文本类型,比如"Hello World!".2.File()
返回文件类型,如PDF,JPG.3.HttpNotFound() 返回404 HTTP 状态码.4.JavaScript() 返回Javascipt 内容. 如
function test(){al...
分类:
Web程序 时间:
2014-05-26 08:27:06
阅读次数:
400
Word SearchGiven a 2D board and a word, find if
the word exists in the grid.The word can be constructed from letters of
sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-05-26 08:21:06
阅读次数:
310