Beginners - February 2021

Using () or {} for initialization
 
I am a very entry level EE trying to learn C++. I am a working professional (not in school), and try...
[2 replies] Last: Hello chrisplusian, This may be of some help https://www.informit.com... (by Handy Andy)
by kg88
expression must have class type, not sure what to do to change it properly
 
Hi could someone please look over this code? I'm not sure what I need to change on my code to get ri...
[10 replies] Last: Hello kg88, Something else I did in the header file: #ifndef HEADE... (by Handy Andy)
How do I write a do...while loop in a class.
 
How do i fix this error? I understand it needs a function before the command but i'm not doing this ...
[5 replies] Last: Thanks! I think I kind of got the hang of it, i tried putting the func... (by FanOfThe49ers)
by icezy
Pointers
 
I am trying to run a program that intends to access data through pointers. But it not working ...
[9 replies] Last: TO WHOM IT MAY CONCERN I was sent a PM by the user @ haibinz , an... (by agent max)
Accumulator to average coin tosses Newer Method (MT19937)
 
Ok so here is the problem that was assigned: Using a loop and rand(), simulate a coin toss 10000 ...
[3 replies] Last: For the large numbers in each experiment you should get an answer of a... (by lastchance)
Factoring Polynomials Program
 
I can sort of get the answer but it does not function properly. I would appreciate any help. Here is...
[3 replies] Last: [quote=Deer Of School]I enter in: 1, 1, 1 or 2, 3, -2 It outputs: The... (by lastchance)
Help Understanding try and catch
 
Hello! For some reason, I just can't wrap my head around this despite reading multiple articles. I...
[2 replies] Last: I'm sure there are reading lists that include introductory materials f... (by Niccolo)
Accumulator to average coin tosses
 
Hello guys? I am a noob at C++, here is my problem I have to solve: Using a loop and rand(), s...
[3 replies] Last: Hello nickmcp11, I was working on your code when seeplus posted, So... (by Handy Andy)
(Simple) Variable changing value after iterating array
 
I am trying to iterate and modify an array of integers the value of n changes after the iteration: ...
[5 replies] Last: There are 3 basic ways to work with a container. 1. declare the array... (by Furry Guy)
by Gus60
waiting for a for loop to make 2 iterations before making a function call.
 
Is there a way to make a for loop iterate twice then call the function then iterate twice more. I am...
[1 reply] : After thinking on it a bit more I realized that I could check if count... (by Gus60)
I'm not sure about find_last_of(
 
Hi! I tried to print words which end with "aty" and to count them using the find_last_of function. A...
[7 replies] Last: @seeplus, Good point. I did not think about that. I will try the "rf... (by Handy Andy)
Trouble making a polynomial class
 
Hello i'm making a linked polynomial program that requires two classes. I'll put the description, an...
[12 replies] Last: #include <iostream> #include <list> #include <initializer_list> using... (by lastchance)
std::begin()
 
Hi, I have been learning stuff about STL and currently learning to insert, mostly in vectors, but in...
[8 replies] Last: For info, there's also std::size() as well - and since c++20, std::ss... (by seeplus)
by Tallow
How to stop the game from ending after I press a button?
 
I recently made a text based game with an inventory but whenever I open the inventory the game stops...
[5 replies] Last: Hello Tallow, At the beginning of your program you have these 2 if st... (by Handy Andy)
unresolved external symbol
 
I am not entirely sure why i got these errors: main.obj : error LNK2019: unresolved external s...
[3 replies] Last: You guys are completely correct. It was the linker issue. I was using ... (by invisibleninja852)
adjacent_difference Getting 2 Errors
 
I'm getting the 2 warnings on line 65 and 67. Not sure of what exactly the error meanings are telli...
[11 replies] Last: Thanks dutch! Appreciate the help! (by Brian845)
the question about move semantics
 
After learning rvalue reference and move semantics,it suddenly comes to me that rvalue reference are...
[1 reply] : CoreGuidelines: For “in” parameters, pass cheaply-copied types b... (by JLBorges)
by Ch1156
Why is this code not working correctly?
 
I'm trying to get an XP system working and for testing I want to be able to either set the players l...
[4 replies] Last: Thank you, I got it working correctly now. One more question. Now th... (by Ch1156)
From Source code to executable file
 
<< run and hide ran away >>
[1 reply] : How a compiler works is not a topic for a beginner, more for a PhD stu... (by thmm)
How to test if function works
 
I'm new to this forum and just started taking computer software classes. Could someone please help m...
[3 replies] Last: Perhaps as: #include <iostream> const int ROWS {12}; const int COL... (by seeplus)
February 2021 Pages: 123... 12
  Archived months: [jan2021] [mar2021]

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