Questions tagged as 'string'

1
answer

Function to replace character does not work when data comes from mysql

I use a function to replace characters with accents or special characters, but when I used the same function with data coming from MySQL the function is not replacing characters. Assuming the city is Foz do Iguaçu , the function...
asked by 06.06.2015 / 03:20
1
answer

Help in genealogical tree in C

Good afternoon, I need to build a genealogical tree in c, but I only find examples with numbers that are compared, and if it is smaller than the previous one, it is thrown to the left, but my doubt is that I need to build a tree with String. Bel...
asked by 08.06.2015 / 19:13
1
answer

How to convert a string to a number in Lua?

In Lua, how to convert a value of type string to type number (integer, float, etc.)?     
asked by 24.04.2015 / 17:05
1
answer

About key command (lua script)

Is there any way I can put something in the script, so that if I press a key, it responds with a command? If so, how?     
asked by 05.02.2015 / 21:11
1
answer

How can I show the next 7 Days (Agenda) C #

Live, good night I'm working on a C # solution, in which I have to develop a schedule and I plan to show the events (if any) at a certain point, as well as show the following 7 days, even if they do not have marked events. > I developed a m...
asked by 01.02.2015 / 00:26
2
answers

Convert an integer from the database into an Array

I want to convert an integer from the DB into an Array, for example: I have the number of deliveries registered in the DB, let's assume that the 'x' production is completed in 5 deliveries. this number 5 is entered in the DB as a String, a...
asked by 26.12.2014 / 14:49
3
answers

Read a string with line break

I need to compare two strings to see if they are the same. One of them is in a struct vector and has been dealt with fgets , so it is broken. The other is informed by the keyboard. I would like to know if there is any function to read t...
asked by 07.12.2014 / 23:11
1
answer

Toggle action of a button

I've been researching the internet and found nothing that can explain me how I do to toggle the action of a button in Java ... Example: I have a button that when I tighten it I want it to change the texts of 2 labels, and when I press it aga...
asked by 17.03.2015 / 18:44
1
answer

Check if field is empty, using custom read function in C

void vazio(void) { char *str = NULL, c;//apontando para null int i = 0, j = 1; //alocação de memória para str str = (char *) malloc (sizeof(char)); printf("Informe a string: "); //ler a string while (c != '\n') {...
asked by 24.01.2015 / 01:41
2
answers

Why can not I read a string in the console?

I'm trying to read a string typed in the console, which is halfway through the code, but what happens is that it passes straight through and displays the final information. using System; namespace Viernes { class Program { st...
asked by 23.06.2014 / 17:49