通过substr和instr这两个函数组合应用就可以截取字符串中想要的字符。substr函数主要用来截取字符串。语法:substr( string, start_position, [ length ] )string:列或者字符串start_position:开始的位置,正数表示从左开始,负数表示...
分类:
其他好文 时间:
2015-02-06 12:41:08
阅读次数:
271
在改这个功能中我用到了两个窗体,一个用来获取原来的用户号,另一个用来获取现在的密码,下面我就来详细说明一下:
同样,实体层:
'''
''' 实体层,存放多种属性
'''
'''
Public Class User
'定义UserName属性
Private _UserName As String
Public Property UserName As Strin...
分类:
数据库 时间:
2015-02-06 11:20:01
阅读次数:
239
/**
* lsz
*/
public final class ZipUtil {
/**
* 解压zip文件
* @param unZipfile
* @param destFile
*/
public static void unZip(String unZipfile, String destFile) {
FileOutputStream file...
分类:
其他好文 时间:
2015-02-06 11:17:27
阅读次数:
123
Action系统封装的Action委托,没有参数没有返回值。调用实例为:class Program { public delegate void Action(); static void Main(string[] args) { Action action = ne...
分类:
其他好文 时间:
2015-02-06 11:12:51
阅读次数:
138
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-02-06 11:12:30
阅读次数:
95
Problem 2154 YesOrNo
Accept: 129 Submit: 283
Time Limit: 1000 mSec Memory Limit : 32768 KB
Problem Description
A国认为如果字符串a可以通过操作X变成字符串b,就认为是一样的字符串。
操作X:将字符串分为两部分,然后调换位置,操作次数不限。W=xy,...
分类:
其他好文 时间:
2015-02-06 09:39:00
阅读次数:
153
背景:主要是学习map相关知识,详见代码
我的代码:#include
#include
#include
#include
#include
using namespace std;
map map1;
mapmap2;
vector vector1,ans;
string string1_lower(string string1){
for(int i=0;i < stri...
分类:
其他好文 时间:
2015-02-06 09:38:26
阅读次数:
106
#include
#include
#include
using namespace std;
class Solution {
public:
int compareVersion(string version1, string version2) {
vector v1;
vector v2;
int p=0;
/*方法一:OK*/
/*for(int i=0...
分类:
其他好文 时间:
2015-02-06 09:37:11
阅读次数:
90
这两天学习的东西有点多,感觉完全应付不过来了 ,一直在消化这几天学习的东西所以2号、3号、4号的学习内容没有及时总结,在此表示深深的愧疚,今天把这些天学习的知识点汇总一下。
主要学习了IPC进程间通信,目前我所理解的IPC主要包括管道、共享内存、信号量。
总结IPC前先复习一下多进程:
一、进程创建:
1、system函数
通过调用shell程序/bin/sh –c来执行string所...
分类:
系统相关 时间:
2015-02-06 09:35:52
阅读次数:
279
Given string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged according to...
分类:
其他好文 时间:
2015-02-06 07:03:23
阅读次数:
161