Questions tagged as 'string'

1
answer

Something equivalent to sstream library from C ++ to C

I need something similar to the stringstream that has in C language for C language, I need a lot of it because I want to perform querys on a database using C (C mysql connector). As I had no idea something like what I had in the sstream libra...
asked by 01.03.2018 / 02:39
1
answer

Custom ordering in Python

I have a list foo = ["BCB", "CAB", "CBC"] and a specific alphabetical order bar = "ACB" . The result with this specific order should be resultado = ["CAB", "CBC", "BCB"] How do I sort this list?     
asked by 17.02.2018 / 18:15
1
answer

How to compare String with String received in a .jsp?

I have a html page and it sends a form with method POST type, I get the data like this: String email = request.getParameter("user"); When I compare the email string with another string containing the same text it makes me false. Why does t...
asked by 12.03.2018 / 21:18
1
answer

Convert Blob to Non-angular String

Hello, I have a code in angularJS but it only works when I am in the browser debug. $scope.upload=function(){ var newFiles = []; $scope.carregando = true; angular.forEach($scope.files, function (item) {...
asked by 04.03.2018 / 05:50
1
answer

Regular expression PHP - Text of a site

I have a string Cause value: <'span id="i_valorCausa'">51.899,51<'/span'><'BR'> I need to get what is between <'span id="i_valorCausa'> <'/span'> I tried this way: The $content is w...
asked by 06.02.2018 / 18:22
1
answer

C program that reads a text file and prints the lines in reverse order

I would like to know why running the script below, lines appear spaced, except the first line. Input Linha1 Linha2 Linha3 Linha4 Expected output Produtos: - Linha3 - Linha4 - Linha2 - Linha1 Output Obtained Produtos: - Lin...
asked by 09.01.2018 / 16:12
1
answer

Convert String to INT

How to convert the string of the variable fg to an integer? if (connectionIsOpened) { String s = "INSERT INTO jogador(nome) VALUES " + "('" + this.playerName + "'" + ")"; connection.executeUpdate(s); String fg = "SE...
asked by 04.02.2018 / 17:08
1
answer

Doubt searching for sub string, inside a string

I've done everything the question asked but I'm taking 70% error. Issue Link My code #include <stdio.h> #include <string.h> #include <ctype.h> int main(int argc, char** argv) { char nome[10000], zelda[6] = "zelda",...
asked by 03.02.2018 / 23:37
1
answer

Error when searching for a string

   Hello, how are you?   I'm having a problem running this code.   From the second "While True" the program can not find the written product. The same has been registered just above. I've checked this code from the bottom to the bottom and found...
asked by 04.02.2018 / 21:34
2
answers

Strings and Arrays, problems getting the right result

The purpose of the program is to display information in one option and a 10-question inquiry in another option. Each discipline has 10 questions, and each discipline is done in a subprogram. the problem is the use of the string. typedef struct...
asked by 21.01.2018 / 19:06