码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
ServletRequest-----ServletResponse常用方法
getAttribute(String name):返回以name为名字的属性的值,不存在返回nullgetAttributeNames():返回请求中所有可用的属性名称,没有属性,返回一个空的枚举集合removeAttribute(String name):移除请求中名字为name的属性setAt...
分类:其他好文   时间:2015-03-28 17:08:07    阅读次数:115
数组作数据成员(2)
输入代码: /* *Copyright (c)2015,烟台大学计算机与控制工程学院 *All rights reserved. *文件名称:sum123.cpp *作 者:林海云 *完成日期:2015年3月28日 *版 本 号:v2.0 * *问题描述:设计一个工资类,输入职工人数和员工工资,涨工资并排序后,打印出更改后的工资表 *程序...
分类:编程语言   时间:2015-03-28 15:48:16    阅读次数:161
Length of Last Word -- leetcode
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defi...
分类:其他好文   时间:2015-03-28 15:46:51    阅读次数:131
利用if else来运行咱们结婚吧
static void Main(string[] args) { while (true) { string a; Console.WriteLine("请问你有房吗:"); a = Console.ReadLine(); if (a == "有") { Console.WriteLine("请....
分类:其他好文   时间:2015-03-28 15:46:08    阅读次数:176
利用if else判断几点是什么时间段
static void Main(string[] args) { while (true) { int a; Random r = new Random(); a = r.Next(0,24); Console.WriteLine(a); if (a >= 0 && a = 6 && a = 12...
分类:其他好文   时间:2015-03-28 15:46:05    阅读次数:150
利用switch case 来运行咱们结婚吧
static void Main(string[] args) { while (true) { int x, y,z; string a, b,c; Random r=new Random();//这个是用的随机数随机生成,并且利用switch case赋予x,y,z成为"剪刀"石头""布""的含...
分类:其他好文   时间:2015-03-28 15:45:16    阅读次数:119
利用if else 判断方程有几个根
static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Green; Console.Clear(); while (true) { Console.WriteLine("求方程式ax²+bx=c=0的根的情况...
分类:其他好文   时间:2015-03-28 15:40:03    阅读次数:118
文件保存
目标:将新创建的文件保存在 Tomcat 服务器对应的文件夹下在 Servlet 的主要代码如下: private ServletContext sc; private String filename; //保存文件名 @Override public void init(ServletConfig...
分类:其他好文   时间:2015-03-28 15:39:35    阅读次数:127
匿名类型var自动类型推断
using System;namespace Frank{ public class Sample { public static void Main(string[] args) { var name = "Bugs Bunny"; ...
分类:其他好文   时间:2015-03-28 15:37:39    阅读次数:106
[c++]怎么样知道析构函数先后的析构顺序
#include #include using namespace std; class String_date { private: char * str; public: String_date(char * str); ~String_date(); char* get_infor() {return str;} }; String_date::Str...
分类:编程语言   时间:2015-03-28 14:29:28    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!