Questions tagged as 'string'

1
answer

How to convert a normal integer to its bibliographic format in c?

I want to know how to convert, for example, the following string: "Barack Obama" for "OBAMA, Barack". That is, pro bibliographic format, type when citing authors of books / articles. But I want to know how to convert any name size to this...
asked by 19.10.2016 / 05:09
3
answers

Understand "," as "." when formatting

My Visual Studio is misunderstanding what I type (console): using System; namespace Uri_CSharp { class URI { static void Main(string[] args) { double raio = double.Parse(Console.ReadLine()), area;...
asked by 17.07.2016 / 15:59
3
answers

How to invert data [duplicate]

I'm trying to invert a date variable that displays the results like this: 2016/05/20 But I want a function in php that looks like this: 20/05/2016 How to do this?     
asked by 08.05.2016 / 18:32
2
answers

Inserting Single Quotes Null Field

I created a very simple application to simulate a small register of clients, but when testing the data manipulation by the application I could see in the database that the fields that are null in the register are inserted into the database with...
asked by 28.04.2016 / 23:04
1
answer

Would an alphabetical sequence counter be possible?

I'm doing a pascal code where one of my arrays has alphabet values (A to Z) for a personal project of type Questions and Answers / Meanings from A to Z : > aux[1]:= 'a'; aux[2]:= 'b'; aux[3]:= 'c'; ... aux[24]:= 'x'; aux[25]:= 'y'; aux[26]:=...
asked by 18.02.2016 / 05:04
1
answer

Find the index of all occurrences in a string with jquery

How to find the index of all occurrences of a one string within another string with jquery? Example: String all "three sad tigers for three wheat dishes, three wheat dishes for three sad tigers." String I want to find the indexes: "three"...
asked by 09.03.2016 / 14:29
2
answers

Remove white space from a string

I want to remove all the blanks from a string , but I do not know how to do it already tried to use replace but did not work.     
asked by 04.10.2015 / 19:40
1
answer

How to find specific values in a String?

I have to get the Ethernet + IPV4 adapter from Windows, so everything is quiet. I ran the process and stored everything in a String Buffer and sent it back: public String IP (String tarefa) { StringBuffer buffer = new StringBuff...
asked by 24.08.2015 / 13:36
1
answer

Java String byte array with negative numbers

I'm having trouble discovering the encoding of a string. The entry is: São Paulo The original reading of this content is not for me, because the text goes through a wrapper from Lua to Java. On my side, I already tried the following "...
asked by 28.01.2016 / 21:12
1
answer

Problem comparing strings and string being broken in two python rows

I was creating a game that scrambles words, and the user has 6 attempts to guess what the word is. I'll put the code here: import random def main(): while True: input('Presisone enter para sortear uma nova palavra.') palav...
asked by 04.05.2015 / 14:50