Beginners - September 2022 (Page 3)

Floats subtraction and comparisons (1,2,3)
 
Hi, I know of the issues of floating point subtraction and comparison issues but I don't know how to...
[50 replies] Last: Good info, thanks! It is a public non-static member and I am already ... (by SubZeroWins)
Question about Escape sequences
 
Part I ====== std::cout << "Backslash: \\" << std::endl; std::cout << "Double quotes: \"" << std...
[8 replies] Last: Thank you @seeplus (by ninja01)
Is there any difference between '\n' and "\n
 
That's right), Is there any difference between '\n' and "\n.
[9 replies] Last: Understood, thank you everyone) (by ninja01)
char8_t (1,2)
 
I am currently using the latest version of code blocks 20:03 But I seem not be able to compile this ...
[28 replies] Last: One thing that may not be of much importance at this time, but should ... (by George P)
Child Class reference parent class
 
I am trying to model a car object and I want the car object to have a child engine object but I want...
[8 replies] Last: It could be used for reverse look-up. Given an Engine, what Car is it ... (by seeplus)
What CWG means?
 
In this link: "https://en.cppreference.com/w/cpp/language/character_literal" You can find at the ...
[2 replies] Last: Amazing answer, thank you @mbozzi (by ninja01)
Que functions
 
Guys any ideas on how to complete these code including part 2-8 in int main instructions? #inc...
[4 replies] Last: enqueue/dequeue are over-complicated. Also there is a memory issue as ... (by seeplus)
Handling duplicate keys as collisions in unordered_map?
 
Hi, New to using hash_tables and unordered_map. I was wondering if there was a way to handle insert...
[6 replies] Last: Yes, just push back. std::unordered_map <std::string, std::vector <... (by Duthomhas)
Free books (UK)
 
Hello Not sure if this allowed here - if not mods can delete. I have the following programming...
[4 replies] Last: I live in France - not too far from you. If I pay the postal charges, ... (by Geckoo)
Trying to obtain 3D vector with multiple 2D vectors
 
Hello fellows. I am trying to push_back 2D matrices I obtained from ontain function and I need to ha...
[4 replies] Last: @Ganado. Thanks you so much :) It is really funny :) I could not see i... (by learner999)
Error when building my class
 
Hi, i am busy with a project from school and i am creating a class of a bank account. When i build t...
[16 replies] Last: Shoh, once again a simple syntactical error... That fixed everything. ... (by MHS1986)
by Geckoo
std::string s or std::string &s
 
All is in the question. I understand the main principle, but I am wondering why often coders prefer ...
[11 replies] Last: I posted a simple question In C++, that's almost an oxymoron! ... (by seeplus)
Last output missing when copying input with multiple lines.
 
Hello, When you copy this whole input: test1 test2 test3 and paste it into the running program belo...
[3 replies] Last: How are you terminating the while loop? With Windows as an example I g... (by seeplus)
why does this else if statement never run?
 
for some reason the else if statement to catch if the denominator number is 0 never runs when y is e...
[13 replies] Last: Yes. I noticed that the same goal can have many different code "shapes... (by Geckoo)
Function to display all stacks
 
What is the error of my void function to print all the displayed stack elements? #include<iost...
[9 replies] Last: ... and as a class, then consider: #include <iostream> #include <fo... (by seeplus)
Stacks using Array
 
Any ideas on how to convert this program into Stacks that use Arrays? This one right here used an ST...
[5 replies] Last: ... and as more generalised, then consider: #include <iostream> #in... (by seeplus)
About dynamic programming
 
Hi everyone, I am learning to do dynamic programming but as each time I run on a problem that uses d...
[1 reply] : For a couple of articles on C++ Dynamic Programming: https://www.cprog... (by seeplus)
Need Help in installing latest C++ version on Ubuntu please (1,2)
 
Hello, At present I have on my Ubuntu laptop, I have C++ gcc version 11.2.0. I like to upgrade i...
[31 replies] Last: Module support with GCC, starting with V11, is partial. Whatever part... (by George P)
by ICantC
CMAKE query
 
Hello, I'm trying to build a simply text project using CMake for the first time, but I get undefined...
[2 replies] Last: thank you, I'd since looked at that, it turned out that the linking st... (by ICantC)
Is this a namespace collusion?
 
Consider the example below: namespace ns1 { void func(void){ std::cout << "I am in...
[7 replies] Last: https://heimduo.org/what-is-a-namespace-collision/ Geared more toward... (by George P)
September 2022 Pages: 1234
  Archived months: [aug2022] [oct2022]

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