Questions tagged as 'string'

1
answer

Assigning Rows of a Document to a String Vector

I'm trying to try to assign to a string vector certain lines of document, the content of the document is this:    3   50   5,80,0   15,5,1   12,30,0 I want, from the third row, each row to be stored in a certain index of a String vect...
asked by 06.06.2017 / 16:43
1
answer

PHP: Replacement of characters within a string starting from a given position

I need a way in PHP to replace parts of strings from a given position, for example: String: aaa aaaaaaa Replace from 3rd character with "-" Result: aaa ------- or String: aaaaaaa aaa Replace 7th with "-" Result: ------- aaa o...
asked by 26.05.2017 / 16:25
2
answers

Calculation of similarity between words with Java

For two string A and B, we define that the similarity of these strings is the length of the prefix that is common to both. For example, the similarity of strings abc and abd is 2, while the similarity of strings aaa...
asked by 24.05.2017 / 23:14
1
answer

Problems scanning strings inside the switch command (C)

I am trying to make a program that encodes and decodes strings that are given by the user by the cesar method, using switch-case to select what should be done, however when trying to read a string inside the case of the case this occurs) the pro...
asked by 27.05.2017 / 20:28
0
answers

Error in compiling my .tex file

The error gives me the indication of some problem in the file subcaption.sty , resulting in the following error:   ! Undefined control sequence.   l.64 \ caption @ AtBeginDocument   {%   The control sequence at the end of the top line...
asked by 17.05.2017 / 21:03
1
answer

Copying strings in C [duplicate]

I'd like some help on the following question: I have a char with a text of 32 characters, so I would like to know how to separate this char into two of 16 characters. Type: char textao[32] = "Oi meu nome e Cesar tudo bem...
asked by 25.05.2017 / 02:30
1
answer

Image always after 2nd paragraph of a text

Hello, I would like to put image always after 2nd paragraph of a text, I thought to replace the 2nd occurrence </p> and exchange it for the image, but I could not do it.     
asked by 14.05.2017 / 17:27
1
answer

Doubt about ContainsIgnoreCase in a textBox

The problem is in the following description:    Error CS1061       "string" does not contain a setting for "ContainsIgnoreCase" and has not been   possible to find any "ContainsIgnoreCase" extension method that   accept a first argument of t...
asked by 08.05.2017 / 22:11
3
answers

Comparing string contents in C to find palindrome

I need to check if a string A, for example, is equal to string B to determine if the entered word is a palindrome, string B is the inverse of A, I can not determine if the contents are the same. For example, I enter with the word "macaw", t...
asked by 26.03.2017 / 23:48
0
answers

Parameters between fragment and activity

I have an activity with a fragment inside, however I want to pass the parameters in the fragment when I change activity, what do I do?     
asked by 27.04.2017 / 16:06