Questions tagged as 'string'

1
answer

Save the contents of a file in another file - python

I'm trying to read information from a file and save it in a new file after passing all the information to lowercase and removing punctuation characters. For this I created a ReadFile () function that reads the file in question and saves it to a...
asked by 10.12.2018 / 15:54
1
answer

"strcpy" behaving strangely depending on how it is placed in the "if"

What's going on here? #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void escolha_simb(char *jog1, char *jog2) //** escolhe quem vai ser x ou o { char esc; while (1) {...
asked by 26.11.2018 / 21:35
1
answer

Problem with storing and printing strings in C

I'm picking up words from a text file, and at the time of printing they're all right except when I store them in a vector. If I store them in a vector, at the time of printing, some random characters come out before the words. void leArquivo(F...
asked by 17.11.2018 / 18:13
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

My script that searches for a string in another is taking too long

My script loads the command1 (file1) and saves the first column of all rows in a vector, later it will look for each substring of that vector in a file 2 (of command2). The problem is that file 1 has about 3,000,000,000 lines and file 2 has abou...
asked by 18.11.2018 / 15:12
0
answers

Check string in a file and create email without "Junior, grandson and child"

I need to check within the list below: NAME, REGISTRATION FELIPE OLIVEIRA DE JESUS, 71 HENRIQUE HIROMI SHIMADA, 67 ISAAC DE OLIVEIRA PIRES, 52 JONES SABINO SILVA, 4 LUCAS PEREIRA CORREA DE SOUZA, 42 MARCOS HENRIQUE RIOS PEREIRA, 58 MARCOS PAU...
asked by 07.10.2018 / 23:55
0
answers

Transform strings into array or floats?

I have a problem: the user inserts two values, via graphical interface, separated by commas (I tested put in interface 10,0), and I need to transform these values into values that I can do accounts. I tried the code below, and I tested it by sta...
asked by 30.09.2018 / 22:00
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

NSLocalizedString does not recognize Localizable.strings strings

Next I'm trying to use the swift string localization system, but apparently it does not recognize the strings, for example instead of appearing the string Home appears txtinicio, I'm trying to access the strings like this: NSLocalizedString("t...
asked by 13.09.2018 / 16:03
0
answers

When printing string, nonsense characters are displayed [duplicate]

I need to do a program that calculates the average salary of a company, asking the user for the number of employees, the name and salary of each employee and returning the average, the name of the employee with the highest salary and the name...
asked by 09.09.2018 / 22:06