Questions tagged as 'c++'

1
answer

Why does a char array support a character like 'ç' and a variable char not?

Even though the char variable supports only the ASCII characters, why does the following code have the normal output when a value is entered with characters that are not part of ASCII as accented characters? #include<iostream> using name...
asked by 19.04.2015 / 19:06
1
answer

What does "::" mean in C ++?

I have doubts about using the colon :: , used to do class implementation, [tipo] [classe]::[método] . It is also used, for example, in std::cout . What exactly would these two double points be and what do they serve for?     
asked by 18.09.2015 / 04:19
2
answers

HTTP requests in C ++

How can I make a request in a URL that would return a jSON in C ++? I need to access a /return.php URL that returns the string {"status":true,"hash":"12#87!!3@WSS\/.","user":"admin"} and work on my project, accessing json as obj.status f...
asked by 05.09.2014 / 16:34
3
answers

How to "create" a variable in "runtime"?

I'm doing a project that implements a Python style console. It has several functions, it has many things. But I need to implement a command called set . set would declare a string and set its value as the user defined it. class V...
asked by 03.02.2014 / 19:47
1
answer

What is unrolling?

In this question I asked about the optimization and performance that the compiler performs. Among the highlighted items, users commented that the compiler does an unrolling loop optimization or unrolling . What is this unrolling ?...
asked by 23.02.2017 / 14:33
2
answers

Is there a C interpreter?

Everyone knows that C is a compiled language. Some know that in theory any language can be interpreted, unless it has some specification to prevent. Are there C interpreters? Do they serve for anything? And C ++?     
asked by 25.01.2017 / 11:52
1
answer

Access null pointer is not generating error

Testing the code below, I noticed strange behavior. It is working when it should not. The correct thing, in my view, was to give a segmentation fault and abort, but it looks like the compiler is doing some magic to fix the code. What happens?...
asked by 09.08.2016 / 17:37
1
answer

What is the comma for?

The comma is what? Just a construction of language? An operator? Why does it exist? This question is based on what you saw in Returning or extracting more than one value from a function? . return base2, base3, base4     
asked by 06.01.2017 / 12:08
2
answers

Consuming C # Functions (dll) in a C / C ++ project

I need to call / reuse some functions I have in a DLL, developed in C #, within a project made in C. I've already looked for some things and what I managed to make legal work was this project: link This step-by-step article describes how...
asked by 30.04.2014 / 13:24
1
answer

What is the difference between a .c and .cpp file?

C and C ++ are two different languages, however C ++ is a superset of the C language. So what's the difference between a file with the extension in .c and .cpp ?     
asked by 01.12.2016 / 22:24