Questions tagged as 'c'

1
answer

Error importing structs from a header file

I need to use the following structures without changing their implementations from a .h file. typedef unsigned long int chave_t; typedef unsigned long int conteudo_t; typedef struct entrada_hash{ chave_t chave; conteudo_t * con...
asked by 10.04.2016 / 18:37
2
answers

How to get the serial number or ID of a USB stick on the MS-DOS system?

I've tried using some tools to get hardware information in DOS, but they did not have source code for free use. I need a code solution that returns me the serial number or ID in the MS-DOS environment.     
asked by 14.03.2016 / 21:50
1
answer

Problem with reading Bitmaps in C

I'm having trouble reading Bitmap files. The results are not expected. Size is always the same regardless of which image I open The height and width do not match the size stated in the image viewer Color values are not always the...
asked by 04.04.2016 / 23:23
1
answer

Return of vector and matrix of a function in c!

The problem I'm having is that my serial-inverter pointer gets all null, and the rest of the code works fine, I really do not see what the problem is! If somebody can help me, I thank you right away! Note: You have a few more libraries to use in...
asked by 06.04.2016 / 00:19
1
answer

How to add counter for each if of my simple code

#include <stdio.h> #include <stdlib.h> int main() { float x,y; char k; do{ printf("Este Programa indica o quadrante no pla...
asked by 22.03.2016 / 02:46
1
answer

List and file help

Well, I need to pass a linked list to a file and have made a function for it but I can not. In addition I have already done several tests and I could not. #include <stdio.h> #include <stdlib.h> typedef struct celulaLista { int info...
asked by 04.03.2016 / 02:09
1
answer

How to create a standard map?

I need to create a standard map chart. Is it possible to plot graphics using the C language? I know the basics of data structure, algorithms and c language, but I do not know how to create graphical interface, I only use the console windo...
asked by 13.05.2016 / 04:34
1
answer

Generate executables with names other than "a.exe" by Sublime Text

I am using Sublime Text to write the codes and leave them in the workspace Every time I save a .c file, it generates an executable for Windows. When I save more than one .c code on the desktop and compile, it takes the pl...
asked by 05.03.2016 / 04:48
1
answer

How do I create a list by arrangement to save a struct?

How can I implement a struct containing an ID, a priority (medium, low, high, urgent) and a telephone? basically: typedef struct Atividades{ int id; int telefone char prioridade[20]; } I would have to write this in a li...
asked by 07.03.2016 / 21:14
3
answers

Use an operator on a switch case

If I do, good wheel: #include <stdio.h> int op1; int main(){ scanf("%d", &op1); switch(op1) { case 1: puts("Hello World"); } } I wanted to make when entering a special character, for example, +, -, / (etc), shows m...
asked by 22.01.2016 / 11:30