Posts by Eduardo Cardoso • 644 points
20 posts
-
0
votes1
answer44
viewsQ: How to store a word within a vector larger than the word
I declared a variable char SendDataCmd[256] which will store the commands sent from the computer to the microcontroller via UART. Commands have different sizes as for example RST, ADV ON e SET…
-
0
votes1
answer93
viewsA: How to pass the registration code as a function parameter?
First you were trying to pass a variable as a parameter without having given a value to it, and you were making it itself receive what the function returned, here: matricula_func =…
-
1
votes1
answer1675
viewsQ: How to read data from an excel table in C?
I know how to read data and write to files .txt code C through functions fscanf(), fprintf() etc. But now I would like to know if there are functions or libraries in C that allow me to process data…
-
1
votes3
answers82
viewsA: Problems with if doing 2 functions
You were leaving a ; after the check if, right here: if (idade <=15);{. With this his code always jumped to make the calculation, since he was not depending on the if. Follows corrected code.…
-
2
votes2
answers247
viewsA: Tabulated problem in C
Had a ; after the for, soon he did nothing and jumped straight to: printf("%d x %d = %d \n",numero,cont,numero*cont); Running it one time. Follows corrected code. #include <stdio.h> int…
canswered Eduardo Cardoso 644 -
12
votes1
answer166
viewsQ: What would a Nuget be?
I noticed that in various programs and in various locations they are used Nuget, I myself had to use one, but used without knowing the definition of it, I can say that it would be an extension?…
-
0
votes2
answers52
viewsQ: Error when trying to use class/method of a library.
I am trying to connect a WPF to an external hardware via usb. I installed the Hidsharp Nuget and declared the USB Devices as below: HidDevice _device; HidStream _deviceStream;…
c#asked Eduardo Cardoso 644 -
0
votes1
answer64
viewsQ: How to install a Hidsharp Nuget in Visual Studio
I need to communicate between WPF I’m creating and a door USB which receives data from a hardware. Reading on, I saw that a library called Hidsharp that would be a Nuget to make this communication,…
-
1
votes2
answers1187
viewsQ: Meaning of two asterisks in function call
I’m trying to understand a code about simply chained list. The function InserirInicio has as a parameter Nodo **inicio, float dado. I could not understand the use of two asterisks in the parameter…
-
2
votes1
answer9018
viewsQ: How to leave code in language format within word
I currently have a code in the C language. I need to present this code in a PDF or .doc. But formatting a code in Microsoft Word to make it equal in the IDE is very laborious. Is there any tool that…
-
4
votes1
answer708
viewsQ: What does Nodo mean?
I am studying stacks and queues, below I was given a code to analyze. The code first creates queue then queues the values. After this, it removes each of the values from the queue and warns whether…
-
1
votes1
answer2132
viewsQ: How to pass an file . txt to a function
I would like to create a function that receives a file .txt and do something with it, but I don’t know how to define the sending and receiving parameters, or if I should pass parameter by reference.…
-
1
votes1
answer44
viewsQ: Send more than one string to serial
I’m creating a string through two values, one read through a slider and the other through a check box. Put the two together in a string called a and send at the same time in the serial. Follows the…
-
2
votes2
answers62
viewsA: Incorrect Printed Form Values
Below is the code with some corrections. #include <stdio.h> int main (){ int i, num, soma, maior, menor; float media; printf ("Informe 10 valores:\n"); soma=0;//Faltava inicializar a variável…
-
17
votes4
answers359
viewsQ: Output a C code with pointers
I need to understand what each of the values printed on the screen means by the following code: #include<stdio.h> int main() { int i=5; int *p; p = &i; printf("%u %d %d %d %d \n", p,…
-
1
votes1
answer2223
viewsQ: How to view contents of a file . bin generated in c
I had to create a C program that reads a motion sensor activation file (.txt) and produces a binary file with the same information. The file . txt has the following information: 3B2 20051023…
-
1
votes1
answer211
viewsQ: How to reference mat[x][y] in pointer notation
I’m working with programming in c, with pointers and dynamic allocation, need to respond to an exercise that asks for the following: How to reference mat[x][y] in pointer notation.…
-
0
votes1
answer84
viewsQ: Need pull-down resistor
I’m using the function attachInterrupt() in the Arduino Uno to recognize the end of a course of an actuator. Normally test is used with if(), but the actuator cycle is very fast and the recognition…
-
0
votes1
answer78
viewsA: Debug STM32 in Eclipse
STM-STUDIO-STM32 which is a great tool provided by ST for real-time data monitoring. Data can be displayed in bar charts, XY charts and tables. Variables are loaded from the .elf. The tool uses…
-
0
votes1
answer78
viewsQ: Debug STM32 in Eclipse
Does anyone know how thresh in Eclipse in real time? I have a firmware for microcontroller STM32 and wanted to see my variables changing over time without using breakpoint or something like that.…