Questions tagged as 'string'

1
answer

Find string inside string without library string.h?

My function needs to check if a string is contained in another and say where the first place where the letter was the same occurred but is always returning the size of the first string What's wrong with my implementation? My code: void s...
asked by 16.06.2018 / 03:16
2
answers

String reading

char nome[100], endereco[100], sexo[100]; printf("Digite seu nome: "); scanf("%[^\n]s", nome); printf("Digite seu endereço: "); scanf("%[^\n]s", endereco); printf("Qual seu sexo: "); scanf("%[^\n]s", sexo); I have an erro...
asked by 15.08.2017 / 02:06
1
answer

Insert character by character of Russian alphabet into a char vector in C ++

Hello, I would like to know how to insert characters (from the manual form) of the Russian alphabet into a char vector, since I am trying to write the below and the problems in the printout. Here is the code: #include <iostream> int main...
asked by 14.08.2017 / 23:27
2
answers

Problems with function returning character vector in C ++

Follow the code: #include <iostream> char* criaVetor(){ char vetor[20]="Olá mundo!"; return vetor; } int main(){ char retorno[20]=criaVetor; std::cout << retorno; return 0; }    error: array must be i...
asked by 14.08.2017 / 16:54
2
answers

How to read Console strings?

I am trying to make a code that reads a string from the Console of the browser and assigns the value of the string in the id "txtTextoResposta" . To make it more illustrated, I want to do similar to C # , when we do this: stri...
asked by 08.07.2017 / 22:55
1
answer

Error in the comparison between an EditText and a String

I'm trying to compare the text entered in an EditText with an item in my ArrayList, but the condition is never true. int aux=-1; for (int i = 0; i < lista2.size(); i++) { if (edContato.getText().equals(lista2.get(i))){ aux = i;...
asked by 06.05.2017 / 23:19
2
answers

Organize data flow by string pattern

Friends, I'm working on a scraping project. At some point, I get a table on the screen in the form of a giant string, something like this: list = ('0004434-48.2010 \ n UNION \ n (30 business days) 07/07/2017 \ n 13/07/2017 \ n 0008767-77.2013...
asked by 17.07.2017 / 18:16
1
answer

Inverted path, walk backwards

Hello. I've been trying to know if I can reverse a path? How can I reverse a path and then follow normally? for example I need to revert a path to this string (LPCWSTR path =) so I need to get back a few folders and then follow the normal pat...
asked by 17.03.2017 / 04:14
2
answers

What is ISO-8859-1 string? [duplicate]

I need to use utf8_decode and utf8_encode from PHP, so I saw something about ISO-8859-1 string. What would that be? I do not want to know how to use, at the moment, I just want to know the meaning of ISO-8859-1.     
asked by 24.08.2017 / 18:31
1
answer

Convert ISO-8859-1 string to UTF-8 in java

My goal is to create a converter from ISO-8859-1 to UTF-8 . I already have the following code: import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.Input...
asked by 30.11.2016 / 13:23