前提条件是已经安装了g++要是没有安装,就yum install
g++1,编写Hello.cpp1>vim2>#include int main(){ printf("Hello,the world!");
return 0;}3>:w hello.cpp2,退出vim !q3,编译#g++ .....
分类:
编程语言 时间:
2014-05-25 22:19:17
阅读次数:
468
百度地图API开始学习百度地图API最简单的方式是看一个简单的示例。以下代码创建了一个520x340大小的地图区域并以天安门作为地图的中心:1.2.3.4.Hello,World5.6.7.8.9.10.11.12.Hello,World1.6.引用百度地图API文件当您引用地图API文件时,需要使...
1. 变量赋值时 = 两边不能有空格.2. if比较时 = 两遍有空格.3. [ 的左右两边 和 ]
的左边有空格, 1 #!/bin/sh 2 # 字符串比较 3 aa= 4 bb="hello" 5 cc="world" 6 7 #
1.注意判断中的字符串变量用双引号括起来(不括起来在某些情况....
分类:
其他好文 时间:
2014-05-25 22:01:11
阅读次数:
298
package chapter1;public class Demo1 { public
static void main(String[] args) { System.out.println("Hello World!"); /*...
分类:
编程语言 时间:
2014-05-25 13:56:17
阅读次数:
229
word中创建文本框
在插入中点击“文本框”选项卡,如下图所示:
手工添加自己想要的文本框格式,然后选择所创建的文本框,在工具栏处会发现多了一个“格式”选项卡,点击,可以对文本框进行设置,如外观的纹理等等,如下图所示:...
分类:
其他好文 时间:
2014-05-25 11:14:57
阅读次数:
210
word生成pdf保留书签设置
点击“另存为”选项:
在另存为界面选择保存为pdf,如下,会出现“选项”设置项,点击进入:
在选项中,设置需要的设置,若要将pdf保留word中的标题作为书签,则需设置如下图,"创建标签时使用"选项勾选即可。...
分类:
其他好文 时间:
2014-05-25 11:12:51
阅读次数:
265
V3 RC4 版本图片
显示一个飞船
将Chapter1中 SpaceCargoShip.png 文件 添加到项目里面。
代码在 init :
CCSprite *spaceCargoShip = [CCSprite spriteWithImageNamed:@"SpaceCargoShip.png"]; [spaceCargoShip set...
分类:
其他好文 时间:
2014-05-25 09:39:59
阅读次数:
195
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
点灯程序应该是每个入门者都经历过的第一个程序吧,当然“hello world”算是鼻祖了。看到板子上的LED小灯亮灭变化,心里应该充满了幸福感,对于新手来说额,大侠就更不用多说了,一天一小步,慢慢积累。
板载的LED使用了A13、A14、A15三个I/O引脚:
根据图示,当I/O输出高电平时,LED亮;反之,LED灭;此刻高电平为3.3V,低电平为0,因为是数字方式驱动。
这里要介绍一个函数digitalWrite(),函数原型如下:
描述:设置给定引脚的高低状态,无返回值...
分类:
其他好文 时间:
2014-05-25 06:22:53
阅读次数:
280
-----014-string.php ----- 1 2 3 4 5 一个PHP网页 6 7 8 9
字符串比较";11 $str1 = "hello";12 $str2 = "HELLO";13 printf("%s比%s:%d\n", $s...
分类:
Web程序 时间:
2014-05-25 02:22:44
阅读次数:
270