Beginners - October 2015 (Page 12)

Calculator code with void
 
I am having trouble figuring out why my code is not running correctly. It builds and runs, but the output is not what I need. the output is suppose to read "Ent...
[2 replies] Last: Oops. I realized that when I enter the numbers and the math operator, ... (by hrubio96)
by ottob
Error: cannot bind 'std::istream
 
Hi all , I am getting a few errors when I run my program and I'm not sure why. Any help is greatly appreciated. Thank you This is what the compiler is telling...
[4 replies] Last: Really? It asks me for names of the hourly, then salaried... Try cle... (by pearlyman)
queue question
 
Hello everyone, I do have this code that compiles, but it does not produce the order needed. for instance if i add 3 numbers to the queue, (1,2,3) the d...
[1 reply] : A (standard) queue is FIFO generally so 1 then 2 then 3 in should deli... (by closed account 48T7M4Gy)
Randomly selecting word from string array
 
Hey guys, I am trying to randomly select a word from my string list. I'm making a hangman game right now. I'm confused on where I should go from here. ...
[3 replies] Last: Or dispense with x altogether: string word = getMeAWord( getMeARando... (by closed account 48T7M4Gy)
by ottob
Incorrect output
 
I am having some trouble displaying data that is in a structure. After the user enters all their information, my program is supposed to display what was entered...
[3 replies] Last: Hi Marie, Arrays of Structures Structures may be arrayed. In fact... (by pearlyman)
Need Help on Coding Assignment
 
Basically My assignment is to put everything into different functions. I successfully got Jedi_message to work but can not get hello_world to work. The code jus...
[1 reply] : double hello_world() { double total; total = hello_wo... (by ne555)
Inputting code into arrays
 
I need helping inputting data into different arrays. The txt file I am using contains a line of dates with temperatures next to them. There are a total of 90 da...
[1 reply] : I have figured out my mistake, but now i am still struggling on separa... (by kiritokush)
Looping error
 
This code runs, but with my code, it never gets out of the loop, and I do not know why or what I am doing wrong. I tried this with string first, but changed to ...
[2 replies] Last: Ohh so I have to write it so both requirements are met? Because readin... (by Toothless LL)
Function Help
 
Write the following 3 functions. a) A function the prints three asterisks with three spaces in between each, starting in the first column: * * * Do not pri...
[1 reply] : Ok, so since the functions won't be returning anything to the main fun... (by DDomjosa)
Binary search tree error LNK2019
 
I'm making a template binary search tree class and I'm having the following error: error LNK2019: unresolved external symbol "public: void __thiscall Tree<i...
[1 reply] : https://stackoverflow.com/questions/8752837/undefined-reference-to-tem... (by Moschops)
Void Function Problems
 
Please explain why the hell this snippet of code is not displaying anything. #include<iostream> #include<iomanip> using namespace std; void askDimensions()...
[1 reply] : Because you are not calling your function anywhere. Here is the correc... (by MiiNiPaa)
Help with program (Menu and choices)
 
Im currently working on a basic game for school, this is my first year doing computer science and this is one of my projects. Currently the program runs well...
[no replies]
How to make my code return decimal precision?
 
I don't know what I'm doing wrong. My code seems to work fine otherwise, but I can't get the average to print the proper answer with decimal. It's an assi...
[2 replies] Last: Duh!!! Thank you! Boy that was driving me crazy. I wasn't getting any... (by cnglaw13)
by bee309
Repetitions
 
////
[2 replies] Last: Since our OP was rude enough to delete the content of his first post h... (by cire)
PayStub Input/OutPut
 
I am trying to get an infile/outfile code for the following. According to my professor I need a ReadInputData, CalculateGrossPay, CalculateTaxPay, CalculateNetP...
[2 replies] Last: This is a double post - please don't (by closed account 48T7M4Gy)
Help Please! Keep getting errors.
 
Please Help! I need get my code to work with my notepad file that is payrollCalc. Not sure what I am doing wrong. //The Payroll Calculator program to en...
[2 replies] Last: Please don't double post (by closed account 48T7M4Gy)
while loop
 
how to change if statement to while loop { int input; cout << "Input an integer between 1 and 9999: "; cin >> input; int temp = input; int d = 1; if (i...
[no replies]
calculator
 
I need assistance in this project. its due tonight.!! Your calculator program should now display a menu like this: Choose a calculator: 1) Stand...
[3 replies] Last: Do you have a way for the user to enter in their choice? Then I would ... (by b29hockey)
by krutuk
Pass by refference pointer to array
 
Hi guys. I'm studying pointers right now and had already figured out how to pass pointer by reference into the function void (T *&name) , then I've tried to pa...
[5 replies] Last: what is the purpose of such pointer without any practical purpose ... (by kevinkjt2000)
switch case
 
can we use string declaration in switch case example: switch(string) case "string":
[5 replies] Last: why we cannot use string in switch case? The switch statement lets y... (by dhayden)
October 2015 Pages: 1... 1011121314... 57
  Archived months: [sep2015] [nov2015]

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