General C++ Programming (Page 45)

HELP me in understanding RECURSION plsss
Hey guys I am lost in it escapes calling itself here: void Inorder(Node *root) ...
[1 reply] : The base case is on line 2. (by LB)
need help with some code
i have three things wrong with this code and cannot figure it out. A hint would be nice. Thanks 1) ...
[1 reply] : int dg was unused and determine_grade will always return true (by jasonwynn10)
by daa17c
Implement Complx Class
So I am new to this so please forgive my ignorance. My instructor does not follow any textbook and t...
[no replies]
Finding the lowest leftmost node in BST
Hello ... I dont know why I cannot get the lowest leftmost node in BST: segment fault goToLeaf=ro...
[2 replies] Last: what should I do? I need to find min value of the right subtree (by csstudent123)
by mehjwu
arithmetic operators overloading for class with pointer
I am stucked in a problem of overloading arithmetic operators such as "+,*" for a class in the form ...
[3 replies] Last: Your code assumes that N is the same for both points. (by dhayden)
Trouble With Loops
Hello, I am currently working on a c++ project that will input students and process their grades. I ...
[6 replies] Last: What I ended up doing was getting rid of the first while loop in the g... (by pgagl623)
more than 1 return value per sub program?
Is it possible to have more than 1 return value from a subprogram? Please explain why cant find ans...
[5 replies] Last: I assumed OP did not mean invoking other processes because usually the... (by LB)
trouble with user defined namespace
Hey I have a problem with my homework assignment Program Description: Write a program to g...
[1 reply] : Well turns out I had my } miss placed so my main was inside my namespa... (by waketech123)
by mzzz
how to design a smart pointer class
smart pointer class is the one that take in charge of release allocated resource when itself destroy...
[6 replies] Last: You cannot check if pointer points to array or single value that way. ... (by MiiNiPaa)
Getting error in ofstream file.
I am writing an eVoting program the addTally function adds 1 to the Candidate's voting tally when ca...
[5 replies] Last: I've not tried to compile it, but your code should look something like... (by kbw)
I feel like I've gotten the hang of C, stdio.h, and stdlib.h; how do I go about programming 3d graphics?
I feel I pretty much know how to use all the keywords and features in C as well as the functions pro...
[2 replies] Last: Hi Disch, Thanks for the quick reply, I've been reading the online bo... (by comradejonathan)
by nik65
trouble with webscraping and arrays
I am trying to complete a function that takes info from a string, that has been taken from a web pag...
[no replies]
Approximating 'e' Using a Loop -- Euler's Number Problem
I am supposed to have a loop that terminates when the difference between two successive values of 'e...
[15 replies] Last: Valid observation. I didn't see that formula from the OP, so you might... (by Duoas)
Knapsack Conceptual Doubt - Dynamic Programming
I'm trying to learn and implement the solution to 0/1 Knapsack Problem and I checked some videos and...
[no replies]
Operator Overloading Methods
How the operator over Loading methods are called in c++? explain with copy assignment operator and ...
[no replies]
Abstract "static" class and performance.
Hi, I have the following code: class Element { public: .. virtual unsigned NumberOfNod...
[1 reply] : I have one instance of an element, e.g., Triangle for each mesh Share... (by MiiNiPaa)
Convert string IP to unsigned int
I need to convert a string IP to an unsigned int (uint32), but however solutions I've found elsewher...
[1 reply] : I ended up using `inet_addr("")` instead. Bear in mind th... (by cybermonkeyso)
if statement to read number negative or positive not working
So I tried creating a test code for reading a negative number and positive number but whenever I ent...
[2 replies] Last: the value -1 is type of int, so when you compare un1 <= -1, at this m... (by mzzz)
by Glaven
Divide User Input by 2 Until 1
Hii,, I need to make a program that takes in a user’s number and keep dividing it by 2 until it...
[7 replies] Last: at line 15 break; will be unconditionally executed, that will result ... (by mzzz)
Please help
My project required four pattern i. a square with a left to right diagonal in which the diagonal is...
[6 replies] Last: Yeah. Goto function is good at some point. :) But I suggest using "\t... (by jemeripol)
Pages: 1... 4344454647... 57
  Archived months: [oct2014]

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