Questions tagged as 'string'

3
answers

Detect no characters in a string

How do I detect existence of non-characters like this in a string? �*�v��R�<�     
asked by 06.06.2014 / 01:05
2
answers

Search for a string anywhere in List C #

Good afternoon. I would like to know how to search for a given string anywhere in the list. Ex .: string "123". It can be in Pessoa.id , Pessoa.Nome , Endereco.id , Endereco.Rua or Endereco.CEP ; List of People...
asked by 13.10.2016 / 22:16
1
answer

Error accessing string vector

I have the following code: #include <stdio.h> #include<stdlib.h> #include<string.h> int main() { char v[]= {'Brasil', 'Alemanha', Japão'}; int i = 0; for (i=0; i<4; i++){ printf("%s", v[i]); } } Ho...
asked by 30.10.2016 / 01:23
1
answer

How to add elements of a list in a dictionary in Python3

Good afternoon, I'm having trouble adding elements from a list into a dictionary. The elements of the list to put in the dictionary are: ['Joao', '83889023', 'Maria', '81944356', 'Marcos', '32258899', 'Ana', '88235423', 'George', '1254345...
asked by 14.06.2018 / 20:36
3
answers

How to convert date in dd / mm / yyyy format?

Once I published my app, I started getting the dates in American format like this: 9/14/2016 12:00:00 AM How to format for dd/MM/yyyy ? I tried convert.ToDateTime() more does not work.     
asked by 14.09.2016 / 18:11
2
answers

First item returns undefined

I'm trying to print a split , but after passing for , the first value returns as undefined , could you tell me what it could be? function parteTexto() { var teste; var texto = document.getElementById("caixa").value;...
asked by 23.09.2017 / 04:28
1
answer

Make Variable with multiple names and a single Value String

It would be possible to create a single variable that has the mutual influence of other names on it. In other words, different names for the same statement var , and in the end will have the same value. Example I'm doing this:...
asked by 07.06.2016 / 05:09
2
answers

How to read numbers from a txt file in C #? [closed]

This is an example file: 2 0.03159527 0.1990048 0.9794891 0.02173799 0.9969404 0.07508247 The first number indicates how many lines are, for each line there are always three numbers I tried to do something like this: Vector3[] Load...
asked by 21.07.2017 / 22:40
2
answers

How to request input data N times, and concatenate this data

First I asked the user to enter the amount of links he wanted to add to the file (in this case a string ), hence if he type 4, I want ask the question "Download Link:" four times for it and add all the answers to that question in a string ....
asked by 06.04.2015 / 04:02
1
answer

Integer array conversion in String

I am a beginner in Java and would like to learn how to convert an array of integers to a String.     
asked by 24.06.2014 / 05:50