//输出Console.WriteLine("这是一行文字"); 自动回车的。Console.Write("Hello world"); 不带回车的。注意:1.大小写敏感。(快捷键操作) 2.括号,引号,分号都是英文状态下的符号。 3.结尾不要忘记写分号。//输入string s = Console...
1、查询Object public Classify queryClassifById(int id){ String sql="select * from t_classify where id=?"; Object[] args = new Object[] {...
分类:
数据库 时间:
2014-12-28 19:26:23
阅读次数:
208
C++定义了一个内容丰富的抽象数据类型标准库,其中最重要的标准库类型是string和vector,它们分别定义了大小可变的字符串和集合。string和vector往往将迭代器用作配套类型,用于访问string中的字符,或者vector中的元素。
另一种标准库类型为bitset,提供了一种抽象方法来操作位的集合。
string类型支持长度可变的字符串,vector用于保存一组指定类型的对象。
...
分类:
编程语言 时间:
2014-12-28 18:20:00
阅读次数:
248
class Program { static void Main(string[] args) { DataBase dt = new Data(); dt.Add(); } } ...
分类:
其他好文 时间:
2014-12-28 18:07:53
阅读次数:
124
题目描述:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be...
分类:
其他好文 时间:
2014-12-28 18:06:00
阅读次数:
167
Longest Substring with At Most Two Distinct CharactersGiven a string, find the length of the longest substring T that contains at most 2 distinct char...
分类:
其他好文 时间:
2014-12-28 16:53:21
阅读次数:
198
1 private DataTable GetExcelTable(DataRow row) 2 { 3 4 string path = ConfigurationManager.AppSettings["UploadPath"]...
分类:
其他好文 时间:
2014-12-28 16:47:34
阅读次数:
207
一、简单版 1 import java.io.FileInputStream; 2 void readFileOnLine(){ 3 String strFileName = "Filename.txt"; 4 FileInputStream fis = openFileInput(...
分类:
移动开发 时间:
2014-12-28 16:45:44
阅读次数:
281
Android4.4的墙纸信息存放在/data/system/users/0/目录下,WallpaperManagerService启动后,会生成如下两个文件在/data/system/users/0/目录下:
static final String WALLPAPER = "wallpaper"; //设置的墙纸图片,一般为jpeg格式
static final Strin...
分类:
移动开发 时间:
2014-12-28 15:35:20
阅读次数:
177
/** * 数字工具类型 * @author rubekid * */public class NumberUtils { private final static String[] GROUP_UNITS = {"", "万", "亿", "兆"}; private final sta...
分类:
其他好文 时间:
2014-12-28 15:32:51
阅读次数:
143