Questions tagged as 'string'

3
answers

Problem in breaking a String

I have a string that is concatenated inside a loop , I wanted a new line with the concatenated values to be created for each loop . Here is the code I'm using: mensagem =""; for (int i = 0; i < titulosReceber.Rows.Count; i++) men...
asked by 05.08.2015 / 15:19
1
answer

Concatenate string with integer

I have a variable that is a vector of char, and in this vector I need to insert a number that is an integer, fetching it from another variable: int quantidade; char id[3] = 'p'; For example, if the quantity is 2, I need the string id to be...
asked by 29.06.2015 / 01:17
1
answer

Java - String - Comparison [duplicate]

I'm not understanding a simple comparison I'm making, but it's not running as I think it should. Situation I ask the user to enter the name of the person, and capture with String nome = scan.next(); And sending to this function...
asked by 28.06.2015 / 00:30
1
answer

I can not call a string

I've created an algorithm that simulates a stock of a DVD sale. It stores name, price, and quantity. It has some functions and enters them, one that informs the quantity and the price of a specific dvd and it is in that I am having problems....
asked by 14.05.2015 / 20:37
2
answers

Read a string separated by a comma

My reading has been set to the point of comma, but he is reading every field to the end of the line when you read the string. The code is read correctly, but only in code. #include <stdio.h> #include <string.h> struct setorEletron...
asked by 02.12.2014 / 19:36
2
answers

Error reading, strings and integers

#include <stdio.h> struct tetris{ char nome[16]; int pontuacao; }; int main(){ int i, nteste = 1, J, k, total = 0, maior, menor, pontos; while (scanf("%d\n", &J) && J != 0){ struct tetris jogado...
asked by 03.09.2015 / 05:07
2
answers

Selecting / Cleaning information in a column

I have a database with thousands of rows, but in one of the columns the data looks like this: XLOCAL Estirão do Equador, Rio Javari (04°27'S;71°30'W) Alto Rio Paru de Oeste, Posto Tiriós (02°15'N;55°59'W) Ipixuna do Pará, Rodovia Belém-Brasíli...
asked by 24.10.2018 / 00:36
1
answer

File with strange characters

I have a string that receives an input value from the keyboard and a file that contains a string. What I need to do is compare the string typed with the file string and see if they are the same, but I went to see what kind of string the file was...
asked by 13.08.2018 / 20:26
1
answer

How to concatenate strings in a list? [duplicate]

If I have a list of string objects and want to concatenate all these items, how do I do this?  For example: row1 = ['___', '___', '___'] I would like to print: '___|___|___' I've been able to do this, but it's not very p...
asked by 22.11.2018 / 12:47
3
answers

Use of "Contains" in search expression

I have a string _Users of type List , it contains several lines. Each line consists of an integer and a comma-separated string (usually just a string): ID (numbers only), name (letters and numbers ). What I'm trying to do is...
asked by 23.11.2018 / 21:44