Beginners - October 2014 (Page 30)

If statement function (inside a class) with private strings
 
My issue is stated down in the comments, right at the beggining of the code: //I am trying to ...
[1 reply] : Hint: You are mixing input and output (cin and cout) in your class ra... (by closed account 48T7M4Gy)
by dcneo
Getting function to return double
 
Hey guys so this is exactly what i'm suppose to do. Write a function named avg that has three int pa...
[4 replies] Last: lol Thanks!! (by dcneo)
Formatting with leading 0s and spaces in the same line
 
The code computes, but I need it to align like this: QTY--Description--------Unit Price------Total P...
[7 replies] Last: Finally got it working. Used spaces as padding and something was block... (by Elysian)
clock() questions!!!
 
I would like to determine how long it takes a stack class to "push" elements onto a stack. I am tr...
[4 replies] Last: What I'm actually trying to do is figure out how "clock()" can accurat... (by theironlion23)
Associative containers
 
hey there. i want to learn how to use maps in a programm. i want to learn how to initialize maps an...
[7 replies] Last: The link I posted should work fine for Windows 7, I recall having it i... (by Zhuge)
loop until user choose to exit
 
Hello all, This is my first post on this forum. I like this forum a lot. My go-to place when i nee...
[3 replies] Last: thank you very much for all your comments and inputs. @Little Bobby T... (by fenixzplyr)
advanced random number generator help
 
hello ,i need help with this number generator. i want the program to tell me when i am close to t...
[5 replies] Last: What problem were you having doing that? Was there something about the... (by Zhuge)
by msrt92
Linked List Delete Node
 
When I delete first node it work fine.. But when I want to delete specific node its not working fine...
[5 replies] Last: Still Have Problem (by msrt92)
help with the for loop
 
hello i need help. i know how to use the for loop its like: for (int i = 0 ; i<10 ; i++) { ...
[3 replies] Last: when you need to index an array or RAII container? (by Little Bobby Tables)
Arrays to functions
 
Alright so I'm trying to send an array to a function but I only want to mess with certain values for...
[2 replies] Last: rafae11 thanks for your help! I thought I replied and closed this ques... (by MRangel)
cin statement is skipped
 
My code is skipping cin statement below, so I never got to input a value. #include <iostream> #in...
[1 reply] : The stream is in a failed state after while((cin >> input_coef) && (... (by JLBorges)
Name program
 
I've written a program that takes a user's name in the format "First Middle Last" and out puts it in...
[7 replies] Last: Did you manage to figure it out? (by art1986)
C++ Switch/Loop Problem
 
Hello everybody! I am in a Beginners C++ class in high school and we have been give this problem: ...
[7 replies] Last: Inside your loop read in the status. while(cout << "Enter your employ... (by giblit)
by Ganado
Efficiently calculating expressions at run-time
 
In my code, I have something like this //assign Z for (int i = 0; i < Iterations; i++) { Z = Z ...
[6 replies] Last: Hi, just wanted to let you know I finally got around implementing my f... (by Ganado)
HW help
 
Hello everyone, I've been trying to solve this problem for days. I read the text, watched Buckyro...
[4 replies] Last: if(a%i ==0) You are trying to use a variable that isn't initialized... (by mobotus)
by Uruku
letter guessing game for class, flipped
 
This is for my beginning C++ class. My teacher wants us to create a program where the computer tries...
[5 replies] Last: Hmm, I haven't had a test yet that gave more than 5 tries, but I do un... (by Uruku)
C Server
 
It has been a while since I have done any programming because I have been finishing up my math class...
[2 replies] Last: Worked like a charm. Thanks for the help. (by haglerchristopher)
CrtIsValidHeapPointer(pUserData) Error
 
Hi all, I am currently trying to teach myself about classes, constructors and destructors. I am w...
[3 replies] Last: http://stackoverflow.com/questions/15937707/error-message-cannot-find-... (by mobotus)
Help with classes
 
Trying to have a user input 2 digits to calculate area. The program doesn't behave properly. ...
[3 replies] Last: thank you both!! (by dyay108)
Compare numbers in string
 
Hello :) If one has some numbers stored in (a vector of) strings, and wants to compare them without...
[1 reply] : i think no. (by anup30)
October 2014 Pages: 1... 2829303132... 70
  Archived months: [sep2014] [nov2014]

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