Beginners - May 2020 (Page 8)

by yem
Question about: Static Variables with classes
 
I need to do the following for my hw but have a question. I'm supposed to build an atm machine with the following: Main.cpp, Account.h, Account.cpp, Clock.h, C...
[4 replies] Last: Thanks! (by yem)
by hbcpp
How to check if a template parameter is an iterator type or not? SFINAE
 
I am trying to implement a std::list-like doubly linked list and in a template constructor I need to restrict the type that would be used. So after a couple ...
[15 replies] Last: Substitution failure only eliminates candidate functions when template... (by mbozzi)
gcov - generate only for single file in a library
 
Hi I have written a library which compiles to a static library file. I have also written some unit tests which are executed via test.cpp. All of this is genera...
[no replies]
Being c++ developer
 
How can I be a c++ developer? I am starting out with stroustroup book
[2 replies] Last: Read the book, read other C++ books as well. Find online tutorials an... (by deleted account xyzzy)
Heap memory allocation
 
Hi there good people, please look at my program down below, the second case is behaving in a different way please clarify it for me. thanks #include <i...
[4 replies] Last: am just trying to figure out which way does the stack-free store- ini... (by deleted account xyzzy)
UML problem
 
so i have this uml diagram and i dont understand much of it, i tried to do the first class but the other 2 i dont understand what i have to do, can you help me ...
[6 replies] Last: Thanks a lot for the help, i appreciate it very much. (by hmzi123)
operands type incompbatible
 
Hye! It's giving error when I compare head with "del". How would I dereference head to be able to compare it with "del". I am bound to make head double pointe...
[3 replies] Last: There are two ways to dereference a pointer. * and -> In this c... (by Repeater)
Bubble Sort function for linked list not working properly
 
I realized that I made an embarrassing and simple mistake
[1 reply] : temphead = temphead->next; You should only do this when you've fin... (by Repeater)
Clear Vector ?
 
Hello is it necessary to clean a string vector at the beginning of a program or is the vector cleaned at each execution of the program?
[14 replies] Last: Sounds like you used the output from tasklist as a source of entropy... (by Ganado)
by poop13
where is the best place to learn making programs with interface?
 
i can't determinate if i'm a beginner or not on C++ but i want to learn how to make programs with interfaces but i can't seem to find anywhere to learn this
[8 replies] Last: If you strictly want GUI library.. One good C++ GUI with nice interfac... (by malibor)
by Dalski
Design Around The GUI?
 
Bit of a premature question here as I'm only on lesson 5.5 but I have an application in mind with many logic gates already thought out. I'm quite worried abo...
[11 replies] Last: PDFs are hard to work with. its a mix of 1985 era postscript and a bu... (by jonnin)
by nixUe
Adding object to dynamic array using address returned from getArray();
 
I use a for loop to assign the proper values to the object so the object is completely ready to be added to the dynamic array (using a dynamic array of objects ...
[13 replies] Last: That makes a lot of sense, I was missing the setCarArray(newCarQuantit... (by nixUe)
by Mif
Does anyone can help me with the MDI ?! (1,2)
 
I have an MDI created and it works until I press on menu new file and I get this error message I wrote on message box.. that the New MDI child creation failed t...
[27 replies] Last: What are you trying to accomplish with a while loop? The layout of co... (by deleted account xyzzy)
by sparki
C++ Linked list Pointer to pointer
 
Is anyone able to explain how pointer to pointer works in this linked list implementation? Can't seem to fully understand, especially with "node=&((*n...
[1 reply] : a pointer to a pointer just basically stores the address of another po... (by markyrocks)
Filling Vectors
 
Hi, trying to write some code to fill a list of customers and purchase amounts, I used a do/while to collect input, but for some reason on the second go-around ...
[7 replies] Last: Here's the completed, tested code. I changed the input sentinel from ... (by dakotad8218)
Better way to write this?
 
Hi, working from the textbook and doing this example that basically searches for the next value in an array instead of just finding the first one and exiting. ...
[7 replies] Last: Recursive solution... #include <iostream> using namespace std; int... (by Manga)
by hbcpp
error: default argument for template parameter for class enclosing
 
I am trying to implement a std::list-like doubly linked list and when defining a constructor I am coming across an error that I don't quite understand. The str...
[6 replies] Last: Yes, if it wasn't clear from the above, here's a version that compiles... (by mbozzi)
by bld
The best IDE for a low-spec PC (1,2)
 
Hi, so I have a low-spec PC and I was wondering what is the best IDE for a PC like this (for writing and compiling C++). My PC has a 2GHz dual-core CPU, 4GB of...
[31 replies] Last: yes it just take time to make it behave how you like. I want it to beh... (by jonnin)
Why is it adding enemies
 
The following code outputs 1. Shouldn't it output zero since knights is 7. I'm new and probably missing something super obvious. int main() { vector<int...
[5 replies] Last: Only thing i can say is if you're still working on the king Arthur pro... (by markyrocks)
Print simple numbers
 
Hello, I want to print the below numbers. I wrote a program but I should delete 32. How can I fix my program? Goal: 1---64 2---16 4---8 8---4 16---2 64---1 ...
[2 replies] Last: #include <iostream> using namespace std; int main() { for (int i ... (by lastchance)
May 2020 Pages: 1... 678910... 17
  Archived months: [apr2020] [jun2020]

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