Questions tagged as 'string'

1
answer

Send Arduino String to C # via Serial

I need to send Arduino Strings to C # in real time via Serial communication. In the arduino code I'm using the following to send: if (Serial.available()) //se byte pronto para leitura { switch(Serial.read()) //verifica qual caracter...
asked by 06.02.2015 / 12:40
1
answer

Relate products from different stores automatically

I have a question in comparing product prices from different stores, I have no idea which component to use or how to do this. The idea is to do something like Buscapé and Zoom (relate the same product to different stores), and then use this rela...
asked by 07.12.2014 / 01:23
0
answers

String.format () with error

I need to format the following string with its parameter, but it is generating the following error:    Caused by: java.util.IllegalFormatConversionException:% d can not format   java.lang.String arguments private static final String URL_HO...
asked by 17.11.2014 / 20:52
2
answers

Accentuation + $ http.get

I'm having trouble making an Ajax call using AngularJS because the strings that have accents are returning null, as a response to the call, my PHP is returning a JSON json_encode($data) , and upon receiving the answer I'm transforming JSON...
asked by 30.01.2014 / 16:05
1
answer

How do string istreams work?

To get a std::string , pointers of type char are required, as far as I know. However, to get a pointer, you have to allocate memory (necessarily, or there will be runtime error , Segmentation Fault ). However, it may con...
asked by 18.05.2014 / 16:22
2
answers

Sum of Integer Numbers in a txt File

I have two txt files that contain only numbers (number per line), so I want to add line 1 + line 1 so in succession to the last line of each file. Each file has the same line number. ** In this code I can only print the first sum of the first...
asked by 18.02.2018 / 17:23
1
answer

Looking for separate words in the same string in MySQL

My question is relatively simple, but I could not find an answer that really helped: My user searches for a name on a form: Fulano Silva The record in my bank is like So-and-so of Tal Silva SELECT * FROM 'dados' WHERE 'nome' LIKE '%"...
asked by 16.03.2017 / 18:29
1
answer

error Recoverable fatal error: Object of class mysqli_result could not be converted to string

I am not able to save the Id of the address in the database, I do a select of the address but I can not <?php session_start(); $host = "localhost"; $user = "root"; $senha = ""; $banco = "cafeteriasp"; $conexao = mysqli_connect ($host, $u...
asked by 04.12.2017 / 14:38
1
answer

Problem with string alignment [duplicate]

I have a problem with my Android project that I can not resolve. I have a series of strings that are summed to form a larger string as in the following example: String teste1 = "O.P. Processo Célula"; String teste2...
asked by 28.01.2014 / 15:12
2
answers

Adding a char to a char pointer in C / C ++

I need to add char to a char pointer. For example: I have a pointer of char named name, which receives "log", after the process, I want it to be "log1". I tried to implement this, but it did not work. bool trocarNome(c...
asked by 27.04.2016 / 19:33