解题报告
题意:
略。
思路:
map应用。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
mapMap;
int main()
{
string str1,str2,str;
int i,j;
while...
分类:
其他好文 时间:
2014-08-09 21:34:19
阅读次数:
277
1.写一个函数,把int转换成byte[]; 1.1 java中数据存储区域有哪些; 1.2 String str1 = "abc"String str2 = "abc"str1 == str2吗 为什么?; 2.模拟一个ArrayList ,写一个add(Object obj ) 函数 ; 2.1...
分类:
其他好文 时间:
2014-08-08 12:20:45
阅读次数:
220
$str1 = "1 -the first str";$str2 = "1 -the second str";print "numerically equal\n" if($str1 == $str2);print "stringwise equal\n" if($str1 eq $str2);结果...
分类:
其他好文 时间:
2014-08-06 18:13:44
阅读次数:
579
#include#include#includeusing namespace std;int main(){ string maxStr,Str1,Str2; int maxNum,Num1,Num2; if(cin>>Str1) Num1=1; maxNum...
分类:
其他好文 时间:
2014-08-05 15:27:09
阅读次数:
255
String?str1?=?"123456789";
??str1?=?new?StringBuilder(str1).reverse().toString();?????//先将字符串颠倒顺序
??String?str2?=?"";
??for(int?i=0;i<str1.length();i++){
??...
分类:
编程语言 时间:
2014-08-05 09:44:49
阅读次数:
232
CString strScale;
strScale.Format(_T("1:%d"),m_pBlock->GetBlkScale());
int iIndex=strTitle.ReverseFind(_T('|'));
if(iIndex> -1)
{
CString str1,str2;
str1=strTitle.Mid(0,iIndex);
str1 = L"1/...
分类:
其他好文 时间:
2014-08-04 17:38:27
阅读次数:
159
char a[Max],b[Max],c[Max],sum[Max];
void jia(char str1[],char str2[])
{
int i,j,k,z;
k=0;z=0;
for(i=strlen(str1)-1,j=strlen(str2)-1;i>=0||j>=0;i--,j--) //核心,加法以及进位
{
if(i>=...
分类:
其他好文 时间:
2014-08-02 20:57:34
阅读次数:
253
一、定义数组。 定义数组有两个方法: 1、var arr1 = []; //定义一个空数组 2、var arr2 = [1,2,3,"str1","str2"]; //定义一个有5个元素的数组。 3、var arr3 = new Array(3); //定义一个空数组 ...
分类:
编程语言 时间:
2014-07-31 20:26:57
阅读次数:
381
strpbrk函数 函数原型:extern char *strpbrk(char *str1, char *str2) 参数说明:str1待比较的字符串,str2为指定被搜索的字符串。 所在库名:#include 函数功能:比较字符串str1和str2中是否有相同的字符,如果有,则返回该字...
分类:
其他好文 时间:
2014-07-29 10:24:48
阅读次数:
390
关于js的replace替换msgContent = msgContent.replace("a","b"); 这样的替换只会把第一个a替换成b,不会替换全部的a,如我输入 aba结果为:bba//替换所有字符function replaceAll(str,str1,str2) { var ...
分类:
Web程序 时间:
2014-07-28 19:15:24
阅读次数:
256