
please wait
by JUANDENT
Am I dealing with dangling references?
|
By defining methods of a class &&, and chaining the calls, am I dealing with dangling references?? My class: template<typename ConcreteBuilder> clas... |
Aug 16, 2022 at 1:14pm
[5 replies] Last: std::move() is required; copy elision can't be applied to member obj... (by JLBorges)
|
by Worldtreeboy
Address and pointer
|
Let's say i have an int variable int number = 5 Does the expression "&number" returns a type int*? Meaning the address is a pointer to an int? Since it... |
Aug 15, 2022 at 10:35pm
[2 replies] Last: Thanks (by Worldtreeboy)
|
by nvthielen
ASCII to string
|
Hallo c-plus plus, Is there a way, to get the letter ASCII(code:10) to print to a string. I will keep looking on the net, on this form. tnx |
Aug 15, 2022 at 1:15pm
[10 replies] Last: Glad you found that... I was trying to say as much, but I assumed you... (by jonnin)
|
by Hawlong
What does this struct . do
|
Please explain to me what this code does struct sPickDropBuffer { DWORD OnlyDword{}; BYTE Filler {}; BYTE* pBuffer{}; sPickDropBuffer(DWORD __dwor... |
Aug 15, 2022 at 5:21am
[4 replies] Last: Thanks JLBorges , (by Hawlong)
|
by frek
Working with array (1,2)
|
Task description : A non-empty array A consisting of N integers is given. The leader of this array is the value that occurs in more than half of the elements ... |
Aug 13, 2022 at 10:18pm
[30 replies] Last: Don't worry, I don't use Big-O anyway. I prefer Big Mama (by zapshe)
|
by ruzip
Steps in Loop in C/C++
|
What are possible ways to skip or step a variable in a loop in C/C++ particular in C only? In Basic, there's the STEP for x = 0 to 10 step 2 print x ; print... |
Aug 13, 2022 at 3:59pm
[7 replies] Last: ... and can also be used where a condition is required - eg with if an... (by seeplus)
|
by newbieg
AVX and other SIMD
|
Does anyone have example of code that tends to generate avx or other simd instructions in the resulting compiled assembly file? I'm on linux, g++, but can switc... |
Aug 11, 2022 at 7:08pm
[5 replies] Last: You could try looking at the generated code for parallel algorithms in... (by mbozzi)
|
by PacR
Help with iterator
|
Hi im trying to use iterator in line 41 of my code but it dont work please help. #include <iostream> #include <list> #include <iterator> class neuron{... |
Aug 11, 2022 at 9:59am
[9 replies] Last: Possibly something like: #include <iostream> #include <list> class... (by seeplus)
|
by nvthielen
ifstream and put it in a string
|
Hello C++'s, I am trying to open a TEXT file and put it in a string. string line; ifstream infile; infile.open("data_01.LIB"); infile... |
Aug 10, 2022 at 8:20pm
[7 replies] Last: c++ : seeplus , thnx I works fine now. Tnx a lot (by nvthielen)
|
by helios
Bidirectional RPC
|
In most RPC systems, the roles of client and server are very asymmetric. All the server does is listen for requests from the client and respond to them: //+-... |
Aug 10, 2022 at 8:02pm
[5 replies] Last: I am not sure there is a major package that does this by design. The... (by jonnin)
|
by frek
std::unordered_map (1,2)
|
We know that in associative unordered containers in STL, like std::unordered_map , the hash functions depend upon the key (among the key-value pair) for th... |
Aug 10, 2022 at 4:01pm
[20 replies] Last: note that a great deal of effort has been put into generating hash fun... (by jonnin)
|
by gabriel11
Enum & vector returns a "not declared in this scope" error when it's included in the header.
|
I'm trying to make a simple Lexer that breaks up a string into characters and tokenizes them. But I keep getting a "not declared in this scope" error even thoug... |
Aug 9, 2022 at 9:46pm
[4 replies] Last: Oh my gosh, how could I have missed that? Thanks again Peter, I apprec... (by gabriel11)
|
by nvthielen
CreateWindow(TEXT("Edit") get string input
|
He, folks I have a control object. ( CreateWindow ) but can get the string in the TEXT edit window. ( LIB_MEMO ) to add later on whit a DB or local LIB. from ... |
Aug 9, 2022 at 6:23pm
[2 replies] Last: He, Genade tnx for the help. string totalString; totalString = ... (by nvthielen)
|
by JUANDENT
This trick allows a member template to be called as a "copy ctor": but why?
|
Deleting the copy ctor with argument const volatile allows a member template to play the role of a copy ctor, but i am not sure why?? class C { publi... |
Aug 9, 2022 at 5:36pm
[3 replies] Last: Why is member template never called in this last case? because non-t... (by Cubbi)
|
by ruzip
Free up Global Pointers in C
|
How do I properly free up global pointers, specifically character pointers? |
Aug 9, 2022 at 4:49am
[5 replies] Last: Thanks guys, I now got a better understanding of this matter. also th... (by ruzip)
|
by frek
Do we still need class template argument deduction guide in C++20?
|
Hi, Here the deduction guide is not needed on most compilers: #include <iostream> template<typename T, typename U> class Test { T t; U u; public: ... |
Aug 8, 2022 at 5:22pm
[9 replies] Last: Yes, thanks. Here's an example that actually compiles: template <ty... (by mbozzi)
|
by Tima11
When I pass const char* as an argument in class constructor it changes its value.
|
I made a function which converts int to const char*. It works like this: https://ibb.co/6PxcP94 . Then, when i try to pass it to the class constructor it change... |
Aug 8, 2022 at 4:58pm
[9 replies] Last: typically char is single quote: '1' I don't recall what happens when ... (by jonnin)
|
by Bubbles0012
How to input a 2d vector into a file
|
Hi I have this code that has this input and I need to put it in the file and I do not know how, this are the instructions:"If the user has generated a puzzle, t... |
Aug 8, 2022 at 5:46am
[1 reply] : Here's one way to do it, there are faster ways to write to disk, but t... (by newbieg)
|
by Bubbles0012
My 2d array is not out putting all the words (1,2)
|
I have this code which ask the user for how many words and makes a 2d array but the words the user input do not always print all of them. #include <iostream>... |
Aug 7, 2022 at 11:40pm
[24 replies] Last: I really do suggest dumping the C library random functions and learnin... (by deleted account xyzzy)
|
by ruzip
Macro or #define the 'struct' keyword
|
I would like to define the struct keyword to something else or perhaps use macro to add another keyword but still is using struct. |
Aug 7, 2022 at 11:05pm
[7 replies] Last: Thanks for the info guys. I decided to just go for typedef. (by ruzip)
|