Questions tagged as 'string'

1
answer

Shell in C: Segmentation error and execve function, what's wrong? [closed]

#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/wait.h> void type_prompt(){ printf("\n$~"); } void read_comman...
asked by 13.04.2018 / 17:52
0
answers

Error in String.replace Java

I'm having a hard time running String.replace("á","a") In my case I type canada and I want the canada exit, but in the output it appears instead of a square, as if there were an invalid character there.     
asked by 26.03.2018 / 05:30
1
answer

C separating string with commas into vectors

I want to separate each line of a file into 2 vectors: v [i] .date and v [i] .value. However, when I run the code, no value I print is correct, and the outputs are random values. Is there something I should change?    Input   02/20 / 18,1140...
asked by 19.03.2018 / 17:48
0
answers

C ++ - How to pass a string to a class

I have a problem when I try to pass a string to a class. In short, in the main program I'm going to read this string and move on to the class: cout << "----- Vamos as opcoes! -----" << endl; cout << "(1) - Adicionar um funcio...
asked by 27.03.2018 / 03:16
1
answer

Why does the array get too many lines?

private void abrirLabirintoToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog Abrir = new OpenFileDialog(); Abrir.ShowDialog(); string CarregaArq = null; string teste = null; //s...
asked by 16.03.2018 / 01:34
0
answers

Doubt - Generate random string of 6 characters in PHP

So, how do I generate a string like this: Z8Yjv.jpg I went to get a photo of a user here from Stack-OverFlow and the name of the photo came like this. I had thought of something like this: <?php $string = "ABCDEFGHIJKLMNOPQRSTUVWXYZab...
asked by 09.03.2018 / 05:02
0
answers

tls-450 plus integration

Good afternoon, I need to integrate with my system using Veeder-Root tls-450 plus. I need to make a socket connection, but I needed to know how to do it. If anyone can help me, I would be grateful.     
asked by 14.03.2018 / 18:38
0
answers

Avoid changing the special characters in URI writing

I'm using the google maps API in my project but I'm having a little problem. To mount the URL I'm using a URI that concatenates with buildUpon so with the example below. Uri uriBase = Uri.parse(urlBase).buildUpon() .appe...
asked by 06.03.2018 / 20:54
1
answer

How to convert a saved string to a .txt file, to an integer?

Example: test = open ('test.txt', 'w') test.write ('6000') test.close () How do I convert the contents of the .txt file to integer in order to be able to do operations with it? if you can not do this, how can I save data without losing it...
asked by 28.02.2018 / 18:02
4
answers

How to compare Strings in Java?

The == operator says that the Strings are different, and they store the same literal value, see example: public class TesteString { public static void main(String[] args) { String str1 = "teste"; String str2 = "Otes...
asked by 03.02.2014 / 16:19