Questions tagged as 'string'

1
answer

Error at start time string [closed]

#include<stdio.h> int main(){ int numero,unidade,dezena,centena; char *unidades[]={"I","II","III","IV","V","VI","VII","VIII","IX"}; char *dezenas[]={"X","XX","XXX","XL","L","LX","LXX","LXXX","XC"}; char *centenas[]={"C","CC...
asked by 25.04.2018 / 01:10
2
answers

How to format a Double by changing the semicolon and keeping 2 decimal places in VB.NET

I need to transform the result from a value of As Double to the Brazilian numeric standard that uses a comma instead of a dot (and also keep only 2 decimal places), thus: ' variaveis de teste ' valores esperados de...
asked by 25.01.2018 / 16:59
2
answers

detect char repeated in string c ++

Hello, I am trying to make a code to detect the occurrence of parentheses Na(CO5(Pt Let's assume something like that, I would have to detect the position of the two parentheses that are in the string. I tried to use string.find but it al...
asked by 14.12.2017 / 03:33
1
answer

Comparison for remove_if in c ++ does not accept char

Hello, I'm trying to use a    remove_if In c ++ however when it arrives at the input part I can not determine for it to detect if the string I'm pointing has a char. Here is my code: temp.erase(remove_if(temp.begin(), temp.end(), "("),...
asked by 14.12.2017 / 14:58
1
answer

Convert String encoded to byte

I am the AES-GCM encryption user on my server, and decrypt it on my android client. However I'm having a conversion problem. We assume that: 1- Encrypted text generates value in bytes: [B@541fe858 2- This value is embedded in...
asked by 19.12.2017 / 18:55
1
answer

Error returning StringStr

I have the following function in php it returns me a string from the page so I can do if and else with the returned information, however an error occurs: Parse error: syntax error, unexpected '=' in / storage / ssd3 / 854/1950854 / public_html /...
asked by 31.08.2017 / 03:08
1
answer

String string in Javascript

I'm developing an application in VueJS and on a screen I have two input's of time and are being saved in MongoDB as String. However the input only accepts in the time format and when I click on the grid and the inputs are filled with the data of...
asked by 06.10.2017 / 14:58
2
answers

Convert String to Integer on Android

Galera, I had already opened a question regarding this subject but in java ( Here ), I could not solve it and now in an android apk I have the same problem. I have a service with a thread running a socket server, in it using ResultReceiver ma...
asked by 04.10.2017 / 23:23
1
answer

Pick up only numbers from a String (Tokenizer)

Hello, I'm doing a project with stack and queue, and I'm in a part that I need to get the operator and put in a stack and the number in a queue. But it's not working this part to get the number, someone has a light to work, because what I used...
asked by 16.03.2017 / 23:51
2
answers

How to delete an element from an Array String?

I'm having the following compile error: del(alimentos[i]) TypeError: 'str' object doesn't support item deletion What did I do wrong? I would like to remove the typed element from the list. My code: dieta = [] alimentos = "" comer =...
asked by 12.05.2017 / 22:23