Beginners - June 2022 (Page 3)

Eliminating use of for loop with Eigen
 
I am trying to build a row vector and column vector using Eigen library to multiply them together to...
[1 reply] : See: https://eigen.tuxfamily.org/dox-devel/group__TutorialSTL.html (by JLBorges)
Extract rows/columns of matrices in C++ vs MATLAV
 
In MATLAB you can extract the first and last rows of a matrix by A(1,:); A(N,:); Is the...
[18 replies] Last: Thanks everyone for the incredible feedback/info! I am working with Ei... (by JamieAl)
iterator problem
 
I am copying an example from a book and it wont compile. I am trying to copy a vector<string> to a ...
[4 replies] Last: Just been looking at it and I noticed the return type. Thanx for look... (by mickydint)
by sarvcr
Linked List with templates
 
Question Solved. Look at SeePlus comment if you have a problem like this. Hi! Long story short, ...
[9 replies] Last: It's working perfectly now. I really appreciate all the help you've gi... (by sarvcr)
char*/string function type
 
Hi folks! I'm trying to write DLL with a function that accepts a string, manipulates it and retur...
[4 replies] Last: @thmm Thank you, I used your code and it works now! You are awesome! ... (by Al Green)
What's the difference between overloading operator<(Class& a) and operator<(Class& a, Class& b)?
 
What is the difference between overloading operator<(Class& a) and operator<(Class& a, Class& b) ...
[8 replies] Last: How many calls are used when it's sorted Apparently still just 1. M... (by Peter87)
A calculator question
 
Hello I'm trying to implement a simple calculator supporting variables. And my question is the LVal...
[10 replies] Last: istringstream gives a stream from a string. This can be used as a stre... (by seeplus)
Undefined reference?
 
Hi, i am new to C++ and while practicing i am getting an undefined reference error from the compiler...
[4 replies] Last: Part of the problem is that you have global: const int NUMBER_OF_ROWS... (by keskiverto)
by Pen72
Graph problem
 
I'd like to know what condition have I not considered in the code, this should be a DAG problem righ...
[6 replies] Last: Hello, yes I think it should be m, must be typo mistake. Thank you for... (by Pen72)
Adding a blocker in a board to restrict cell access.
 
I have game of Abalone that I have created I am looking for ideas to insert a blocker on the board. ...
[5 replies] Last: Thank you, @jonnin, for the feedback on this and to @George P for the ... (by SITHESH)
by Pen72
Find words
 
I don't know where my code went wrong, I got two correct answers and 8 wrong answers, thanks in adva...
[4 replies] Last: #include <iostream> #include <string> #include <map> #include <set> ... (by seeplus)
by Pen72
inorder traversal
 
Hi I'm trying to implement inorder traversal in BST. The issue I got here is, if the data is alread...
[3 replies] Last: Your question asks about Inorder traversal but your post alludes to tr... (by ElusiveTau)
map with iterator as key?
 
Hi I'd like to have a map where the key type is an iterator. This will not work out of the box beca...
[4 replies] Last: > Does anyone know a way of defining a less than operator to an iterat... (by JLBorges)
by Geckoo
Format integer as a string
 
Hello. Is there a way to format an integer according its memory size using to_string ? I explain m...
[7 replies] Last: Now the message is simply concatenated this way : snprintf(message, ... (by Geckoo)
No idea whats wrong
 
Hi, I have two weird questions, not sure if its something wrong with my code... 1) Why is my outp...
[7 replies] Last: However, for a computing system, if you divide an integer by an inte... (by Geckoo)
Failure of parameters transfer
 
Hello, I'm trying to build an ESP32-TMC2209 application. The setup of the TMC2209 includes invocati...
[6 replies] Last: Unfortunately it didn't help. (by yonagy82)
by Geckoo
Color spectrum
 
Hello everyone. I hope that all is fine for you. I am still playing with pixels. Now I am searching ...
[3 replies] Last: Done. Thank you ++ https://ibb.co/VDt23qs (by Geckoo)
by Ch1156
What is this code doing?
 
So i'm following this book called SFML Game Development By Example and I've run into some code I'm n...
[1 reply] : Hello. This code is a good exercise to understand "complex" logical co... (by Geckoo)
decrement size_t in loop (1,2)
 
Hi everyone, I was recommended to turn on compiler warnings for debugging purposes. The compiler fr...
[25 replies] Last: > That approach works fine with VS release... >> Compile without it a... (by JLBorges)
Process exited with value 3221225477
 
Hello friends, I am currently working on a homework. But the code i wrote is not works as expected ...
[6 replies] Last: Thank you all. That helps a lot. (by hakanxdurak)
June 2022 Pages: 12345
  Archived months: [may2022] [jul2022]

This is an archived page. To post a new message, go to the current page.