General C++ Programming (Page 9)

by kada17
Formatting oversized columns in output
I am having an issue with oversized data for some of my columns. My normal output looks ok but when ...
[1 reply] : erase the extra (by SamuelAdams)
class's: how can i use assigment operator on constructor?
how can i use assignment operator on constructor? class event { private: function<void (void)> ...
[4 replies] Last: thank you so much for correct me (by Cambalinho)
Printing contents of vectors in a linked list
Hi there, I'm still working on the same family tree program and converting it into a linked list (ne...
[1 reply] : void Male:: displayWifeChildren (string p1) { familyNode* newNode... (by ne555)
loops and answers
Im having trouble setting up a loop where an answer got is used again next in the loop.Can anyone wr...
[1 reply] : int answer = 1; for (int i = 1; i < 11; i++) { answer = answer * i... (by Repeater)
Please help my getgpa function is not reading data
Hello guys, my GPA function is not reading data from the courses. I can't find a solution. I'll be g...
[4 replies] Last: how can i pass that student to the function? (by jhonx234)
Displaying the maximum sums of subsequences and its subsequence values
Hi I made this program expecting it to return the maximum sums of subsequences of the given integer ...
[2 replies] Last: Oh I commented that part in the code I don't remember why (by ratteng)
QT installation problem
Hey guys I'll start of by saying I'm new tp qt.I decided to try download qt,its something that has i...
[no replies]
Why is this not reading as a sting?
Hi all, It's been a while since I've programmed in C++ but the below: ifstream fin("SMX_Test.csv")...
[2 replies] Last: Might be easier to create a struct for the data and use simple vector.... (by Thomas1965)
Please explain this program
Can somebody explain this program line by line in simple words i am new to c and c++ so i just kno...
[3 replies] Last: ip.type = INPUT_KEYBOARD; = 0; = 0; (by Thomas1965)
Merge a linked list with another linked list O(1)?
I am supposed to merge one linked list with another linked last so that the first linked list is emp...
[5 replies] Last: Apparently "merge" as in "concatenate", "append", or "transfer content... (by keskiverto)
by Chaost
Detect numeric keys with few statements
I have to detect key input from the keypad (1-9) as well as whether CTRL/SHIFT/ALT was held down at ...
[2 replies] Last: That's the solution I ended up with, seems it's the tidiest way to acc... (by Chaost)
Err C2228 - Possible Most Vexing Parse?
Hello I am trying to recreate a system I made in Python. Here is the error I am getting: error C222...
[3 replies] Last: Thanks guys. Just figured out the problem a little bit before the resp... (by Dish5oap)
Mirroring 2D array across diagnol
I am trying to mirror an array. This is the array I am given 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 ...
[4 replies] Last: ok, so you want to mirror arcoss the top left to bottom right diagonal... (by jonnin)
program running out of memory?(crash)
Hello guys I am making a kind of snake game where you hit a piece of fruit your score gets increment...
[11 replies] Last: I suppose the GNU crowd thought that it would not be politically expe... (by adam2016)
Double Variable Evaluating to True
Hi! I am working on the following for an assignment, but I keep returning the same error "Line 33: t...
[3 replies] Last: @Kloppite and @lastchance thank you! I did not realize that the way in... (by coloure)
by stav
Invalid use of incomplete type
Hi I have two calsses: MyObject and MyLogic MyObject inherits from MyLogic but MyLogic needs to h...
[2 replies] Last: oh, of course. Yeah i think i will try to rethink my design again T... (by stav)
Small library providing getters/setters
Hi guys, I've written a small library, allowing you to simply add getter/setters to existings varia...
[5 replies] Last: @doug4 I would change std::function<void(T &, T const &)> _setterFunc... (by marco91)
C++ Classes (issue)
Hey guys so I've been trying to gain some understanding of classes by creating a OOP program in one ...
[3 replies] Last: If I may give a piece of advice, you may want to look into overloading... (by Lehti)
Brute Force Program Error on for loop
// Can someone run this program on C++ compiler: I'm getting an error on this // for loop on line 1...
[1 reply] : int i,j,r,c; printf("Enter number of rows\n"); scanf("%d",&r); prin... (by jonnin)
Can't read all lines of file
I have a program that is supposed to read from a file, parse it, then output the results. I can't ge...
[5 replies] Last: Thanks JLBorges, I was able to fix it after checking the file. (by jmoore201897)
Pages: 1... 7891011... 23
  Archived months: [jan2018]

Cannot post in this page. To post a new message, go to the first page.