Questions tagged as 'string'

1
answer

Why Shortstring consumes more memory than a common String

I've done an example here to see how much memory consumes each variable and I noticed that a variable of type ShortString consumes 256 while a variable of type String consumes only 4. Here's an example for verification: unit Unit...
asked by 19.05.2017 / 15:29
2
answers

Removing character double quotes "

I have a code that reads a CSV and saves the information in the database, however I ended up getting a "different" CSV from what I am used to reading. This CSV comes with double quotation marks in the information. Ex: "0", "20151109", "171729...
asked by 21.03.2016 / 19:24
2
answers

How to split a string with a delimiter in PHP? [duplicate]

I have a string "1b00bd515bf8cbc5a86f3b714361fab6" and I want to break it down like this: "1b00bd51-5bf8cbc5-a86f3b71-4361fab6" HOW DO I DO IT?     
asked by 27.04.2015 / 14:17
2
answers

Break a string containing a polynomial

I created a class with two properties as in the example below: class Polinomio { private int coeficientes; private int expoente; } I will create a list to receive a polynomial type where I will receive the terms to perform the addit...
asked by 03.06.2015 / 22:02
1
answer

Palindrome in C ++

The code below works, receives what was typed and stores the same, but does not make the logic to show if it is palindrome or not and does not display the result for the user. Please, where did I go wrong and how to fix it? #include <ios...
asked by 09.10.2014 / 21:18
1
answer

Convert string to specific format in date

I have a string "sex, nov 6" and need to convert to DateTime . I'm doing it this way: DateTime datetime = DateTime.Parse(gridT.Columns[e.ColumnIndex].HeaderText.ToString()); But it is not working. How can I do this conv...
asked by 06.11.2015 / 12:42
1
answer

How to concatenate two strings?

Assuming I have two strings, Olá  and mundo! , how do I concatenate them using R?     
asked by 10.09.2016 / 16:34
2
answers

Compare value at each position of the String in Java?

I'm having trouble comparing a value at each position of a String , follow the example below: parametro = "30,60,90"; private int countVirgulas(String parametro) { int count = 0; for (int i = 0; i <= parametro.length(); i++) {...
asked by 30.12.2015 / 11:23
1
answer

Working with Struct and problem in print, changing Struct and deleting a Struct [closed]

I have a job of the faculty to do that is to create a struct of "Library Register" (cataloging code, name of the work, name of the author, publisher, donated works of each area, number of pages) with options of "Register book, search for catalog...
asked by 19.06.2014 / 19:20
1
answer

Convert string to array

I get data from my database that comes in this way 1,2,3,4,5 and I need to run each number, because each number is a user ID and I want it to display each separately without a comma or anything, I tried to give foreach But I could not, ho...
asked by 21.06.2014 / 17:06