Questions tagged as 'string'

1
answer

Seg Fault using strcat and strcpy

Here's my code: char CodificarCesar(char *texto_nao_codificado[256], int chave){ char alf[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','\n','char CodificarCesar(char *texto_nao_cod...
asked by 09.09.2017 / 04:26
2
answers

Remove data from within a String

In java I'm reading several lines from an HTML file and in it I have to pull some data and store in variables. And to remove this data I have to remove some tags and data that are within certain patterns. For example, to remove the tags I use...
asked by 09.09.2017 / 14:32
1
answer

How do I put the value of a variable inside a textbox?

People, I have a boring problem. I wanted to put the text I took from one textbox and put in another that is set to readonly. I wanted it to work as a label. I tried textchange gave error. private void btncalcular_Click(object sender, EventAr...
asked by 12.08.2017 / 07:11
1
answer

Error creating array of strings

I'm having problems trying to initialize a vector of strings so my code looks like this: #include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ char *str[3]; printf("DIGITE QUALQUER STRING: ");...
asked by 05.09.2017 / 21:47
1
answer

How to use cin.get () in C ++?

I would like to know more about the cin.get () function and also the difference between it and the getline () function because whenever I go to search something related to this I get more search results talking about getline () do than cin.get (...
asked by 06.08.2017 / 23:34
2
answers

Separate string variables json

I have the following string: string(292) " {"access_token":"ab5f49438xfbc2df2a6a927a02b5c2e2442am982c71ee8re4aee1b2c64783ddc7cab4050ed05d6aa", "token_type":"Bearer", "expires_in":300, "refresh_token":"ab4156db100f148b6cgd7e17097e1f1c25dcf32a53...
asked by 20.06.2017 / 15:24
1
answer

How to split the string after counting 50 characters

I have to count 50 characters and make a split in two variables. The ideal would be to split in the last space before 50 characters. This is to be able to put the address on two lines in the database. I have this like this: Dim Morada As...
asked by 19.06.2017 / 23:33
1
answer

How to put \ "in a String?

I'm trying to evaluate a PHP code using Java, so I need to replace all the " with \" in the code. The problem is that Java also has this escape character for " in a String. I was told to use \" , but the result was thi...
asked by 28.07.2017 / 17:58
1
answer

Problem with char returning strange characters

The intention is to replace all words toda with 0 , however after X characters it begins to return strange values as can be observed in the comments. I think I'm handling the parameters wrong, but at what point? Why? #include&l...
asked by 03.06.2017 / 18:06
1
answer

system () function does not accept string variable in c ++

In order to automate some backups that need to be done routinely, then I thought of using an app in dos to do, however I'm having problems compiling the executable because it seems to me that the function system() only accepts cha...
asked by 10.05.2017 / 20:34