--create-- SQL去除回车符,换行符,空格和水平制表符create function RepSymbolChar(@str nvarchar(max))returns nvarchar(max)as begin set @str=LTRIM(@str) set @str=RTRIM(@str) set @str=replace(@str,char(9),'') --水平制表符 set @str=replace(@str,char(10),'') -- 换行 set @str=repla
import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author lei * 2011-9-2 */ public class StringUtils { public static String replaceBlank(String str) { String dest = ""; if (str!=null) { Pattern p = Pattern.compile("\\s*|
每个程序员的Hello World程序 //This is a small c++ program #include <iostream> int main() { std::cout << "Hello, World" << std::endl; system("pause"); ; } 1.注释 符号//开始,到行末都是注释.编译器忽略注释.写注释的原因是:告诉程序相关信息,方便理解. 2.#include 在c++中,有很多