[Python] C++ equivalent of Python string slice

Discussão em 'Python' iniciado por Stack, Julho 5, 2025.

  1. Stack

    Stack Membro Participativo

    In Python, I was able to slice part of a string; in other words just print the characters after a certain position. Is there an equivalent to this in C++?

    Python code:

    text = "Apple Pear Orange"
    print text[6:]


    Would print: Pear Orange

    Continue reading...

Compartilhe esta Página