#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include
using namespace std;
int main(void)
{
int T;
cin >> T;
while (T--) {
string S, msg;
while (cin >> S >> msg) {
//assume d...
分类:
其他好文 时间:
2015-06-17 21:36:50
阅读次数:
93
public class Test2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int abcCount = 0;// 英文字母个数
int spaceCount = 0;// 空格键个数
int numCount = 0;// 数字个数
int otherCoun...
分类:
其他好文 时间:
2015-06-17 21:33:21
阅读次数:
152
文件score.dat中保存的是若干名学生的姓名和C++课、高数和英语成绩。
(1)定义学生类,其中包含姓名、C++课、高数和英语成绩及总分数据成员。
//定义学生类
class Student{
public:
//声明必要的成员函数
private:
string name;
double cpp;
double math;
double engli...
分类:
其他好文 时间:
2015-06-17 21:32:45
阅读次数:
102
string类型-特点string 是最简单的类型,你可以理解成与 Memcached 是一模一样的类型,一个 key对应一个value,其上支持的操作与 Memcached 的操作类似。但它的功能更丰富。 string 类型是二进制安全的。意思是redis的string可以包含任何数据...
分类:
其他好文 时间:
2015-06-17 21:30:34
阅读次数:
210
document.getElementById使用语法:oElement = document .getElementById ( sID )參数:sID――必选项。字符串(String)。返回值:oElemen――对象(Element)。说明:依据指定的id属性值得到对象。返回id属性值等于sID...
分类:
其他好文 时间:
2015-06-17 21:24:11
阅读次数:
124
7.1 组合语法7.2 继承语法7.3 代理7.4 重载和覆盖7.5 初始化以及类的加载目录7.1 组合语法组合就是把对象放在新类中,做新类的成员,比如class A {}class B { private String value1, value2, value3; private...
分类:
编程语言 时间:
2015-06-17 21:21:15
阅读次数:
144
题目意思:1-3999转罗马数字思路:从大往小减 ps:这题有点蛋疼 1 class Solution { 2 public: 3 string intToRoman(int num) { 4 string a[]={"I","IV","V","IX","X","XL","...
分类:
其他好文 时间:
2015-06-17 21:20:36
阅读次数:
121
1.不能显式地创建一个Math对象,直接使用它就可以了;2.Math对象不能存储数据,和String,Date对象不同;3.前面知道了parseInt()函数会通过消去小数点后面的一切,来使一个小数变成整数(因此24.999变为24).经常我们需要更精确的计算。于是通过Math对象的这几个方法:ro...
分类:
编程语言 时间:
2015-06-17 21:17:11
阅读次数:
119
1. 引用命名空间 using System.Runtime.InteropServices; using System.Management; 2. 取机器名public string GetHostName(){ return System.Net.Dns.GetHostName(...
在开发中遇到此问题,如下原码,报错:未能映射路径: string filename = Server.MapPath("/logs/log.txt"); 解决方法,从根目录开始:string filename = Server.MapPath("~/logs/log.txt");