Questions tagged as 'string'

1
answer

Checking string within a function in C

Greetings! I am creating a C program where the user can change the state of a sensor entering the sensor name and 1 or 0 to change its status, 1 for on and 0 for off. However, when I try to check this condition out of the main, in a function is...
asked by 24.02.2018 / 23:13
1
answer

Convert numeric value to string javascript [duplicate]

I'm creating a receipt layout and I need the receipt value to be broken down into the body of the receipt, for example: Turn $ 45.51 into Forty-five Reais and fifty-one cents. Is there any library that does this, and if not, any tips on...
asked by 20.02.2018 / 18:10
1
answer

How to create an array with the same size as another array without copying it?

private void InversaoString(string Texto, int Tamanho) { char[] arrChar = Texto.ToCharArray(); char arrChar2; int indice = 0; for(Tamanho = arrChar.Length-1; Tamanho>=0; Tamanho--) {...
asked by 17.02.2018 / 19:08
1
answer

Desktop application position

Good evening guys I'm having a problem I'll try to explain: I created a desktop app and I need your position on the screen to take a photo ... 1st step get posY , and X with getX , GetY , already fis. I put these valu...
asked by 07.02.2018 / 20:49
0
answers

How to make a list of words in a selectable application

I'm doing a search using the Houaiss Dictionary in its electronic version. In it, searches are returned with a word list that can not be selected or copied. As in the image below: I'd like to know if you have any way to make this list s...
asked by 15.02.2018 / 19:45
0
answers

Literal strings Crown Moon

I'm kind of lost with \t . In the console, it works and in the simulator it is ignored. If anyone knows of a possible solution. local myText = display.newText("a\tb", 200, 100, native.systemFont, 16) print(myText.text) Or: a = "oi"...
asked by 30.03.2018 / 01:45
0
answers

Strings in JAVA [duplicate]

Once I worked with a program where I had a txt file with all values of strings and in the code I just referred, so everywhere I used the same string I just needed to change in txt and there was still no problem using accents or characters spec...
asked by 29.01.2018 / 11:50
1
answer

What does the "$" symbol mean before a string?

Viewing a code here in SOpt, I noticed the use of the "$" symbol and I was not sure how to use it. What is the "$" symbol before a string ? What is it for? Why use it? Example using static System.Console; public class Program {...
asked by 07.10.2015 / 14:35
3
answers

How to put a ";" at the end of the string, program in c

I would like to know what to do for the ";" no print appears after of the string and not before . I'm new to programming and would like to appeal to your help. Thank you Input Linha1 Linha2 Linha3 Linha4 Expected output Produ...
asked by 13.01.2018 / 18:09
2
answers

Does the character '' (SPACE) count in the string in the C language?

For example, you will only save the first letters in the array before the space, because? Does anyone know how to explain it? #include <stdio.h> int main(void){ char nome[20]; printf("Digite seu nome: "); scanf("%s"...
asked by 15.01.2018 / 14:11