Questions tagged as 'c++'

1
answer

How to create a mapped file with a std :: map

I'm trying to use a std :: map that allocates objects within a mapped file using boost, with a vector worked but with a non map #include <boost/interprocess/managed_mapped_file.hpp> #include <map> #include <iostream> namespac...
asked by 11.07.2017 / 16:17
2
answers

Process of binding to libraries (DLL's) during the C ++ source compilation process

During the compilation process, I think, there is some kind of link between my code and the library I'm using code for. How does my application be able to call the code of a DLL? That is, what happens during the build that promotes this link?...
asked by 24.03.2017 / 20:22
1
answer

Creating a list with sublists in c ++

I'm trying to create a list with the sublists (20.0 20.0 0.0) (36.0 150.0 0.0) (200.0 130.0 0.0) (215.0 20.0 0.0) in C ++ and would like help because I do not know how to join the 4 to form a list. I need something like append in LISP.     
asked by 27.03.2017 / 19:03
1
answer

C ++: Compile using Batch

I'm using cmd to program, and I want to make a batch file that automates the build process. I want it to compile the files using the g++ -c ./scr/Nome.cpp -o ./obj/Nome.o -std=c++1z This should be done for all the .cpp files that hav...
asked by 07.08.2017 / 05:34
1
answer

Parallel Programming Qt C ++

I'm starting to learn parallel programming, and I'm wanting to compare a single threaded program to a multithreaded one. What I thought was to make a very simple algorithm that, within a period of 1 minute, calculate the largest number of poss...
asked by 04.05.2017 / 07:41
1
answer

How to remove all nodes from a circular list?

I'm having a hard time picking up the logic of how to remove all nodes from a circular list, if anyone could give a brief explanation of concept and / or point out the errors in the code I've already done, I'd be grateful: int freelist ( Node...
asked by 25.04.2017 / 17:08
1
answer

Export methods from a dll in C ++

I have a problem, my dll has not exported any methods for me to use in other programs. I did as follows: namespace integration { class RESTRequest { public: __declspec(dllexport) string GetPing(char* ping);...
asked by 28.01.2017 / 21:38
2
answers

Remove stopwords listed in a txt file from another txt file

Good evening guys, I need help. I am doing preprocessing of text and for this I need to remove from a book in .txt format all stopwords found in a text file also "stopwords_br.txt". I found a program I think that's a bit like what I'm loo...
asked by 29.12.2016 / 00:11
1
answer

Convert assignments from C ++ to C

I would like help converting these assignments made in C ++ to C: string binario = bitset<256>(address).to_string(); int InicioDado = 256-log2(cacheconfig.lineSize); string dado = binario.substr(InicioDado, log2(cacheconfig.lineSize)); i...
asked by 21.11.2016 / 14:11
1
answer

Value of char * is shown even where it was not called using Arduino

This is exactly what I'm using: #include <SPI.h> #include <Ethernet.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Tentativa frustada, possui o mesmo problema: //uint32_t i; //uint8_t* TotalRequisicao; /////...
asked by 16.02.2017 / 04:49