Questions tagged as 'string'

0
answers

convert an array to an integer

you can convert every position of an array to an integer and save it in different variables. and how it would be done. I found that a string variable pdia become integer like this: $VarInt= (int)$varString; so try this way: for ($i=0; $i...
asked by 09.04.2018 / 23:59
0
answers

Message: Undefined offset: 2

Hi, I'm trying to convert each one, separately, from the positions of an array to an integer I control it with a for, I look for information but I could not find how to pass each one, it just went through the entire array as a single variable an...
asked by 09.04.2018 / 19:04
2
answers

Pointers to dynamic strings

-What I wanted to do, I could not implement it, is that when asking for a name and a surname to the user a priori we DO NOT KNOW what will be the stdin length that the user types. In the malloc line I put 10 to put as I could have put 20 but in...
asked by 07.04.2018 / 00:49
0
answers

How can I send this float data through STM32 F4 core; In the terminal I do not receive any value

I hope you can help me the truth I have already tried many things and I do not know what else I can do, thanks     
asked by 17.03.2018 / 20:16
2
answers

Compare 2 strings

The idea is that you put for example A and I have to pass it to number, more than number is the value of the index of the array where I have the letters, but it does not work. //Varianles String[] letras = {"a", "b", "c", "d", "e", "...
asked by 11.03.2018 / 14:03
1
answer

Extract word from a string from a symbol

I need to search in a chain, I give you an example: "Test text #palabra blablablabla" I would need to extract "#pablabra". I have seen that with "strpos ($ string," # ")" I can take the position where the # is, but how can I from that posi...
asked by 06.03.2018 / 10:54
1
answer

Read file by blocks How to optimize it? see the end of the post

Good morning dear community. I am a platform application development student and I have encountered a problem in class that brings me some headaches, to see if someone can help me or give me a clue. I have the following file (sudokus.txt):...
asked by 28.02.2018 / 03:30
0
answers

How to use str for file lines in Python?

When reading the lines of the file, some characters are always read as last characters, some white characters as spaces and the line change character ('\ n'). This causes the created file names to include these additional characters. For example...
asked by 01.03.2018 / 17:06
12
answers

How to correctly compare Strings (and objects) in Java?

I am creating a mini game in which the user tries to guess a name. But when I want to compare two text strings to see if they are equal it does not seem to work. final String miNombre = "Jordi"; Scanner input = new Scanner(System.in); System.o...
asked by 02.12.2015 / 13:35
1
answer

In question of performance is it more feasible to use null or empty?

What I want to know specifically is what should I use when making an insertion in a table of a database, we are talking about tables that can accommodate more than 5000 records. I have a field that in most cases is stored as an empty string. In...
asked by 26.01.2018 / 21:12