zoukankan      html  css  js  c++  java
  • string的函数的学习

    1.string类型的构造函数和对象的定义

    string s3 : 把string s2 拷贝的 s3

    string s4 : 把数组首地址或者字符串首地址strArr 从0开始截取到第n个字母

    string s5 : 把s2字符串从下标2数组开始截取,取到第三个字母

    string s6 : 把某一个字符重复复制多少次

    2.string类型函数属性

    3.string函数的使用方法

     

    在p0处插入*s字符串

    在p0处插入*s字符串的前n个字符

    在源字符串添加*s字符串

    在源字符串添加*s字符串的前n个字符

    将源字符串拷贝到*s中,从pos排位开始拷贝,一直拷贝到第n个字节

    将源字符串从pos位置开始,一直删除到第n个字符结束

    将源字符串从p0的位置由*s的n0的位置开始替换

    将源字符串从p0的位置由*s的n0的位置开始替换到第n个字节

  • 相关阅读:
    XP显示桌面
    批量改名
    poj 3126 BFS
    poj 3278 BFS
    poj 1426 BFS
    准备打酱油…
    POJ 2243 BFS 和 简单的调试方法学习
    K
    EXCEL fundamentals
    poj 1011 DFS+剪枝
  • 原文地址:https://www.cnblogs.com/liunx1109/p/9440215.html
Copyright © 2011-2022 走看看