Beginners - May 2023

develop an operating system
 
https://cplusplus.com/articles/zv07M4Gy/ How to develop an operating system using C++ I found a topic on the cplusplus website where they talk about loader....
[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; class calculator{ public: double n ; void ...
[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 for illustration. The example class should be iteratable wit...
[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> using namespace std; class calculator{ public: ...
[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 logic I found in a Java-client to the following C++ code. (I h...
[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 from class B", that "class A is-a class B", which seems to su...
[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 <iostream> using namespace std; int main() { const int n= 1e...
[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 at line 12 related to line 24 #include <iostream> usi...
[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 & rust are so much faster than C++ ! it's a competition using ...
[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 program i want to find the factorial of 4. I stored the value 4 i...
[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 into a function so every cout will type slow } for( int ...
[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 += incrementer ) { cout << i << endl; ++incrementer; } //////_///...
[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 sequentially? So...the vector has 1, 2, and 3 The integer is 10...
[2 replies] Last: valarray has some tricks that may work for you. it would be alonng th... (by jonnin)
  Archived months: [apr2023] [jun2023]

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