Questions tagged as 'string'

1
answer

Error reading string with gets ();

I have problems reading a string in c ++. Since the strings do not have a character limit (they are dynamic), I thought I would read them with gets in the following way: #include<iostream> #include<cstdio> using namespace std;...
asked by 15.10.2017 / 02:39
3
answers

How to remove characters in a string string in C #

I have a problem cutting this string string . I get it by scanner, but the scanner pulls out prefixes and suffixes and I want to eliminate them. The code works for me with a string like this ~200|12345678~ and returns 12345678...
asked by 11.11.2016 / 21:16
1
answer

Convert String to decimals android studio

I'm developing an app in android studio, the app is already somewhat advanced and only things are being fine-tuned, such as sending me through a webservices in asmx which I am consuming with SOAP, sending me a method called CXCPSaldoDocume...
asked by 05.05.2016 / 01:59
1
answer

Detect if in two different chains there is at least 1 equal character [closed]

I would like to know how to make a quick comparison between two chains to know if they share at least 1 character in common. Example: I have manzana and piña . In this case there is a coincidence. The a is present in...
asked by 22.03.2017 / 02:37
2
answers

Convert Integer to String, with leading zeros?

I'm manipulating dates, and I need to convert ints to String without losing the number in front. That is, 01, 02, 03, 04 I've tried String.valueOf() and Integer.ToString() , but it eliminates the zero on the left thanks in...
asked by 28.10.2018 / 20:48
1
answer

Problem removing blanks at the end of a char type pointer *

I have a problem with this function. I'm trying to eliminate blank spaces at the end of a char * pointer. Something like this: char *ptr = "Soy un puntero dinámico y me sobran espacios al final "; With the difference that this is s...
asked by 12.06.2018 / 14:23
1
answer

In Python Pandas how can I filter a dataFrame with part of the content of a string?

I have a dataFrame that has a column named 'linea' . I want to filter the dataFrame only with the lines that have the word "GRANEL" in its content and discard all other lines. To filter currently I use the code: lista_produccion_t...
asked by 19.01.2018 / 20:37
2
answers

Enter ascii code inside quotes c ++

Could you tell me how to insert ascii codes in "" ? For example insert 3 (decimal) which in ascii means End of text within char asd = "" . Or within string asd = "" And I also saw that \n is used to jump a...
asked by 13.05.2017 / 22:53
1
answer

Cut with Javascript a String indicating Strings as start and end

I have a string that contains code HTML with tags <img> in it, I need to create an array with the src of each img but I can not tell you by numbers where to cut, because I do not know where the tag appears i...
asked by 19.01.2017 / 11:12
1
answer

Random characters at the end of string

I have done two functions of simple encryption of strings in C. It seems to be fine but when it comes to displaying the result, 2 random characters are added to the end of the resulting string. The function what it does is create a new string...
asked by 18.10.2016 / 00:33