General C++ Programming (Page 3)

by moot
Template Class Not Working
 
For this project, I need to replicate a Priority Queue and I can use an array, vector, or linked lis...
[4 replies] Last: @jlb, Thanks for the tip and help! (by moot)
Linked List Template Class
 
Hi everyone I am having a bit of an issue implementing a template linked list class with a merge mem...
[no replies]
by Ferris
Deleting nodes from a linked list
 
Hello, I've been trying to delete the first node from a linked list... I've written the pseudocode ...
[no replies]
by setia
Game Monty Hall Problem Solution
 
Please help me, how about step by step mathematical solution if the program like this ? #include ...
[1 reply] : Double post: http://www.cplusplus.com/forum/beginner/190195/ http://w... (by chicofeo)
Tetris Rotation
 
I am currently at the last stage of the Tetris Clone using SDL library, the only thing left is rotat...
[2 replies] Last: Hey, thank you for the answer, my program almost corresponds to your i... (by LieForBananas)
fstream into a struct?
 
I do not know how to get my data into my struct. I know how streams work and how to get my info but ...
[1 reply] : Most of the ingredients are there, it's a matter of putting them toget... (by Chervil)
Variable not holding value of largest int in vector
 
I am writing a program for class that should find the largest int from a vector of ints. The vector ...
[4 replies] Last: Is there anyway to have it display the max value with a void function... (by Chervil)
by jirals
Question about void pointers
 
Hi so one of the question on my lab explains to grade my pointer array into a passing or failing. ...
[1 reply] : You could do it like this: #include <iostream> #include <string> us... (by Thomas1965)
by dr86
Skipping line from unknown reason
 
Hello. I have modified one of the C++ Openfoam's libraries. Everything compiles well, without erro...
[4 replies] Last: I put info like you said, compiled library, run program and nothing ha... (by dr86)
Check if a binary tree is height balanced
 
Is anyone able to tell me why this doesn't work as a recursive function to find whether a binary tre...
[6 replies] Last: @Peter87 This is all that google is giving me for it so there has to b... (by btoohey4)
Matrix of Objects: Boundary conditions
 
I have created a matrix with a class called Lattice. The lattice is filled with objects of type 'Dip...
[1 reply] : When I explicitly call GetDipole(a,b) and enter a and b to be negativ... (by fun2code)
Calculate Sales Items from a File
 
Hi, I am writing the code for a final project, and I'm struggling with this portion. I honestly don'...
[no replies]
I have no idea how to do from 4 to 8
 
1. Prompt the user Enter a positive number or 0 to quit: 2. Extract the number into int n 3. If th...
[2 replies] Last: #include "std_lib_facilities.h" int main () { int n; while (true) {... (by miguelarturo13)
how do I compute the sum?
 
1. Prompt the user Enter a positive number or 0 to quit: 2. Extract the number into int n 3. If th...
[5 replies] Last: #include "std_lib_facilities.h" int main () { int n; while (true) ... (by miguelarturo13)
How do I do this?
 
Now onto the double my sine( double x ) function. 1. Use fmod to find the value of x mod 2*PI. 2. I...
[2 replies] Last: #include "std_lib_facilities.h" int main () { double x; char finish... (by miguelarturo13)
Infinite loop issue
 
Hi, I wrote this code but for some reason when I type any other letter aside for the choices provi...
[4 replies] Last: Thank you guys so much! (by Lori123)
My output are only 0's?
 
I need values, but I'm not sure how? struct Time { int days = 0; int hours = 0; }; ...
[1 reply] : So you know that n is uninitialised, and thus some random value, but y... (by Moschops)
counting a divisible number in array
 
Hello, I need to write a program that will create a 2d array and then allow the user to input a numb...
[2 replies] Last: Thank you tipaye for your help and time, and for posting your own code... (by bluewizzard)
by anors
Sorting list usind STL
 
//In subject should be Sorting list using STL. I have list and I want to sort them in the ascending...
[5 replies] Last: On the first line you are attempting to construct a temporary list fro... (by cire)
Temperature Conversion
 
Hi! So I am working on a Final Program for a C++ class (you can expect other topics related) and I a...
[2 replies] Last: Thank you so much, I hate that it was that simple! I don't know if you... (by Stressed)
Pages: 12345... 26
  Archived months: [mar2016]

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