Posts by CiroboyBR • 49 points
7 posts
-
1
votes1
answer108
viewsA: word manipulation with Allegro
You can read letter by letter, I still have a function that used to read the player’s name, this function was in a loop together with the textout, which drew the player’s name as the player typed:…
-
-2
votes2
answers874
viewsA: What does while(x-) mean in C language?
The implicit condition of while is "!= 0" the "a--" is not testing anything.
-
-1
votes1
answer130
viewsA: Error with wxWidgets wxmsw30u_gcc_custom.dll
You need to put this DLL in the program folder, if you do not want to do this, you can put the DLL in the folder "C: Windows System32" or in the "C: Windows Syswow64", in doubt put in the two…
-
-1
votes3
answers314
viewsA: unite 2 vectors (a[10], b[10]) into a vector c[20]
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int i, a[10], b[10], c[20]; srand(time(NULL)); for(i = 0; i < 10; i++) { a[i] = rand()%20; b[i] =…
-
0
votes5
answers5371
viewsA: Split a string with empty spaces
You can format the string character by character. Example: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char s[] = "1444771699,Andre…
-
0
votes1
answer797
viewsA: ASCII value for char or Int value for ASCII C
You can create a char type variable, and match it to the integer value, then just compare the char to the file value. char c; c = 125; This is because the char type is a 1 byte variable whose value…
-
0
votes2
answers201
viewsA: Error in keyboard events in Allegro
I used this in a little game I made, I had to type the name, then I concatenated the string with the typed key: //FUNÇÃO PARA INSERIR NOMES void LE_TECLADO() { int tam; readkey(); if (strlen(nome)…