I have a problem with my temperature measuring function.
#include "max6675.h"
int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;
MAX6675 ktc(ktcCLK, ktcCS, ktcSO);
void setup()
{
Serial.begin(9600);
delay(500);
}
void loop()
{
Serial...
I need to create an algorithm that converts decimal to octal, but my conversion is wrong, can anyone help me how would it be right?
#include <stdio.h>
int decim(int n)
{
int i,a;
int octal;
if(n<=7)...
I need to make an algorithm that the user informs two values and return the largest between them using double, but at the time of compiling it from the error pointing something in the double but I do not know how to solve, someone can help me an...
My program was showing strange behavior, until I discovered that there was an overflow of array , for example:
int arr[3];
for (int i = 0; i<10; i++) {
arr[i]=i;
cout << arr[i];
}
In this light example, i exceeds th...
When I type the temperature in Fahrenheint the program returns 0 as a result, where is the error?
#include <cstdlib>
#include <iostream>
#include <conio.h>
#include <string.h>
#include <math.h>
using...
I'm building a simple c / c ++ program that merges two arrays but I'm encountering an inconvenient error. I believe that when calling the function IntercalarArranjos , the program presents an error of type "segmentation fault".
I do n...
How to pass a array to a function without having to report how many indexes it has?
Reporting the size
#include "stdafx.h"
#include <Windows.h>
void imprimir(int _array[], int _tamanho) {
for (int i = 0; i < _tamanho; i++) {...
I'm studying C ++ a short time and I want to train rewriting functions already done by me in C # only in C ++.
I wrote a simple code that calculates a IV of a hash, very simple even, calling the same methods using the same argument in...