Questions tagged as 'string'

2
answers

How to replace values of a string from all values of an array?

Good afternoon guys, well the problem is the following .. I have a string named x, and I have two arrays, name and value. in both arrays I identify if in the string X has some field equal to $ name, if it has substitution by $ value, Is there a...
asked by 02.10.2017 / 21:33
2
answers

How to read a string with C ++ space inside a function

I'm in the second half of S.I and sorry if it's a trivial mistake. I need to read a name and surname, for a calendar, I'm using function and I've already tried Getline, cin.get (variable, size), but none works, here's the code below, what I need...
asked by 16.11.2017 / 14:31
1
answer

How to separate edital String in Excel

I need to separate this type of String (Example): 1 Estruturas lógicas. 2 Lógica de argumentação: analogias, inferências, deduções e conclusões. 3 Lógica sentencial (ou proposicional). 3.1 Proposições simples e compostas. 3.2 Tabelasverdade. 3...
asked by 20.09.2017 / 20:13
1
answer

The input string was not in a correct format

When calling the method below comes the message    the input string was not in a correct format private void SubmitData() { try { string user = usuario.Text; string pass = sen...
asked by 15.06.2017 / 15:43
1
answer

Problem in understanding this structure in a python string

I was studying file compression when I came across the following script: import sys import os.path import bz2 import zlib import base64 ################################################################################ def main(): "Extract...
asked by 27.03.2017 / 18:34
2
answers

Transform string into integer in PHP

I have two classes communicating. One of these returns a getter with the month entered in the form, and the other class receives that getter inside the cal_days_in_month () function. The problem is that the month field of this function only acce...
asked by 19.05.2017 / 20:40
1
answer

Substr and Preg_match when using one or the other?

Questions about functions substr e preg_match/preg_match_all. When will I use one or the other? Both remove parts of texts, only% with% remove through regular expressions correct? Could you give me examples of applications of the...
asked by 29.05.2017 / 19:15
2
answers

How to check if a string is contained in another in C?

I have two variables: char s1[20]; char s2[20]; I will get the input of the user of the two variables, and after that, I need to check if s1 is contained in s2 , even a single part of it. For this I will use a function called...
asked by 19.06.2017 / 19:49
1
answer

VBA: Placing a space before or after uppercase letters in a given text

I have a sequence of texts that represent customer names, but they do not have enough space between each word / name (for example: CarlosAlbertoGomes ). However the words can be differentiated because the first letter of each word is capitalize...
asked by 05.04.2017 / 19:00
1
answer

Split string by letter sets with numbers

I have the following string in a particular array: [est] => INA1C4A1 I need to split into sets: [0] => Array ( [mov] => IN [seq] => Array ( [0] => A1...
asked by 15.12.2016 / 15:48