码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
c++ 调用外部程序exe-ShellExecuteEx
此方法最实用的调用exe.#include string file_path = s_run_dir+"\\ConsoleApplication1.exe"; if (!myfile.IsFileExist(file_path)) { return 1; } L...
分类:编程语言   时间:2015-06-02 10:59:02    阅读次数:706
输入年月,输出月份有几天(分别用了if——else和switch)
首先是switch做的 class Program { static void Main(string[] args) {/* 题目要求:请用户输入年份,输入月份,输出该月的天数。 思路:一年中月份的情况有三种。 ...
分类:其他好文   时间:2015-06-02 10:53:23    阅读次数:180
ngclass expressions in angularjs
原文:http://blog.xebia.com/2014/01/31/ngclass-expressions-in-angularjs/ngClass指令允许你通过databinding一个表达式来动态的设置CSS类.String Syntaxstring syntax非常简单、直接, 下面的代码...
分类:Web程序   时间:2015-06-02 10:39:17    阅读次数:155
面试题:在Java中如何跳出当前的多重嵌套循环?
/*  * 在Java中如何跳出当前的多重嵌套循环?  * 在Java中,要想跳出多重循环,可以在外面的循环语句前定义一个标号,  * 然后在里层循环体的代码中使用带有标号的break语句,即可跳出外层循环  */ package java基础题目; public class Test3 { public static void main(String[] args) { met...
分类:编程语言   时间:2015-06-02 09:31:24    阅读次数:184
串(string)类的简单实现
串(String)又称字符串,是一种特殊的线性表,表中的元素是单个字符,串是由n个字符组成的有限序列。 S="c1c2c3c4...cn"............(n>=0) 本文实现了串的初始化,串长度的计算,求子串,插入、删除、加法、找位置以及串的输出等函数。 String.h #ifndef STRING_H_ #define STRING_H_ #include class St...
分类:其他好文   时间:2015-06-02 09:30:10    阅读次数:172
LeetCode 8:String to Integer (atoi)
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 below and ask yourself what are the possible input case...
分类:其他好文   时间:2015-06-02 09:25:09    阅读次数:115
Android Resources$NotFoundException: String resource ID #0x1
今天写一个新界面,需要从其他界面通过intent传来参数,就先拿到之后通过TextView的setText显示来看看传参是否正确,写法:TextView.setText(arg) (arg是int型),然后就玩命报错  “android.content.res.Resources$NotFoundException: String resource ID #0x1”,一直不知道怎么回事,看过API...
分类:移动开发   时间:2015-06-02 09:24:59    阅读次数:99
LeetCode 03: Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For ...
分类:其他好文   时间:2015-06-02 09:24:48    阅读次数:113
HashSet的初步了解
HashSet是无序的、它在添加元素的时候、是无序的、输出的时候、而不是依据你所添加元素的顺序而打印出来。 import java.util.*; public class HashSetDemo { public static void main(String[] args) { HashSet hs = new HashSet(); Add(hs); ...
分类:其他好文   时间:2015-06-02 09:21:02    阅读次数:102
测量标准体重
Console.Write("请输入您的性别:"); string s = Console.ReadLine(); Console.Write("请输入您的体重:"); double t = double.P...
分类:其他好文   时间:2015-06-02 09:17:53    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!