public class Solution { public String convert(String s, int numRows) { String res = ""; if (s.length() < numRows || numRows == 1) { ...
分类:
其他好文 时间:
2015-05-13 06:17:07
阅读次数:
108
The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P—–A—–H—–N
A–P–L–S–I—I–G...
分类:
其他好文 时间:
2015-05-12 23:03:53
阅读次数:
218
本次上课继续讲解了 [ ] 、-> 等运算符重载的具体例子也讲解了C++单个参数的类的类型转换的案例最后稍微提到了 static 的第三种作用:静态数据成员具体详解我都已注释出来了,大家可以慢慢看有任何问题都可以在这篇文章下留言我会及时解答 :)#include #include using nam...
分类:
编程语言 时间:
2015-05-11 14:37:56
阅读次数:
118
首先回顾一下C++类型转换: C++类型转换分为:隐式类型转换和显式类型转换 第1部分. 隐式类型转换 又称为“标准转换”,包括以下几种情况:1) 算术转换(Arithmetic conversion) : 在混合类型的算术表达式中, 最宽的数据类型成为目标转换类型。 int ival = 3;do...
分类:
编程语言 时间:
2015-05-09 17:26:15
阅读次数:
207
1.利用栈的基本操作#include
#include
#include
#define STACKSIZE 100
typedef int ElemType;
typedef struct
{
ElemType stack[STACKSIZE];
int top;
}SeqStack;
void Conversion(int N)...
分类:
其他好文 时间:
2015-05-09 06:36:27
阅读次数:
122
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I ...
分类:
其他好文 时间:
2015-05-08 09:36:17
阅读次数:
136
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-05-08 01:30:06
阅读次数:
127
Problem:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern in a fixed font for better legibility)
P A H ...
分类:
编程语言 时间:
2015-05-07 00:59:08
阅读次数:
176
错误信息: Incompatible integer to pointer conversion assigning to 'MessageType *' from int 原因:创建属性时将整型的枚举类型实例变量(基本类型)创建成了id类型的(多加了*)错误信息: 在使用类中,可能找不到某个方法/...
分类:
其他好文 时间:
2015-05-07 00:32:53
阅读次数:
131
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-05-06 21:04:50
阅读次数:
182