Questions tagged as 'string'

2
answers

Find patterns inside a String [closed]

I'm having trouble finding two patterns inside a string in java, given a string. For example: String str = 0214783452314021984081894723280904197901644376630211019960917898344018051986167734221102312200100173255450080919680409018769025111981007...
asked by 15.03.2018 / 18:32
1
answer

Improve the performance of a method with pointers

Here's the code working: string string_pick(string text, string tag, char caractere) { int index = text.IndexOf(tag); return text.Substring(index + tag.Length, text.IndexOf(caractere, index + tag.Length + 1) - (index + tag.Length)); }...
asked by 17.06.2016 / 01:20
1
answer

Function that converts string to lowercase and compares [duplicate]

struct registro{ /*Estrutura para guardar os dados do usuário*/ char usuario[50]; }atual[1000], *ptr; main() { int v = 0; verific = 0; //posicao e variavel para comp. de string volta_usuario: printf("\n\t\t\tUsuário: "); gets(atual[v].usuario)...
asked by 03.11.2017 / 03:59
3
answers

Place spaces between letters of a text [closed]

Since a given string like "Something" has spaces between the letters, for example "A l g u m a C o i s a"; how do I do this in C #?     
asked by 26.08.2018 / 16:43
1
answer

How to find a word in a text

How can I find a word in a text or in an object with javascript? I thought I would use for loop. How would you do that?     
asked by 30.09.2015 / 20:59
0
answers

remove vowels from a string in C [closed]

   My question is about Make a program that receives the user a string. The program prints the string without its vowels.     
asked by 22.11.2018 / 17:00