Questions tagged as 'c++14'

1
answer

What's the difference between declaring a variable like constexpr const and constexpr?

What's the difference between declaring a constant as constexpr const to only a constexpr ? constexpr const float max_height = 3.0f; constexpr float max_height = 3.0f;     
asked by 29.09.2018 / 20:39
1
answer

Problem with condition in While in C ++

Hello, I'm studying from Bjarne's "PROGRAMMING Principles and Pratice Using C ++" book. I'm trying to make Drill number 1 from chapter four. The exercise says to do a program that consists of a while-loop that reads and prints two integers and s...
asked by 01.02.2016 / 19:21
1
answer

Doubt how to get a JSON, transform into object

I have a little doubt about a json module in c ++, I was wondering if there is any way to get a json that already exists and increment more fields using c ++, json data = json::parse(getData()); FILE * pFile; pFile = fopen("data.json", "a"); f...
asked by 26.03.2017 / 07:41
1
answer

Problem with vector function in C ++

Hello, I'm trying to make a matrix calculator and my idea would be for the user to enter with the number of rows, columns and soon after with the array elements, the problem is that when I write the elements the program gives error of input strea...
asked by 02.06.2016 / 17:21
1
answer

I am not able to use libcurl C ++

Well, I can not use libcurl! Can someone help me? Teach me how to compile this correctly! I'm following all the steps that come in a doc along with the project itself. >
asked by 08.07.2018 / 17:00
1
answer

Program does not execute when filling vector with random numbers not repeated in C

I'm trying to get the random numbers to be generated and fill a vector in a separate function, but the program does not execute and hangs if I put a high, and not as high, number as 50 or 100. Below is my code , if anyone knows what's wrong help...
asked by 28.03.2017 / 12:50