Questions tagged as 'string'

0
answers

String Concatenation in Assembly x86

I have to implement a function that concatenates a String3 pointed to by ptr3 to strings pointed to by ptr1 and ptr2. I do the main() in C, and the functions in Assembly x86. When executing, output is 123 and it should be 12345...
asked by 04.11.2017 / 00:52
1
answer

Integer array conversion in String

I am a beginner in Java and would like to learn how to convert an array of integers to a String.     
asked by 24.06.2014 / 05:50
4
answers

How to compare Strings in Java?

The == operator says that the Strings are different, and they store the same literal value, see example: public class TesteString { public static void main(String[] args) { String str1 = "teste"; String str2 = "Otes...
asked by 03.02.2014 / 16:19
1
answer

Export Table to Excel, Problems with String Numerica

I looked here in the Stack, but maybe I did not find the right question, I'm exporting data from PHP to Excel with HTML tags, it exports in a good, I happen to have a column that is String, for example "89551010326000103872", but I have tried to...
asked by 04.09.2017 / 19:16
0
answers

Array vector has n elements, but lenght returns "n + 1" in C

Hello, I have the following question: I have a vector and I'm sure it is passed to it only one element through the following loop: char uid[1]; while(indice1 < indice2){ printf("Valor de indice 1 %d, indice 2 %d\n", indice1, indice2)...
asked by 26.08.2017 / 13:47
3
answers

Delete part of a string and keep URL contained in it

Within a string there is an excerpt used by Wordpress to display the image in the middle of a story, is it possible for me to remove all of that portion of the string and take advantage of the URL of the image? $conteudonoticia = '[caption id=...
asked by 22.06.2017 / 19:32
1
answer

Convert strings to booleans

I'm dynamically adding a javascript and to its src I need to pass some parameters ... the following function creates this "querystring": var querystring = {a:'b',b:true,c:'d',e:false}; var query = Object.keys(querystring).map((ke...
asked by 10.04.2017 / 00:11
7
answers

How do I remove accents in a string?

I have a string áéíóú What I want to convert to aeiou How do I remove the accents? I need to save in the database as a URL.     
asked by 11.12.2013 / 16:51
0
answers

Can I pass a string, not previously stored in a vector, as a parameter to a function? [duplicate]

I wrote this function to remove the non characters from any string in c: char *repeticoes(char *s){ int i=0, j, cont=0; while(s[i]!='int main(void){ char s[20]="felicidade"; printf("%s",repeticoes(s)); } '){...
asked by 29.05.2017 / 20:17
2
answers

How to convert a list to string and vice versa?

I have a list: ('47075', 'josenestle', 'i need help') I do str1 = str (list) and I have it in string. However if you do list (str1) I do not retrieve my list. I can not find an obvious solution, help would be very grateful.     
asked by 30.04.2017 / 11:31