Questions tagged as 'c'

0
answers

Development logic of a virtual keyboard in c [closed]

I create a array containing the 127 characters ascii eg list(char(0, 1, 2, 3, 4, ...)) and add an identifier with each key with each item in the list - corresponding to their respective values. Implement the ALFA NUMERI...
asked by 23.05.2016 / 02:36
1
answer

Calculating the volume of uneven terrain [closed]

The code is to calculate the volume of an irregular surface where I am using a 2 x 2 array of maximum size 1000 x 1000 , which represents a rectangle, so the maximum area of the terrain is 1.000.000 m² , and I must use a varia...
asked by 06.12.2015 / 03:12
2
answers

Problem with pointer deallocation in chained list

I have a problem with the deallocation of pointers in my code a few days ago. I try to make sure that the point of my on-screen object is greater than one value, move this object out of memory, but for some reason this is not working and is givi...
asked by 02.10.2015 / 22:28
1
answer

Saving names

I want to allocate a string inside any structure so I can fetch these strings afterwards. I need to enter a condition to end the insertion of names. I'm thinking of a structure that is running until the end of the reading, I think it would be a...
asked by 11.02.2016 / 03:51
1
answer

Passing information from a file to an array

I have a problem, I want to receive a file and copy the information from this file to an array that I have allocated: Content that exists inside the file: 2..E.5..A......D ....1E....7B80.. F.8.A.......C.4. AC...3.F...E.61. .3...C.45..2..BF...
asked by 21.06.2015 / 04:09
0
answers

Pointers to Functions [closed]

I am facing a small problem with pointers to functions in a program for Microchip Pic Series 18 microcontrollers. The code shows the prototypes of two functions involved in the problem and a call to the function 'insert_tarefa', which MUST re...
asked by 24.09.2014 / 13:50
3
answers

include library in C is required?

I came across the following situation:    Ubuntu 16.01       gcc --version       gcc (GCC) 6.3.0   Copyright (C) 2016 Free Software Foundation, Inc.   This is free software; see the source for copying conditions. There is NO   warranty; not...
asked by 22.04.2017 / 15:41
2
answers

How to remove a variable from memory? [closed]

How do I remove a variable, not necessarily from the code, but from memory / register, in C? Hypothetical example: char meu_byte; //codigo deleta_da_memoria(meu_byte); That generates something like: pushb 0 ; Utiliza o byte call deleta...
asked by 04.01.2015 / 22:28
1
answer

Save list to file

I have an exercise that makes a list of trucks, cities, loads through a list, but I can not save a file (it's the last function) when I select the save option (# 7), it closes the program. What am I missing? My code: #include <stdio.h...
asked by 05.03.2017 / 18:07
2
answers

How do I force "while"?

This program allows you to calculate the table of up to 10 up to a given number x. But in the cycle of while after the first iteration it does not enter and jumps to the end. For example, if I enter 2 my output is: Introduza o numero...
asked by 17.08.2015 / 19:30