Questions tagged as 'string'

1
answer

Split string into parts with 2 parameters to find

Here is the code that takes the 2 column description of the table var descricao = $(elemento).closest('tr').find('td').eq('1').html(); This is the description    CALIFORNIA [2,90] [BRE25] [3x80] [BRD25] [ARTICLE: 1,000 - COLOR: 02] - W...
asked by 03.11.2017 / 03:15
1
answer

Find a string in a string

I have this String in oracle: 'Linked Order with Sale: 4575987/10' and would like to return only the order number in this case 4575987/10. So far the maximum I've achieved is by passing a fixed value, but you are going to invoke a fixed number I...
asked by 01.11.2017 / 13:11
0
answers

Check if the word exists in the string using array of strings and separate the string in a new array

I'm in a problem where I want a string to become an array with the words separated, but the code returns duplicate arrays var string = 'xicara,cafecafe'; var array1 = ['casa', 'xicara', 'xicarada', 'xicrinha', 'xi', 'carro', 'cafe', ',...
asked by 19.10.2017 / 15:35
2
answers

Incorrect value in subtraction of binary numbers using strings

I made this code and it basically gets two numbers in binaries (without separating spaces between bits), and performs (at least in the values in which I tested) the subtraction correctly. I tried to warn myself if one of the numbers is smaller t...
asked by 19.09.2017 / 18:28
1
answer

Compare two simple strings in C, input with scanf (); [duplicate]

What I want to do is very simple. I make the program ask for a password, the program compares, and if the password is valid, the program proceeds. An example: char pass[5]; printf("insira a senha: "); while(pass!="asdfg") { //enquanto a...
asked by 20.09.2017 / 20:55
4
answers

What does the "@" sign in C # mean?

I have the following string @"\servidor01\arquivos" . What is the function of @ in front of string ?     
asked by 20.11.2014 / 12:56
2
answers

Strings counter in ArrayList [duplicate]

I need the program to return the amount of times each% of% was repeated within String , but I could not think of a way to have my counter reused for each item, as it shows there at the output, he says that the data 3 repeated 4, 5 and 6...
asked by 30.08.2017 / 19:39
1
answer

String for an array inside a loop - javascript / nodejs

I want to pass the strings of a txt file to an array and as soon as each line was passed to the array the program would run it normally, then it would repeat and pick up the second string from the txt file. Everything is being done in javascript...
asked by 10.09.2017 / 14:42
1
answer

More elegant ways to reverse integers, arrays, and strings in Python

Save! I've been looking for elegant ways to reverse strings, arrays, and integers in Python. What do you think of my codes below and what do they suggest to improve them? They work ... Thank you! frase = 'eu gosto de python'[::-1] num...
asked by 28.10.2015 / 00:33
1
answer

Connection Error mysql_query

#include <mysql/mysql.h> #include <iostream> MYSQL connection; void data_insert(); int main(){ mysql_init(&connection); if(mysql_real_connect(&connection,"localhost","root","irineuvocênãosabenemeu","teste",0,NULL,0...
asked by 08.09.2017 / 19:52