I have a binary search tree in which I created a function that should return the number of nodes that have both children (dir and esq fields other than NULL), but my function does not give the expected value.
The insertion order is as follows...
I'm creating a database.
I used locale.h and setlocale(LC_ALL, "Portuguese") so that accents and keys appear on the windows command line.
Because of this, when I make a% w / o of a character with an accent or a cue and make t...
I'm compiling here in CodeBlocks, it's been a week since I'm trying to compile, but it always gives some error, and now that it's at the end of the compilation, it's giving some errors and I'm not able to solve it. Can anyone help me solve this?...
What I want to do is simple: I want to compare an array or an entire row of variables in an array for certain values in order
var[2][]=={1,2,3,4,5} //inteiro. todos de uma vez
instead of
var[2][0]==1 && var[2][1]==2 &a...
I am trying to solve a certain exercise in class by my teacher.
Basically the exercise is:
With two arduinos prepared to make serial communication between TX and RX, it must transmit four code sequences through a two-key keyboard.
Pin 0 - RX...
Good people
I have a C job to do, in which I have to read information from a lot of different txt.com entries.
Each string follows the following format:
12345António Manuel Silva Mendes Frankfurt Varsovia 1
The...
Hello, I need software that reads a full name, consisting of a simple name and a last name, separated by "_" and printed separately.
The code should use the following main function:
#include <stdio.h>
int main(){
char nome[30];...
Good evening, I have a code that shows me wrong values, in my opinion, my logic is correct, but when I request results, what is shown has nothing to do with the ultimate goal of the code.
I have an activity that requests the name of the custom...
I need to make a program that is a game where the user will input a number and I must determine if it is possible for the user to win the game through a printf saying "Yes" or "No", not it is necessary to show the steps of the program.
The game...