Questions tagged as 'string'

2
answers

Problem inserting double value in MySQL

query += txtServidor.Text + "',";<br> query += double.Parse(txtVencimento.Text) + ",";<br> query += int.Parse(txtBanco.Text) + ",'";<br> INSERT INTO tbl_associados VALUES(10,'testando','001.318.555-55','categoria','ativo',...
asked by 30.03.2015 / 14:58
1
answer

Problem in function sup

I'm here with a problem in this function int sup (char s1 [], char s2 []) , that calculates the largest suffix size of s1 that is prefixed to s2. / strong> For example, if you have supre ("cheat", "totality") it should return 4 , since the st...
asked by 21.03.2015 / 16:44
1
answer

Problem when doing encode and decode of String

I would like to know why such methods do not behave in a way that:    long2str (str2long (String s)) == String s public long[] str2long(String s){ final byte[] authBytes = s.getBytes(StandardCharsets.UTF_8); final String...
asked by 02.12.2014 / 11:02
1
answer

Getting text into another text

I want to get a List(Of String) of text blocks, however there is a problem: { --isso é um bloco; echo "Aqui tem um } no meio";} And I would like to get this: --isso é um bloco; echo "Aqui tem um } no meio"; but it's coming bac...
asked by 16.06.2015 / 00:22
1
answer

Python setar String where the cursor is [closed]

Good afternoon I need to set a string where the cursor is stopped. Examples: - Blinking cursor stopped on a notepad, I play a string in notepad. - Blinking cursor stopped in any typing field, I set a string in the typing field. How can I d...
asked by 27.11.2018 / 17:52
1
answer

Save float array to a txt file

After saving array in txt I want to be able to work with each of the values doing all the mathematical manipulations, but the way I'm saving I'm not getting it. Can anyone help me. import numpy as np xold = np.random.rand() N = 3000 x0 = np....
asked by 11.11.2018 / 15:34
1
answer

How to resolve error in printing strings?

I'm passing a struct by reference to a function at the time of inserting the data, and again at the time of printing this data. But the "insert_element" function does not read the time float (it skips the reading), and the function "Print_dates"...
asked by 07.11.2018 / 12:15
1
answer

Generate array with substrings positions

Is there any way I can get a string, for example: "John was bar last night". Generate an array that stores the position of all "" strings of this string. I'll use this to put these positions, for example, "no", "de". Having thus: "John went t...
asked by 21.11.2018 / 20:16
1
answer

how to play letter by letter of a sentence in an array?

Example: In the phrase naruto , the letter n of the frase vector is in the frase[0] position. I want to put it in mat_cript position [0][0] . Not just her, the rest of the sentence too. #include <s...
asked by 16.11.2018 / 17:05
1
answer

(C) Make an algorithm that reads a string and removes vowels and whitespace

The code is copying ALL characters from one string to another and ignoring the copy condition. I know there is an easier way to remove spaces and vowels, which is bringing the next character to the current position, but the code was asked to do...
asked by 14.09.2018 / 20:13