I'm doing a job in openGL. I wanted to click on a window and a drawing appears where it was clicked. Since the 3D eh scenario wanted to know how I can get the coordinate value in Z.
Could someone tell you a step-by-step how to do? =)
I need to create a C program that removes (or copies) values from a queue using the output rules of a stack and adds them to a new structure.
I mounted as below but two errors occur:
"undefined reference to 'WinMain @ 16'
File not fou...
I'm having trouble with very large numbers. When I put the entrance
64 my program does not display the correct answer, remembering that all smaller numbers are with normal output.
Program exit:
0 kg
Expected output:
153722867...
I am doing an IQA (Water Quality Index) exercise where I need to conduct a series of accounts. I created the functions and everything but always the result always comes out the way it is in the image, I have already tested the isolated function...
Hello, I want to play a game of C in the C library using the curses library, I started, but I'm not finding a logic to draw the snake on the screen when the user presses the arrows, I want to know what a logic would be to draw it in according to...
How to calculate the size of the vector?
My code:
#include <stdio.h>
#include <stdlib.h>
int retornaMediana(int *vetor){
int tam=0;
tam = sizeof(vetor);
printf("TESTE: %d, %d, %d\n\n",vetor[0],vetor[1],vetor[2]);...
void imprime (char *v, int n) {
char *c;
for (c = v; c < v + n; v++)
printf ("%c", *c);
}
I have this function, but I do not understand what it is doing exactly and how the pointers behave in this case.
I'm starting to learn C, and I came across the following doubt:
When I ask the user to inform me a song or artist, he ends up informing me of a song with spaces, type "AS I AM" , but the program skips the part of the song and the artist...