The following code works fine - >
std::vector<int> vec = { 1, 2, 3, 4, 5 };
std::vector<int> mec = { 1, 2, 3, 4, 5 };
if (vec == mec)
{
std::cout << "true" << std::endl;
}
there is an overload of the ==...
When we request a quantity of memory to the system and we use much more than the requested what happens? I did this test and the code here compiled normally.
At first it worked as it should, I wanted to know what this implies, I believe that...
What is the difference between cout and printf ?
I learned using printf and scanf , but in an online course I see the teacher using cout and some pages also use cout , but others use printf ......
Sometimes I run into situations like this:
#ifndef CRIARVENDA_H
#define CRIARVENDA_H
#include <QDialog>
#include "cliente.h"
namespace Ui {
class CriarVenda;
}
class CriarVenda : public QDialog
{
Q_OBJECT
public:
explicit Cri...
Personnel was modifying a regex to validate only specific domains that end with yahoo.com.br, terra.com.br, bol.com.br, hotmail.com.br. So gmail.com, or Provider.net.br would be invalid.
Then I made the regex below:
const std::regex pattern...
What does the following expression mean:
struct Node *temp = root->left ? root->left : root->right;
I am in doubt if he is checking for the root->left pointer or comparing *temp with root->left , in whic...
I created a simple calendar to record a user's contacts, but the teacher asked for the data to be saved in HD to preserve the contacts even after turning off the computer.
I have to write all the code using the file properties I'm looking for...
I was in the programming class with C and I was wondering about the difference between Malloc and Calloc , but not in what each one does, but in the meaning of "M" and "C".
I know that Malloc comes from memory al...
The source code below is an abstraction of a code in production. But it is real, and the facts reported below apply to it.
The code compiles normally in GCG (linux), but in Visual Studio 2017 (windows), I get the error:
LNK2005 "publ...