Questions tagged as 'string'

1
answer

Split "100000000000" in JQUERY [closed]

I need to separate all the characters of a string into an array, and I have a problem, my code is as follows var PISCampos = campos.split(""); When I send in the variable fields the following string: "011001000000". Everything works, and I...
asked by 20.10.2016 / 17:12
1
answer

Print a list of objects as a string in Python

I'm doing a program in python (2.7) where I get infos of a file, and storing it as objects in a list, I'd like to print the list but only return the addresses, I'm learning to program in python and no answer What a find for that serves me. How c...
asked by 28.07.2016 / 22:00
2
answers

Doubt in string, and comparison

I'm doubtful in the following exercise:    Write a C program that receives two strings via standard input and   whether the second string is contained in the first string, that is, if the   second string is a segment of the first. You may con...
asked by 05.05.2016 / 16:04
1
answer

PHP Arrays and Strings Interface [closed]

Situation I have a page in PHP that does CNPJ searches and returns the values, but as it is not formatted, the results appear in ARRAY and STRINGS . Example array(23) { [0]=> string(18) "XX.XXX.XXX/XXXX-XX" [1]=&g...
asked by 05.04.2016 / 18:38
2
answers

Get elapsed time of a string

I wanted to calculate the time now with what I get from a string like this: 2016-04-16T15:55:53Z But the time is three hours higher than our spindle, I wanted some output like: Já se decorreu 0 horas, 0 minutos e 0 segundos...     
asked by 16.04.2016 / 20:09
2
answers

Error comparing two strings C

I enter a value on the command line. That is in binary vector. But if it is not returned to the printf message. But my problem is that it always goes into if , regardless of whether it is binary or not. #include <stdio.h> #i...
asked by 24.09.2016 / 10:37
2
answers

Conversion from byte array to string when compiling revealing string in compiled code in C

I'm using the function below to do the conversion from byte array to string , but when parsing the compiled code I notice that string is shown clearly ( using a hex editor ) , which I do not want. char arr_code[] = {79, 99,...
asked by 16.09.2016 / 07:54
1
answer

Adding character to string

Good person my doubt and the following, I have the following situation: I have the following variable >>> a = "EXAMPLE" Let's suppose I had to remove the letter "M" from the string, in this case I would do >>> a = a.r...
asked by 29.12.2015 / 04:38
1
answer

Find words in a string

I'm creating a function in PHP that gets a string . Then it should search within that string words within brackets and save them in an array. Is there a function that performs the search for just those words and save them to an a...
asked by 20.09.2015 / 17:44
1
answer

Problem in condition to handle string

It was meant to work only with lowercase letters and when it came to symbols did not change, but they are being altered. What's the problem? #include <stdio.h> int main() { char texto[100]; int i = 0,j = 0,con,tam; printf("texto\n");...
asked by 18.10.2015 / 17:51