Questions tagged as 'string'

1
answer

Convert String to JSON

I would like some help to understand this conversion that I am trying to do but it is generating an exception, see: protected void onPostExecute(String resultado) { if(resultado.contains("login_erro")) { Toast.m...
asked by 27.11.2016 / 16:01
2
answers

Separating substrings and storing in C ++ variables

So, I created a function that reads a text file and saves, line by line, into a vector of strings by removing the commas. The file entry is: add $t2, $t3, $t4 sub $t5, $t6, $t7 addi $t6, $t7, 4 Applying the function: void openFile(char...
asked by 14.10.2016 / 04:04
1
answer

Read a specific sentence from a file and stop at it

I want to store a part of a file in a string : Bruno Mossa Rezende 5 2 7 6 22 22 0.13 8 19 141 0.17 260 2 320 5.42 43 22 6 0.90 0 0 5 From this file I want to store in a string "Bruno Mossa Rezende", I do not want the numbers at the moment...
asked by 20.08.2016 / 03:36
0
answers

Encrypting / Decrypting strings with Delphi

For the sake of knowledge, I would like to create my own very complex function for encrypting and decrypting program strings. I got this piece of code from the internet s1[1] := Char((Byte(s1[1]) shl 4) or (Byte(s1[1]) shr 4)); . It is...
asked by 21.07.2016 / 21:40
1
answer

Error Segmentation fault (core dumped) in code reading and breaking strings

I need to read each line of an input file, break it into tokens and save each token in a position of a struct. I'm able to do this partially, but at a certain point in the file, segmentation fault occurs and the program does not read the file co...
asked by 26.06.2016 / 23:49
1
answer

Counting Numbers using Array in C

How to count integers using an array in C in this model: Entry > two strings with "integers" ex: 8 15 Output > A string with range numbers, inclusive: ex: 8 9 10 11 12 13 14 15. Probably a basic question, but I'm a beginner...
asked by 18.10.2016 / 15:58
1
answer

I can not write to JTextArea

I have the class: import javax.swing.JTextArea; public class Semantico { private String tipo; private String variavel; public void verificaSem(String stipo, String svariavel, JTextArea txtSemantico){ this.tipo = stipo; this.variav...
asked by 08.06.2016 / 19:09
0
answers

Use AsyncTask in web page data capture in Android app

Good morning, plus a newbie in android development. Going straight to the point, I would like to know how to call an AsyncTask, which captures a String in a webpage, inside another class, passing the string fetched to a TextField. I confess that...
asked by 17.05.2016 / 10:29
0
answers

Capturing site content and storing in a database

Here the site that has the vacancies    If you can get inside it and see how it works. I need to get the titles of the vacancies and the descriptions that contain them as: Company, Area and Requirements . My question is how do I get...
asked by 04.04.2016 / 18:17
2
answers

How to get a snippet of a string?

I have a string like this: ~/Areas/Teste/Views/home/index.cshtml I only need the word next to ~/Areas/ , in the case Teste (remembering that word may vary in size). How do I?     
asked by 09.10.2014 / 15:56