#include <iostream>
#include <cstdlib>
using namespace std;
class vector {
private: int *pv, tam;
public: vector (int *a, int tam){
pv= new int [tam];
for (int i=0; i<tam; i++){
pv[i]=a[i];...
How can I do multiple tasks in arduino without using the function delay()
and that each task is executed during a certain period and the tasks can run in parallel.
void setup() {
//TODO: ...
}
void loop() {
task1();
delay (...
I'm having problems printing an array in C ++. If I do what I indicate in the code below, you can access the data of each object in the array, therefore print:
void testGetVehiculos(){
string ci = "c11";
int cantVehiculos=2;
int p...
I am looking for a compiler that supports the clrscr instructions, I have read that the error seems to be in the conio.h library.
I have tried the mingw but it gives me the following error:
C: \ tesisv3> gcc sumar2....
I have a QPainterPath of a point path, which is the path of a machine. I draw that path with a QPainterPathStroke and up there all right. The problem is that this path could pass over itself, that is, overlap or maybe just touch it and in that c...
I found this on the Internet:
#include <utility>
#include <type_traits>
namespace details {
template< typename F, typename Tuple, bool Done, int Total, int... N > struct call_impl {
static void call( F f, Tuple &&...
You see, I'm using Borland C ++ ver 5.02 (I know it's an old compiler but I'd still like to know if there's a way to end my delirium) I need my program to read the char characters and separate them into different variables afterwards of a comma,...
Hello, I have made a calculator with an LCD and a keyboard and I have almost ready it but when adding any number it gives me 0, could you tell me what I have done wrong? Thank you. The part of the sua is complete but I do not add it to it.
#in...
I have a global object defined in an "object.h" file of the form:
#ifndef objetoo__h
#define objetoo__h
typedef struct objeto {
int a;
} objeto;
objeto objetin;
#endif
Then I define a class in "class.h" and its implementation in "class.cp...
this code shows in reverse order the contents of the list linked from node n with the help of a stack. One question, if instead of showing the content of the list in reverse order, I want to show it in normal order, how should I handle the stack...