gcc是一个编译器,下面以例子来学习如何使用这个编译器。
/*File:hello.c*/
#include
int
main(int argc, char **argv)
{
printf("Hello world.\n");
return 0;
}编辑好hello.c文件后,用gcc编译器编译它:gcc hello.c
执行完该命令后,生成可执行文件a.out,执行该文件,即可在终端...
分类:
其他好文 时间:
2014-06-19 10:14:52
阅读次数:
368
True love
Time Limit: 4000/2000 MS (Java/Others)
Memory Limit: 128000/64000 KB (Java/Others)
Problem Description
Is there true love in the world?maybe or not, god knows! We know there...
分类:
其他好文 时间:
2014-06-16 12:46:08
阅读次数:
234
输入一个字符串和一个非负整数N,要求将字符串循环左移N次。
输入格式:
输入在第1行中给出一个不超过100个字符长度的、以回车结束的非空字符串;第2行给出非负整数N。
输出格式:
在一行中输出循环左移N次后的字符串。
输入样例:
Hello World!
2
输出样例:
llo World!He
import java.math.BigInteger;
...
分类:
其他好文 时间:
2014-06-15 15:39:49
阅读次数:
188
String是例如“hello, world”,“海贼王”
这样的有序的Character(字符)类型的值的集合,通过String类型来表示。Swift 的String类型与
FoundationNSString类进行了无缝桥接。如果您利用 Cocoa 或 Cocoa Touch 中的 Founda...
分类:
其他好文 时间:
2014-06-13 15:14:38
阅读次数:
247
GETTING STARTED OPENFLOW OPENVSWITCH TUTORIAL
LAB : SETUPFor a more up to date tutorial as anything more then 6 months old is
outdated in the world of...
分类:
其他好文 时间:
2014-06-13 08:16:36
阅读次数:
624
1.前台调用后台方法//前台代码//后台代码public string
GetStr()//GetStr()须有返回值,public可换成protect,但不能是private{ string s = "Hello World!";
return s;}2.后台调用前台函数//前台代码/...
分类:
Web程序 时间:
2014-06-12 19:41:39
阅读次数:
276
在男友手把手的指导下,写出第一个类似于“hello
world”的socket程序。男友要求:1. 程序以命令行方式运行,在两台联网的电脑上分别运行;2. 一台电脑的命令行中输入“程序名称
wait”,运行程序,进入监听状态;3. 一台电脑的命令行中输入“程序名称 ip地址”,运行程序,连接另一台电...
分类:
编程语言 时间:
2014-06-12 09:04:49
阅读次数:
498
延续上一篇文章
上篇文章末尾有一段脚本,定义了一个Task:
task 'myTask' {
doLast {
println 'hello world!'
}
}
我们已经知道,这段脚本其实是调用Project的task方法,并且传入两个参数:一个是Task的名字,另外一个是闭包,用来配置Task(在这段脚本中,给Task添加了一个A...
分类:
其他好文 时间:
2014-06-10 18:17:46
阅读次数:
265