CodeDump
Add
Browse
Sign up
Sign in
Select language
ActionScript
Ajax
Android
AngularJS
Apache Configuration
AppleScript
ASP.NET (C#)
AutoHotkey
Bash
Brainfuck
C
C#
C++
CoffeeScript
CSS
CSS Extras
Dart
Eiffel
Erlang
F#
Fortran
Gherkin
Git
Go
Groovy
Haml
Handlebars
Haskell
HTML
HTTP
Ini
iOS
Jade
Java
Javascript
jQuery
JSON
Julia
Keyman
LaTeX
Linux
Less
LOLCODE
Makefile
Markdown
MATLAB
MySQL
NASM
Node.js
NSIS
Objective-C
Pascal
Perl
PHP
PHP Extras
PowerShell
Python
R
React JSX
reST (reStructuredText)
Rip
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Stylus
Swift
Twig
TypeScript
Vb.net
VHDL
Wiki markup
YAML
Other
Search
SKLAK
- 1 year ago
121
C++
Question
C++ How to get substring after a character?
For example, if I have
string x = "dog:cat";
and I want to extract everything after the ":", and return cat. What would be the way to go about doing this?
Recommended for you:
Get network issues from
WhatsUp Gold
.
Not end users.
rcs
Answer
Source
Email
{
} Share
Try this:
x.substr(x.find(":") + 1);
Recommended from our users:
Dynamic Network Monitoring from WhatsUp Gold from IPSwitch
.
Free Download
×
Email codedump link for C++ How to get substring after a character?
Email has been send.
To emailaddress:
To name:
From name:
Extra information in the email body (optional):
Email:
I am sending you the codedump of C++ How to get substring after a character? that you can see here: https://codedump.io/share/HEphoRw4kOkB/1
Sign up
Sign up with GitHub
Email:
Displayname
Password:
Repeat password:
Latest added
Sportido - Find People & Places to Play Any Sport
Algdat oblig 1 hiof
Creating your first Scriptable Brush and Scriptable Tile
Launch.log
hashtag_scraper
Learn COBOL
Learn DevOps
Scriptpower
Powershell
treeview optimization
Dump SSH
DMAwithADC2
ADCwithDMA
Rendering
Receiving a message
Speak example
brenner
config.php
homecontroller.php
RGB_LED 2