How to make a space split?

Asked

Viewed 78 times

0

I have this text:

"resultados 2018 295 1 br"

How do I separate by space and put in strings? example:

string ano = argumento[0];
// iria ser 2018
string ano = argumento[1];
// iria ser 295
string ano = argumento[2];
// iria ser 1
string ano = argumento[3];
// iria ser br
  • already have this answer on the site

  • https://answall.com/questions/40379/recuperar-parte-de-uma-string-split-ou-indexof

  • https://answall.com/questions/35400/como-obter-um-trecho-de-uma-string

  • https://answall.com/questions/279904/obter-valor-de-dentro-de-uma-string-c

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.