Beginners - June 2011 (Page 21)

Calculating future value question
 
I am new to C++ and worked hours on this today. I need to calculate the future value. Can anyone check this out and see what I am doing wrong? For some reaso...
[6 replies] Last: I am using "Introduction to Porgramming with C++" by daniel liang 2nd ... (by jkretzer)
weird 'while' loop
 
I thought a knew a thing or two about while loops but I can't honestly say why this one should be looping endlessly once it hits the 'else' statement within th...
[4 replies] Last: Oh jeez. Haha. I figured it was something obvious. Thanks! -Mark (by huitlacoche)
I think I may be using if wrong and it is messing up my code...
 
I think I may be using if wrong, but I can't figure out another way to do it. I'm trying to make it so if the user types in rectangle, it brings up a certain th...
[7 replies] Last: Danny: return 1; This is just a safety precaution to return "som... (by lwtan90)
int and double
 
what do int and double mean exactly.
[5 replies] Last: Why not try each one and see which works? //pow (a, b) #include... (by Danny Toledo)
by Jsel
Calling constructor from within member function?
 
I am trying to make a member function for my class that lets the user input all of the values for the object's variables. When I try to use the constructor insi...
[5 replies] Last: One reason to not read into the member variables directly, which is no... (by jsmith)
How do I add dependencies?
 
I'm new to these forums and programming, but it's something that I have always been enamored by and have started to transform my ideas to a programmable reality...
[no replies]
by Luke95
New Project
 
Hello, im looking for a beginning project. I'm 16, and unfortinatly for me my school does not offer Coding/C++ classes. Im a little new to c++ all though I alre...
[3 replies] Last: Hello, I am a student from UAT and I just wanted to throw my two c... (by bmorton)
Read special characters like swedish å ä ö using fgetc
 
I can not use fgetc to read special characters like swedish å ä ö. I would like to read character by character using fgetc and then present the decimal ascii...
[3 replies] Last: Thank you for your help for a higher understanding in character encodi... (by alderaan)
by ascii
Binary Tree
 
I have to create a Ordered Binary Tree for an assignment, and I'm stuck :/ I need to supply a default constructor for my CNode nested class or else when I all...
[6 replies] Last: I agree about the book. Great through ch. 10 but then I'm outta there.... (by closed account D80DSL3A)
Modify: Cashier
 
Hello, I am having a problem with my program. I'll post the code and problem.. /*Modify this program so that prior to displaying the simulated sales slip, it...
[3 replies] Last: It's not the only way, you could also cin >> "dummy variable" to consu... (by Ashishduh)
by nz3msb
Program Error! Don't understand why
 
#include <iostream> #include <fstream> using namespace std; int main() { int number, sum1, sum2, counter, limit, integer; ifstream inFile; ofstr...
[1 reply] : Your syntax is all wrong. Comparisons require the use of the '==' ope... (by Ashishduh)
by Bulova
Linked list questions
 
How would you copy a linked list or arrange a linked list to a certain value inside the nodes?
[8 replies] Last: I would do that because the data fields may be large, complex structur... (by closed account D80DSL3A)
Just wondering if this was possible
 
Hello, I'm just starting to pick up some of the concepts in C++ and I was wondering if it was possible to write a program where we can get change from a g...
[4 replies] Last: @ Mathhead200 I was able to get my program to work. I setted it up in... (by enlightenMe)
need help swaping integers
 
#include <iostream> #include <stdlib.h> using namespace std; void swap_integers(int x, int y); int main() { int num1 = 15; int num2 = 16...
[7 replies] Last: You should pass x and y by reference: void swap_integers(int &x, int... (by bl4ckb3rry)
Help with passing by reference
 
Hello, I'm trying to pass a pointer variable but when I return from the function call, the variable is empty even though it gets modified during the function. ...
[5 replies] Last: "empInfo" seems to be a pointer, if it is being set to point at a vari... (by Computergeek01)
Multiple includes?
 
Hey everyone, I wanted to know how to deal with the following situation: suppose my main file needs to include a header file, let's call it "DigitRecognizer....
[3 replies] Last: Sweet, that's awesome! Thanks, that helps a ton. (by zeromeus)
How to free the memory after return the array?
 
I have got some codes written in C, it returns an array allocated using 'calloc'. However, as far as I know, we need to do the 'free'. But if we free the array ...
[5 replies] Last: sorry, I should read the post carefully. (by stereoMatching)
Two Notepad Apps - Simultaneous Editing
 
I made a post the other day about not knowing where to start on a bigger project and I thought this made a good example of something I'd like to do as a learnin...
[4 replies] Last: Just a "thanks for all the ideas" posts :) I'll get looking into them ... (by CarrotTop)
Calling method within classess
 
Hello everyone. Simple question for the following code: class Story { public: Sheep* SHEEP; Persons PERSONS ; Bajka() { PERSON...
[4 replies] Last: Currently, it looks like this: #include <iostream> #include <Stri... (by mefhisto)
EOF won't terminate???
 
So I have my latest assignment almost complete but when I enter the EOF the program kicks into an endless loop? I have found that I can tend to get a little "c...
[5 replies] Last: First off, how come your celConvert has a c parameter and farenConvert... (by Ashishduh)
June 2011 Pages: 1... 1920212223... 41
  Archived months: [may2011] [jul2011]

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