Beginners - October 2022 (Page 2)

Need help for slicing a 3D array into 2D
 
Hello everyone, I need your help and I will be very happy if you can. I have a 3D matrix like this: A ={ { {3, 4, 2, 3}, {0, -3, 9, 11}, {...
[2 replies] Last: type def the type of A . take a pointer to your new type, call it foo... (by jonnin)
Tree data structure/ Memory leak
 
Hi guys, I'm currently taking an online C++ course and I'm a little bit curious about the buildTree() function. In the function there is a "new" keyword to allo...
[4 replies] Last: Though your OS isn't likely to allow your program to access all of ... (by jonnin)
Calculating the Duration of a Factorial Calculation (1,2)
 
Hi, I'm trying the calculate a factorial calculation's duration. But the code that I wrote is giving me the zeros all the time. If it's 1! giving me 0 even whil...
[20 replies] Last: Very cool, do you know if it results in a compiler error if the compi... (by mbozzi)
Unresolved external errors - what is wrong
 
Hi, I am rusty and I am trying to do exercises using C++ again. I have separate .cpp, header and main as shown below. Can you kindly help me fix this error that...
[4 replies] Last: @Geckoo, the OP's gotta start somewhere. It is after all labelled exer... (by salem c)
Visual Studio stopped working?
 
I was using my VS fine for a while then all of a sudden I get this weird dialog box when compiling and it did not compile as normal. I did not even fully read t...
[11 replies] Last: If you are still using VS 2019 consider upgrading to VS 2022. If your... (by George P)
How to improve C++ Program? (1,2)
 
Following C++ program compiled and ran using MS VS2022 Community edition. Please help improve this program (main, power function, #defines etc) using C++20 fea...
[22 replies] Last: > L15 checks that the value of the given enum is within the permitted ... (by JLBorges)
User input with class methods (1,2)
 
I've come to the point where I need to collect user input and create the instance of a matrix. I've tried but I'm not sure how to do this, given all of my metho...
[21 replies] Last: We all went through the Matrix::multiply() function version of stuff ... (by seeplus)
Vector Erase Confusion
 
Hi everyone, I'm trying to convert some C++ code to another language but I'm struggling to understand what a couple lines of code are doing. Here are the two...
[6 replies] Last: If you didn't want to modify the original, there's std::unique_copy .... (by mbozzi)
Xcode GLFW DYLIBS
 
Hi I'm working with Xcode and I am having problems with the dylib. I'm trying to add two dylibs to XCODE 11, glfw is one of them The other is glm_shared. They...
[2 replies] Last: Hello. I have no experience with MacOS and Xcode 11. However I guess t... (by Geckoo)
by Bumzag
Build and modify a project from existing source code
 
Sorry for the dumb question but can someone give me a roadmap to build a project from an existing source code so I can make modifications to it? The project in...
[4 replies] Last: and.... life is too short to fix a train wreck. Unless it is exceedi... (by jonnin)
Sequential Search
 
there's an error on this program supposedly how can I utilize it to become a linked list and array and to identify how many comparisons would be necessary to fi...
[7 replies] Last: Thank you guys for the help! (by cplus2303)
Testing Strings
 
Hi, I put together a program that is supposed to print an alien word called a "blurb." A blurb consists of an whoozit which is an x followed by one or more y. T...
[9 replies] Last: Okay, I had to come back to it with a fresh set of eyes and rethink it... (by stoneJax)
About compiler (1,2)
 
g++ -wall -g .... What those called: -wall -g Where can I find the full list of them, with usage description of them. Thanks)
[25 replies] Last: Thanks @it worked) Thank you everyone else (by ninja01)
building a multilayer perceptron
 
I want to build a multilayer perceptron and am almost done. I cannot initialize a test object though. I have written a basic linear algebra library "Matrix.h" t...
[12 replies] Last: sorry I went for a run, thats why I'm replying so late. I wanted to pu... (by closed account E093605o)
by acprog
swith into while
 
Hello, you knows why is happenig this. I mean, when I run the code and introduce a mistake the default in the switch supposed to capture the mistakeand restart ...
[1 reply] : you compiler settings are unable to handle the non-english characters ... (by jonnin)
About character sets
 
I looped through 512 characters and I realized that: my character set is 256. so it is not an 7-bit ascii. Instead, it is variant. My question is: Is there a...
[11 replies] Last: [quote=ninja01]Did you copy-past the hand, or write it using your keyb... (by Peter87)
About files, little bit related to c++
 
I am experimenting a thing here, Well some files are encrypted, others are not. Two of the last category are: text(.txt) files and cpp files. Every time I add ...
[2 replies] Last: Thanks @JLBorges (by ninja01)
building a multilayer perceptron
 
Hello, I am trying to build a MLP to learn C++. So far I have implemented a small linear algebra library "Matrix.h" and "Matrix.cpp". Now, I want to implement ...
[2 replies] Last: thanks, it works now. (by closed account E093605o)
C++20 VS2022 program to count lines please
 
I need help in writing C++20 program using VS2022 please. Program has to read any cpp/cc or hpp/h source file as input and count blank lines, comment lines an...
[7 replies] Last: If there is already an existing such a C++20 program, may I have its ... (by seeplus)
October 2022 Pages: 12
  Archived months: [sep2022] [nov2022]

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