- 博客(3)
- 收藏
- 关注
原创 字符串反转
#include #include using namespace std; int main() { string a; while(getline(cin,a)) { int pos=a.length()-1; for(int i=pos;i>0;i--) { if(a[i]=
2018-01-24 12:09:44
107
原创 数串
设有n个正整数,将他们连接成一排,组成一个最大的多位整数。 如:n=3时,3个整数13,312,343,连成的最大整数为34331213。 如:n=4时,4个整数7,13,4,246连接成的最大整数为7424613。 #include #include using namespace std; int main() { string a[100],tmp; in
2018-01-22 11:04:06
157
原创 JAVA数组的拷贝
— 数组A:1、2、3、4、5、6、7、8; — 数组B:11、22、33、44、55、66、77、88; — 将数组A的部分内容替换到数组B中,数组B的最终结果为:11、22、5、6、7、66、77、88。 代码如下: public class ArrayDemo { public static void main(String args[]) {
2017-11-19 11:15:55
171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人