Beginners - February 2016 (Page 37)

by m0bb1n
Health bar/Damage system
 
Hello, I am stuck on how to make a health bar for an enemy. This does the opposite of what I want it do. Instead of taking away '#' for damage it adds it. ...
[5 replies] Last: No worries, I didn't catch it at first either. Keep up the zombie stuf... (by wizebin)
reading from a file, easy question?
 
This is a seemingly trivial code that's been giving me trouble. I'm trying to read some integers from a file. The content of the file is: 1 2 3 4 5 435 23...
[2 replies] Last: Thank you ^^ (by bool maybe)
integer pointer inside function
 
Hi I need to do the following in C but I have no idea what I am doing. The following is my problem. Declare a function that accepts an argument which is a po...
[1 reply] : #include <stdio.h> #include <stdlib.h> char myfunction(int *a); int... (by cire)
help with dynamic array
 
I'm getting a WHOLE bunch of errors on my code, would appreciate any help I can get // Container with dynamic storage #include <iostream> #include <io...
[1 reply] : container& operator=(const container &rhs); Make sure the function ... (by TarikNeaj)
Program that computes tax and tip on a restaurant bill
 
Hello, I'm brand new to programming and I'm having trouble with this assignment: "Write and document a program that computes the tax and tip on a restaura...
[1 reply] : Do something like this. float total_StateCost; // variable for tot... (by m0bb1n)
Printing Elements of 3D Array of pointers
 
Here is my full code: #include <iostream> #include <cstdlib> #include <ctime> #include <stdio.h> #include <string.h> using namespace std; int ma...
[no replies]
Logical Error with input function
 
I am working on a project on inheritance, where DollarAmount is a parent class of class SpendingRecord. There seems to be a problem with these two input functio...
[no replies]
by suroh
Issue with a school project, while loop!
 
Currently in college and working on a problem in my book (it's not actually part of my class, just some thing I want to figure out). The problem in the book i...
[2 replies] Last: Yeah it looks i was really over complicating it thank you for the help... (by suroh)
Help same issue several programs
 
Hi All: Total newbie in class and having an issue with several different HW problems. All seem to have similar issues with "left over" input junk. When I...
[4 replies] Last: PNOID: thanks that seems to be it for the simple CIN not looping righ... (by WPSPIKER)
Throwing exceptions
 
Hello, I'm trying to write a function that will return an element from an array. Now, it can happen that this array is empty, so nothing can be returned, and th...
[6 replies] Last: I don't know what baseException is, but the following code throws and ... (by Moschops)
by m0bb1n
Segmentation fault (Core dumped) error
 
Hello, I'm getting the segmentation fault (core dumped) error. All I know is that it was caused when I added this. Any feedback is appreciated. Thanks! ...
[2 replies] Last: Yeah I just realized that. Forgot that it starts from 0. Thanks! (by m0bb1n)
Searching and printing from a text file
 
Title is ambiguous, but, basically, I have a text file with three columns - the first one is from T1 to T104 and means Try1, Try2..., second and third columns a...
[1 reply] : You could use a stringstream to parse the line into fields. (In this ... (by Chervil)
CoCaCola Machine
 
Is my learning Code Going good. I created an cocacola machine #include <iostream> #include <iomanip> using namespace std; int main() { int ...
[1 reply] : Looks great! I'm super new as well, you are even a little more experie... (by Aurori)
Taylor series
 
I am extremely lost on how to write this code and would appreciate any and all advice for it. These are the instructions I was given: "Create a new source fi...
[5 replies] Last: Maybe replace line 34: << setw(8) << mySine with: ... (by Chervil)
by Atrain
Hailstone sequence
 
Hi, I am trying to figure out how to list the hailstone sequence numbers after I type in a random number. please help! #include <cstdio> using namespace ...
[15 replies] Last: also, circular reasoning is as follows: Circular reasoning (Latin: ci... (by RUNNER PRO AGARIO)
Displaying outputs in a table
 
(I decided to make this a new question since I no longer need help with the math of the code) I've managed to get the correct values for the trig functions I ne...
[1 reply] : and I do not know how to do this You may want to look into using the... (by jlb)
Beginning to learn Object creation
 
I completely understand that the project that proceeds this is elementary, yet I am failing to understand how to proceed. I want to improve my code so that when...
[2 replies] Last: Well I figured out a way to do it. It works for the program. just not ... (by kidd2100)
by m0bb1n
Console prints out blank screen for combat scenario
 
Hello, I am currently making my first text adventure game and have come across a dilemma. I can't seem to find out what is going on. It's a runtime error a...
[2 replies] Last: Thank you so much! whitenite1 +1 (by m0bb1n)
by m0bb1n
Returning variables from different function
 
Hello, I am trying to make a small program that gets the a value that a user inputs and then prints "Hello" that many times. I am trying to do it through di...
[2 replies] Last: Thank you very much! (by m0bb1n)
Little help with my first steps (text input and public/private)
 
Being as straightforward as i can: i was messing around with input codes, trying to get myself used with C++ and i came to realize that this code works fine so ...
[3 replies] Last: Oh! I see my mistake. Thank you guys very much. (by Yuno333)
February 2016 Pages: 1... 3536373839... 46
  Archived months: [jan2016] [mar2016]

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