Beginners - October 2013 (Page 6)

Counting nodes on binary tree
 
[no replies]
by Freust
Console output after a while loop.
 
Hi, I have written a program that calculates the area of a circle from the radius that is entered by the human. Here's the thing: The program loops until a valu...
[2 replies] Last: Neither program follows the psuedocode. Both programs exhibit a prob... (by AbstractionAnon)
Hexadecimal
 
I need some help with this program. If you can say me what exactly means those notation: 'a', 'f', and what happens in every major sequence of every function. T...
[17 replies] Last: I meant 98 - 97 == 1 it was a typo. (by giblit)
had a weird error and fix???
 
So, I was finishing up my code to my ledger that calculates a running total on a set of transactions and I got to my last else statement and it told that I ne...
[4 replies] Last: wow ... I can't believe I forgot about that... Thank you for the help... (by bknick24)
What does .0f mean?
 
Here is the code (taken from http://www.sdltutorials.com/sdl-collision): SpeedFactor = ((SDL_GetTicks() - LastTime) / 1000.0f) * 32.0f; What does th...
[9 replies] Last: Why does it have to be an integer when it could be a float? You could... (by Stewbond)
Suggestion
 
Any good c++ book or the best one in your assumption i have dietel and dietel but the exercises don't have solutions i know it should be solved by self but stil...
[4 replies] Last: These links are a big help :) ty (by Sharan123)
by Chubby
Need help with time
 
charges & start time: 1-5 ---> .15 6-9 ---> .20 let says I input 4 for the starting time and 7 for the length of the call I know that I will have ...
[6 replies] Last: It's is time clock. (by Chubby)
Very simple code, but program freezes every time
 
Hi! I'm trying to answer a very simple mathematical question by a program. The question is: There's a family of 20 people. They all work. Women gain 30$/hou...
[12 replies] Last: Good! Thanks @Chriscpp and @Chervil! (by thepianistop66)
Stock Exchange Program Help
 
Cannot figure out the errors withing my program. Can anyone offer any advice. Here are the errors: midtermec.cpp:40: error: ‘stock’ has not been declare...
[10 replies] Last: This tells you that you've declared a constructor for Xchange, but you... (by Stewbond)
assignment
 
hello i dont where to go but been trying, but here is the assignment Write a program that first accepts an integer between 1 & 20 from cin. This integ...
[2 replies] Last: yeah im behind right now in c++ and dont know how to still do stuff (by austint)
Won't this infinitely create new objects?
 
Because in every object there will be a vector of CEntity's created? Or will it not because it is static? And why do I need to type it again in the cpp file? I...
[3 replies] Last: That vector stores pointers, not CEntity objects. That alone prevents... (by keskiverto)
by Tang87
customer id program
 
I need help inputing code and checking to see if it is put in correct format and adding letters and numbers if in correct format, and printing out the input. ...
[7 replies] Last: The first loop will check for the.! To break the loop but the second ... (by Tang87)
Passing a template class to another class as an object parameter.
 
Hi I am working on a project using opened addressed hash tables. I have got the hash table part of my code to work fine. I have also gotten the template part to...
[2 replies] Last: It's fine solved my problem. (by shaun1810)
crashing problem
 
this program keeps crashing and I'm not sure why. I'm not getting any errors or warning from it and I've looked it over myself several times and I just don't s...
[5 replies] Last: Main returns an int to inform the OS how it did, 0 being the code for ... (by Albatross)
by sea711
Create 2d array with int input from command line
 
I need to blend these two items together so that the numbers i enter in my command line argument create a 2d array full of random numbers. how can i do this? th...
[2 replies] Last: Bumping after less than an hour? So, the user gives two numbers X an... (by keskiverto)
by tg0822
Im Confused
 
I need to write two functions and a main body program that will output the names of animals into block letters. example: CAT would output like this. CCC A ...
[2 replies] Last: function rectangle printed the data to the file, and instead of trying... (by tg0822)
BlackJack bool loop
 
So in my Computer Science class we had to write a basic game, so i wrote a simple blackjack program. My only issue is my teacher dislikes the use of "goto", and...
[6 replies] Last: [quote=Mats]Everything after goto label; in your while loop can go out... (by booradley60)
Newbie here! Why i get a result on for loops?
 
After debugging it I get this result. I just started learning using for loops today and it confused me. number 1 number 4 number 9 number 16 number 2...
[2 replies] Last: Could you clarify, is there a specific question that you have? See th... (by Chervil)
running totals... ledger need some help
 
I am trying to make a ledger of some sort. The ledger will prompt the user for a beginning balance and then three transactions following that using the letters ...
[1 reply] : I left some for you to do. #include <iostream> using namespace std;... (by SamuelAdams)
Creating an array populating loop
 
I'm trying to create a loop that allows the user to populate an array through the keyboard and typing a command which allows the user to exit the program after ...
[1 reply] : char choice = 'a'; //If this becomes 'y' at any time, we exit the lo... (by Mats)
October 2013 Pages: 1... 45678... 86
  Archived months: [sep2013] [nov2013]

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