Beginners (Page 6)

Build issue with C++, Platformio, for Marlin
It's been 4 days now trying to build a firmware file for my new MKS Robin Nano 3.1 board. I've insta...
[4 replies] Last: I'd suggest searching within files to find where values for BOARD_xxxx... (by seeplus)
Help me
I'm trying to make an C++ calculator but only adding numbers works! Here's what i tried: #inc...
[10 replies] Last: [quote=AlanHudik]the links you sent in the post are also different tha... (by George P)
how to create a text cursor in sfml
I want to create a text cursor, but i don't know how to properly, I've made a simple one, but it bre...
[3 replies] Last: sf::Text::findCharacterPos gives you the position of a character. sf... (by Peter87)
Bmp file filter pixel adjusting / C language
Hello friends, I am currently working on a project which is filtering a bmp file. This smoothing fi...
[8 replies] Last: Is it possible that the bitmap does not have a BITMAPINFOHEADER but in... (by coder777)
by jNc
how to assign all items in vector std::vector<std::vector<cv::Point> > test to 0?
how to assign all items in vector std::vector<std::vector<cv::Point> > test to 0?
[4 replies] Last: std::vector<std::vector<cv::Point>> test(100, {10, {0, 0}}); You wou... (by mbozzi)
Struggling to fill then print vector of structs
Howdy y'all, I am trying to take a .csv file, read it into a vector of struct. and then print out th...
[7 replies] Last: I would first read each file line and split into a vector of string. T... (by seeplus)
Element-wise multiplication using Eiegn
I am trying to perform an element-wise multiplication of a row vector with matrix. In MATLAB this wo...
[1 reply] : I was able to solve this issue with replacing the last line with: e... (by JamieAl)
Common Documentation Requirements/Standards
What are the common documentation standards for most companies that primarily use C++? I'd like to ...
[3 replies] Last: Cubbi, kigar64551, thank you both. I will go with doxygen. (by DOOMReboot)
Reading huffman tree from file
In the code below, in the decode function, I try rebuild the huffman tree generated in the encode fu...
[4 replies] Last: Is it relevant where within the tree that character appears? Yes, i... (by klebermo)
by Geckoo
Prime numbers
Hello everyone. I hope that all is fine for you. Today I worked on a little code so as to compute pr...
[8 replies] Last: Yes - but as I said above, this is an in-efficient algorithm. For deal... (by seeplus)
Error when creating row vector using map in Eigen
I am trying to map my std:vector into an Eigen row vector so I can perform element-wise multipli...
[2 replies] Last: Thanks! (by JamieAl)
How to return the address of a function's static variable?
There's no usage context for my question. Just a "what if" scenario I came up with. #include ...
[3 replies] Last: Could also pass as int*& - ref to int* - which would avoid having to d... (by seeplus)
Basic File Handling - Everything correct?
Still learning and doing some basic file handling exercise and was wondering if I wrote this code co...
[7 replies] Last: > My buffer array type is a wchar_t An overload of the file stream c... (by JLBorges)
by Geckoo
Boolean "in-line"
I don't know how I can call a boolean which has been concatenated in one single line. Usually I talk...
[5 replies] Last: Thank you Peter87 and Keskiverto for your clever explanations. The t... (by Geckoo)
C++ while loops with strings
Regardless of what value I input the while statement won't recognize the input as matching either of...
[5 replies] Last: Thanks Seeplus for the link about DeMorgan laws. Interesting short rea... (by Geckoo)
Need to add multiple null values from a binary file to string
I want to encrypt a exe(executable file). I am reading the file as binary but when i Store the data ...
[5 replies] Last: Reading a binary .exe file into a std::string like this works OK for m... (by seeplus)
segmetation fault
I need help. How can i fix that.I am getting a stackoverflow. I want to swap the names of my labels ...
[3 replies] Last: How does on_swapLabels_clicked() know what label to swap? If you're... (by kbw)
by Geckoo
Sort objects vector according to player position
Hello everyone. I would like to sort an vector with objects which I know their position. I have my i...
[8 replies] Last: For efficiency, sort on distance-squared, not distance. You will get t... (by lastchance)
Can't bind "this" to a const object
I'm reading C++ Primer by Lippman, about the this and const member functions. I understand that t...
[3 replies] Last: Thanks for the elucidating post mbozzi, seeplus. I think I understand.... (by ElusiveTau)
No default constructor exists for class "Shader"
Hello, I am having an issue with one class, which has been giving me this error: "E0291 no default c...
[2 replies] Last: Ah, it worked! Thank you very much, I was about to give up on this. (by CPCoder)
Pages: 1... 4567
  Archived months: [jun2022]

Cannot post in this page. To post a new message, go to the first page.