二叉树基本操作代码#include "stdafx.h"#include "stdlib.h"#include "string.h"#define MAX 100typedef char Elemtype;typedef struct BTNODE{ Elemtype data; BTN...
分类:
其他好文 时间:
2014-06-19 07:51:41
阅读次数:
251
字符串:String都是用String来表示,都是值类型,在传递过程中都会进行拷贝。计算字符数量As3:str.lengthSwift:countElements(str)数组:ArrayAs3:存数任意数据var arr:Array=new Array();var vec:Vector.=new ...
分类:
其他好文 时间:
2014-06-19 06:47:35
阅读次数:
281
本文是对该教程的学习练习http://www.jb51.net/tools/zhengze.html1.\bContent\bstatic void Main(string[] args){ string str = "Act game - Uncharted3, act Game - God...
分类:
其他好文 时间:
2014-06-19 06:02:58
阅读次数:
200
String对象提供的方法用于处理字符串及字符。常用的一些方法:charAt(index):返回字符串中index处的字符。indexOf(searchValue,[fromIndex]):该方法在字符串中寻找第一次出现的searchValue。如果给定了fromIndex,则从字符串内该位置开.....
分类:
编程语言 时间:
2014-06-19 00:51:39
阅读次数:
243
package Socket;import java.net.DatagramPacket;import java.net.InetAddress;public class Dgram { public static DatagramPacket toDatagram(String s, In...
分类:
编程语言 时间:
2014-06-15 14:03:26
阅读次数:
237
Size visibleSize = Director::getInstance()->getVisibleSize();
Point origin = Director::getInstance()->getVisibleOrigin();
std::string path = FileUtils::getInstance()->fullPathForFilename("story.js...
Dgram类package Socket;import java.net.DatagramPacket;import java.net.InetAddress;public class Dgram { public static DatagramPacket toDatagram(String...
分类:
编程语言 时间:
2014-06-15 12:46:32
阅读次数:
256
在C++中在C++中for循环可以使用类似java的简化的for循环,可以用于遍历数组,容器,string以及由begin和end函数定义的序列(即有Iterator)
#include
#include
#include
using namespace std;
int main()
{
map ms;
ms.insert(make_pair("a", 1));
ms....
分类:
编程语言 时间:
2014-06-15 10:46:30
阅读次数:
241
1.创建一个空的字符串,并用字符串是否为空进行判断
var str = ""
var str2 = String()
if str2.isEmpty {
println("empty")
}
2.字符 Character
可以通过字符来计算字符串数量
for character in "Dog!...
分类:
其他好文 时间:
2014-06-15 10:41:21
阅读次数:
199
#includeusing namespace std;struct date{int year;int month;int day;};struct Person{string name;int age;bool gender;double salary;date birth;Person(){c...
分类:
编程语言 时间:
2014-06-15 10:37:12
阅读次数:
207