Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
develop an operating system
 
https://cplusplus.com/articles/zv07M4Gy/ How to develop an operating system using C++ I found a ...
[4 replies] Last: From the osdev site above, for OS I can recommend the books by Tanenba... (by seeplus)
codes infinite loop
 
my code bugs when i put a long name at line 180 #include <iostream> using namespace std; ...
[4 replies] Last: Line 205 and 206 in the code above prints the filipino and average gra... (by Peter87)
Class with iteration capability like std::map
 
Good day! I am currently learning C++ and am struggling with implementing some test class, just f...
[12 replies] Last: Referring back to JLBorges's code from above, OP noticed that for( au... (by mbozzi)
too many arguments in function call
 
it is related to the calculator class that ive made error at line 117 #include <iostream> ...
[5 replies] Last: Check your Boolean logic in line 49. That should be &&, not ||. (by AbstractionAnon)
Is it possible to export a local created pointer?
 
In my CPP Basex client (=XML-database) I want to iterate over a set of results. I have copied the lo...
[8 replies] Last: You should delete the acquire memory in the correct order. Otherwise y... (by coder777)
Should you think of inheritance as composition of base class object?
 
All of the introductory material on inheritance I've come across teaches that if "class A inherits f...
[9 replies] Last: Thanks for the input, folks. I try to minimize the number of open-ende... (by ElusiveTau)
by anup30
weird program output
 
How is this possible in the following program. total should be equal to 1 million. #include <iostr...
[7 replies] Last: I was casually having a look at this question the other day and today ... (by gedamial)
redeclation even tho ive removed the other
 
its saying that ive redclared it and i already saved it but it still says that ive redclared it its ...
[1 reply] : So what's that string called pass on line 8 doing? (by salem c)
by anup30
are zig & rust 6.5 & 3.7 times faster than C++ respectively? sieve of Eratosthenes (1,2)
 
https://www.youtube.com/watch?v=pSvSXBorw4A @20:27 see comparative speed/score. cant believe zig & r...
[32 replies] Last: [quote=Ganado]Maybe try -O5 You got me! :) I'm used to the Solaris com... (by dhayden)
recursive function
 
There is the recursive function in my program for finding the factorial of the number. In this progr...
[19 replies] Last: This recursive factorial will run out of stack memory somewhere betwe... (by oggin)
Displaying letters slowly on screen. Typing effect?
 
I saw how to display letters slowly in the archives and wanted to know how you would turn that code ...
[7 replies] Last: Keeping things easier for you - a simple function ++ #include <stri... (by Geckoo)
add by 4
 
Write your question here. int incrementer = 1; for ( int i = 1; i < someLength; i += incremente...
[9 replies] Last: This std::chrono thingy is a bit weird. #include <iostream> using na... (by lastchance)
vectors
 
Write your question here. Is there a way to add all the elements of a vector to an integer sequ...
[2 replies] Last: valarray has some tricks that may work for you. it would be alonng th... (by jonnin)
Calculate GWA using class
 
in the title, i dont know how to code it and ask the user to put his/her info. thank you for your he...
[1 reply] : Let's break it down into pieces. First, write a program that prompts ... (by Ganado)
iterate through two std::lists simultaneously
 
The following function constructs a std::vector<std::byte> object which is used for passing bind-arg...
[6 replies] Last: For implementation, see https://en.cppreference.com/w/cpp/compiler_sup... (by seeplus)
by Ch1156
Interfacing functions in one class from another
 
So Im working on a very old project, I decided to go back and update the code and look it over to se...
[10 replies] Last: [quote=seeplus]A key can be a struct that includes those elements need... (by Peter87)
by Ch1156
Bizarre issue outputting sorted vector
 
So im having a very strange issue where my counter is outputting int he wrong order for whatever rea...
[5 replies] Last: So i kind of figured it out. I tried repairing and resetting the windo... (by Ch1156)
Garbled Output
 
I've encountered some wild output issues that I don't even know where to start with. I'm getting som...
[9 replies] Last: #include <iostream> #include <concepts> #include <cassert> #include <... (by JLBorges)
Pages: 12
  Archived months: [mar2023]