Questions tagged as 'c++11'

3
answers

Identify a specific word in a C ++ String, is there any function ready for it? Or just the nail itself?

Hello, I'm getting a series of strings from a .txt file and putting them in a vector. But have a problem, the strings come with an unwanted start, example: Depende: lsb-release Depende: libatk1.0-0 Depende: libc6 Depende: libcairo-g...
asked by 08.04.2018 / 14:31
1
answer

is repeating only once

Code: #include <iomanip> #include <iostream> int main() { auto time = std::time(nullptr); std::string lang_utf[6]={"pt_BR.utf8","en_US.utf8","en_GB.utf8","de_DE.utf8","ja_JP.utf8","ru_RU.utf8"}; std::string lang[6]={"pt_BR:...
asked by 16.10.2017 / 22:17
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

Doubt about using static

Code: Header: class Cliente { public: Cliente(std::string nome_c, int num_cartao_l, int livros_c); Cliente(); void calc_Taxa(); const int get_livros() const { return livros; } const std::string get_nome() const { retur...
asked by 14.07.2016 / 20:11
2
answers

How does std :: move work?

I would like to understand the operation of std::move . I noticed that with the C ++ 11 specification this new function arises, and now we have a new operator (& &). What is the semantics and use of this new function and this...
asked by 03.02.2015 / 16:04
0
answers

Create a TAD to represent a given

I have the following task: Create a TAD (struct) to represent a Circumference and then check which of the read circles have intersections between them. I need to store four basic data, id, x, y, and radius . I think of using std::<v...
asked by 28.08.2018 / 15:20
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
0
answers

is there any way to use jsoncpp.lib in codeblocks?

I need to use jsoncpp.lib in codeblocks, but when compiling I get the following compiler errors:    D: \ Users \ User \ Documents \ CodeBlocks \ demo \ main.cpp | 20 | undefined   reference to 'Json :: Value :: Value (Json :: ValueType)' |  ...
asked by 09.07.2018 / 23:01
0
answers

Segmentation error in function insertsAVN

I'm having a problem creating AVN when data quantity above 1000 is giving segmentation error. #include <cstdlib> #include <stdlib.h> #include <iostream> #include <fstream> #include <time.h> #include <sstream>...
asked by 01.02.2018 / 03:00
0
answers

doubt about the behavior of std :: swap

Note: Reading the answers to this question: How does std :: move work? In the case of std :: move does not move, I generated this doubt, in case it is not a problem in a code that I need to solve, but rather in question the behavior of std...
asked by 22.01.2018 / 21:40