Questions tagged as 'c'

1
answer

How does strtoull work?

I've tried every way to understand what is the second parameter to use this function and it in general but I still can not understand.     
asked by 21.05.2015 / 02:28
2
answers

How can I get more accurate values dividing two long?

I'm programming a CNC on my own, and I'm in the middle of my code, and now I have two variables of type long that when split results in an exact fractional value but the Arduino returning a fractional value of only 2 houses. long x = 99;...
asked by 01.07.2015 / 09:17
1
answer

How to receive the input data of a program in C from a file?

I have a program in C. Let's assume its compiled name is a.out (default). When I use the following command to execute it ... ./a.out < arquivo.txt ... how do I read the content of arquivo.txt within the program (in funct...
asked by 06.04.2015 / 14:49
1
answer

C allocation - object was probably modified after being freed

I am doing a data structure program and am getting the following error:    arq (1966,0x7fff7970f300) malloc: * error for object 0x7fc058404c38:   incorrect checksum for freed object - object was not modified   after being freed.   * set a b...
asked by 23.01.2015 / 16:20
1
answer

sudoku problem with repeated rows / columns

Well I'm doing a college job which is to make a sudoku in which the PC plays, first I'm creating the rules of the game which is no number can be repeated on the line nor in the row where it is .. . As everyone knows sudoku starts with some...
asked by 05.11.2014 / 01:18
1
answer

Remove from binary search tree

Studying BST (binary search tree) I did not understand some parts of the code in the delete function of "mycodeschool". This part of the code, more specifically: // Case 1: No child if(root->left == NULL && root->right...
asked by 14.11.2014 / 11:45
1
answer

How to make graphical applications in C and C ++?

I'd like to know how to do apps with GUI in C and C ++. I know logic, like if / else, while, for, swith, and while loops remain the same, but I'd like to know how to do a window, a button, and something interactive. Use Linux Ubuntu 14.04 LTS....
asked by 12.06.2015 / 03:33
2
answers

Function to draw a rectangle in Console in C

I'm trying to create a function called criar_botao() which printable a rectangle on the screen, with the windows.h library is printing the rectangle but not the size I want. I'm trying to pass the parameters, with position x...
asked by 03.03.2016 / 16:04
1
answer

Arduino UNO restarts when using serial port outside the IDE

My Arduino UNO is restarting when I use its serial port with a Python script. But when I open the serial terminal through the Arduino IDE and run the same Python script, it works normally. Why does this happen and how do I resolve it? Arduino...
asked by 22.06.2014 / 05:54
1
answer

Error in Visual Studio [closed]

EDIT: Problem solved, after changing a lot of the code, not only in the functions mentioned here, the error stopped. I'm getting this error and I have no idea what might be causing it, I've never seen this error before. Any tips on the cause...
asked by 05.07.2014 / 21:45