General C++ Programming - December 2016 (Page 17)

nvm
 
...
[1 reply] : Don't post homework questions Programmers are good at spotting hom... (by integralfx)
How do I add two fractions in a string?
 
How do I add two fractions together in a string like: "1/2 + 1/4" and get the answer 3/4? I've been sitting here for hours and I just can't seem to fi...
[16 replies] Last: Thank you @kemort!! (by vincelam1998)
programming project help c language
 
I believe this code is supposed to output 5 7 9 4, im just not sure how to get it to do that. What will be printed as the result of the operation shown belo...
[3 replies] Last: > What will be printed as the result of the operation shown below. Un... (by JLBorges)
inline function error
 
I'm using a inlined function that when called elsewhere causes an undefined reference error. //inlined function SDL_Renderer* Sol_Window::get_renderer() { ...
[1 reply] : Inline functions must be defined in every translation unit where it's ... (by Peter87)
Time to generate output
 
I have this program that searches through a text file for every word that starts with a certain prefix. But I need to put in a function that calculates how lon...
[3 replies] Last: Thank you so much! (by trno224)
Helpp arrays files and functions
 
How to use getline in a while loop that reads names and average from a file and fill it up in array
[13 replies] Last: finally done. You helped me a lot a big thanks (by waqarmalek)
Do 2 functions at the same time
 
Hy,i want to recreate a game,it was with a ball,that you had to hit a horizontal stick(kind of stick) and then the ball hit the vertical surface and bounced off...
[2 replies] Last: To add to mbozzi's answer, I offer this analogy. Imagine that you're ... (by helios)
Recurrsion - Help
 
I need help trying to figure out this algorithm. I've been stuck for days now The debugger just confuses me more. Can somebody please just comment on one loop s...
[no replies]
by younes
Using smart pointers with arrays
 
How can I create a smart pointer to an array of double?. I want to convert this expression : double* darr = new double ; // Notice the square brackets ...
[1 reply] : The auto_ptr has been deprecated (set to "do not use any more" statu... (by keskiverto)
Problem with run again loop
 
The program lets you put in a start time and a end time and then calculates a price of the duration of the call. The problem that I have in my main section is w...
[3 replies] Last: 256 is just "enough" extra characters. As long as you don't sit on the... (by lastchance)
Need help with algorithm assignment
 
There are 9 digit in the range of 1234566789 to 987654321 where each digit apear only once. Write a program that write 100 000th number in these sequence. The...
[3 replies] Last: I think the sequence is just the legitimate numbers in ascending order... (by lastchance)
Need Assisstance in correcting my Reference Menu.cpp
 
Below I have put together a rough draft of my Menu for my final project. It looks to be okay but the program will not run. Any suggestions would be nice. /* ...
[no replies]
Deleting an object
 
Good morning, I have a task to create a certain amount of objects. However, an object has a variable called age. Once that variable reaches 10 it should be del...
[1 reply] : The code below creates a variable called age and deletes it once it ... (by boost lexical cast)
sort function
 
I have a project due soon and im confused on the sort function. i have the sort function from my book and i would like to put it in descending order for any ar...
[3 replies] Last: [quote=WhatAml]Check out this link, there's a lot in there, but look f... (by boost lexical cast)
by cang
Identifier not found error
 
When I call yyparse in main, I keep getting an identifier not found error and I can't seem to figure out why. Does anyone know what's wrong? The yyparse functio...
[5 replies] Last: Try making a clean build. (by mbozzi)
by KVin
Can Someone tell me why this program is not doubling the numbers 64 times ?
 
it dos not have to be array or a loop: Think about an array that has 64 elements , write a code to insert on the first element the number 1, then double this...
[16 replies] Last: > it says there is an error What is the complete text of the error me... (by JLBorges)
converting answer from a fraction to a decimal
 
hey guys, i figured out how to do this problem that my professor wanted but he put a twist on it that i cant figure out how to solve. he wants the final answer ...
[1 reply] : Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
Converting Recursive Function
 
I have a recursive function here, but it is causing overflow errors so I need to change it into a non-recursive function. Any help on how to do that will be gr...
[no replies]
by DyzziD
Trying to relate variables
 
I am currently trying to make a game similar to the TV Show Lets Make a Deal. The game will randomly place prizes behind 3 doors. The player gets to choose a d...
[5 replies] Last: When you put it like that I can really see the benefit of including an... (by DyzziD)
Problem calling functions from a class
 
My goal is to create a program including a class that displays the radius, diameter, and area of 2 circles. One of the circles radius is given using a construct...
[2 replies] Last: Wow, I need to get some sleep. Thanks so much (by logdog9191)
December 2016 Pages: 1... 15161718
  Archived months: [nov2016] [jan2017]

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