Questions tagged as 'c++'

1
answer

How to get the maximum / minimum value of an integer in the C language

Speak up! Is there a function in language C that takes the maximum / minimum value of an integer?     
asked by 06.03.2017 / 05:56
2
answers

One character length (ASCII vs. other encodings) in bytes

Viewing this question came up with a question, coming from PHP and in the past having "problems" derived from character encoding, eg: srtpos " vs mb_strpos , I knew that all characters ASCII have 1 byte, but I thought that speci...
asked by 19.01.2017 / 12:11
3
answers

Problem with program that prints three numbers incrementally

I'm having trouble creating decision structures in a program that reads 3 numbers and prints them incrementally. My code that is going wrong is as follows: #include <stdio.h> int main (void) { int A, B, C; scanf("%d %d %d" ,&am...
asked by 27.03.2015 / 02:21
3
answers

How to see how much memory occupies such a variable in C ++? And how do you define it?

How to see how much memory occupies such a variable of type int, char e long in C ++? And how do you use #define ?     
asked by 26.02.2015 / 12:24
3
answers

How to get a text from a QLineEdit in Qt?

For example, I have a LineEdit , when I push a button I want to get what I wrote in this LineEdit and store a QString .     
asked by 20.04.2015 / 12:30
1
answer

How to sort a Triangle

I want to classify a triangle on the sides, and a triangle with all equal sides is called Equilateral, with all sides different from each other called Scalene, and if it has only two equal sides, it is called Isosceles. p> I tried to do this:...
asked by 12.12.2015 / 16:48
1
answer

How to find out the version of my C / C ++ in the Linux operating system?

I would like to learn how to find out the version of my C/C++ in the Linux operating system. How could I do this through Terminal ?     
asked by 06.01.2016 / 12:29
2
answers

How do I generate random numbers and without repeating them in a time interval?

I'm creating a 'game' in which the user needs to choose a range, and in this interval, he chooses how many random numbers he wants to generate. However, in random numbers generated, there can be no repetitions, for example: Range 1 to 10, show...
asked by 29.11.2015 / 19:38
1
answer

If C / C ++ are native languages then why do they need runtimes?

Generally the first thing that came to my mind when I heard the term native language, was a program that ran independent of operating system, communicating directly with the hardware, I always developed in debug mode, when I released a releas...
asked by 31.05.2018 / 02:31
2
answers

Source Codes in Projects

If I have 10 projects in NetBeans, these 10 projects will use a Logging system, this system will contain a Log.h and a Log.c. Since all projects will have to use these two log files to generate logs, I will need to copy the two files for each pr...
asked by 17.06.2015 / 15:44