Questions tagged as 'c++14'

2
answers

Function print with error

I made a program that calculates the Fibonacci numbers in X and Y using Z as a helper. When I pass the Fibonacci function vector to the imprime function, it does not print. I made a test by putting cout inside the for of...
asked by 02.05.2016 / 21:23
1
answer

What are the most common C ++ compilers in Linux? [closed]

What are the most common free compilers on Linux to compile C ++ 14? "Most common" in the sense of most used and available in various distributions. I'm using CENTOS and I need to compile codes that use the new features of C ++ 14.     
asked by 09.03.2018 / 21:17
1
answer

Is there a problem in declaring many noexcept functions?

I see many C ++ code in which the programmer is sure that the function is going to throw an exception, but does not tell this to the compiler, perhaps because it can cause some problem in reporting many functions like noexcept? Is there any prob...
asked by 27.11.2018 / 02:45
1
answer

No logical error

Hi everyone, I'm trying to do a controlled loop for my program, so far it's normal, only in the first round, in the second repetition it jumps the first pass of the for and starts in the second position if someone wants to see my code : void In...
asked by 13.02.2016 / 19:54
1
answer

What is the noexcept keyword and when to use it?

What does keyword noexcept in C ++ and in what situation should it be used?     
asked by 07.07.2018 / 23:15
1
answer

Header files in C ++ using more than once

I'm developing a multiplatform project (Windows - Linux - MacOS). During its development and when generating documentation (via Doxygen) I realized that there are many *.h files to be called by several *.cpp files. My questions are...
asked by 04.07.2018 / 17:57
1
answer

Variable without initializing

I did a basic function of squaring (exercise of a book), and I use a variable named aux and use it to compute the square power value, but the compiler claims that aux does not is initialized, I would like to understand why and how...
asked by 14.01.2016 / 17:21
1
answer

I'm having a problem with Dev C ++ in displaying members of a class

To be more exact, when I press "." after some object, type I declare a vector: vector<int>Random; So far so good, so when I start typing: Random.push_back(); Dev c ++ does not help me complete, I know it sounds paranoid, but is i...
asked by 18.01.2017 / 17:48
1
answer

"No match for operator" error in C ++

I made this code but I have not the slightest idea why it is giving this error: "No match for 'operator < In the part where I display the user's response ... (Remember that PersonName is a class and Date is also ...) class Filme { privat...
asked by 17.03.2018 / 02:15
1
answer

Sort from lowest to highest in priority_queue by breaking second element, is it possible?

I am studying priority_queue and a question has arisen, if I want to insert a pair of elements in the priority queue, how do I make the queue show the element with the lowest number and if it has two numbers, does it break the second iden...
asked by 16.12.2018 / 15:00