Beginners - October 2008 (Page 3)

should I use recursion?
 
This is a homework assignment for a first semester CS class, so I don't want to be spoon-fed an answer, but at least maybe pointed in the right direction. Th...
[9 replies] Last: >> next_permutation won't help in this case. true, I misunderstood ... (by anders43)
Problems with a function
 
So I can call the getscore funtion from the main funtion and validate the data, but my problem is getting the main function to call the calcaverage funtion to c...
[8 replies] Last: I'm not sure what you mean. My assignment called for me to inlcude som... (by cascade384)
Creating an Object
 
Hello, My classes structure is as follows: Test.h class Test { public: Test(); ~Test(); int value; }; Test.cpp Test::T...
[1 reply] : You can't. malloc/free are from C, which is not OO and thus do not sup... (by Zaita)
Get values from an input file, find average, min & max
 
Hi, I am trying to do the following: From an input file that contains information in the following format: Name Age Name Age Name Age ...I now ...
[2 replies] Last: http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
3D returning "1" on any calculations
 
This is my first try at functions and I keep getting the same return of 1. PLS help. THX /* This console apps will calculate the distance between 2 3D ob...
[7 replies] Last: @grcunning: The reason for this will be that if you have multiple func... (by Zaita)
Get values from an input file, find average, min & max
 
Hi, I am trying to do the following: From an input file that contains information in the following format: Name Age Name Age Name Age ...I now ...
[2 replies] Last: http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
Compiler choices
 
hey all im new to the site and new to programming. well i speak TI-BASIC fluently but... my question is what compiler should i use? i have Bloodshed C++, M$ V...
[4 replies] Last: Again. Bloodshed is not a compiler. It's not even an IDE but an umbrel... (by Zaita)
dropping the lowest number
 
I need to be able to enter in five numbers and drop the lowest one. What kind of equation should it look like?
[8 replies] Last: http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
passing a pointer to a object.
 
Hi, I'm trying to pass the object storyWordManager into the constructor function of object madLib. Than use a pointer to the storyWordManager object to ...
[2 replies] Last: thanks hamsterman. But now when I use the pointer storyWordManagerP... (by Hypersion)
by Inebas
vectors inside classes
 
Hi guys, I'm new here and just beginning to learn C++. I'm trying to create a vector inside a class and it's giving me lots of errors. For example, #if...
[3 replies] Last: Thanks a lot. That indeed work. I didn't include it initially because ... (by Inebas)
Program to calculate a month calendar for any month and year?
 
This is what i have so far. i can't get the floor value to work. and i have to use the ibm ascii set. How do i solve those to problems? #include <iostream>...
[16 replies] Last: I will thank you very much (by Prada8787)
If/then If/else statments in c++
 
I am doing a class homework but I am stuck (first computer class I'm taking) and I can't figure out the first part of my "program". I wanted to try it out by m...
[2 replies] Last: Use strings as Zhuge suggested and out words like orange in quotes or ... (by Somelauw)
Program not outputting when if statement is met
 
figured it out, thanks for the help
[5 replies] Last: What happened to the question? Why did you remove it? (by Somelauw)
Register syntax
 
When I try declaring something like this: register int x; register char z; register struct something; register short int something_else; register etc etc...
[17 replies] Last: I think a lot of the confusion here is over C++'s implicit conversion ... (by jsmith)
switch case
 
This is a simple program I wrote to tryin to learn about switch case statements. Can you help me find what I did wrong. When I try to compile, I get this err...
[6 replies] Last: Mmmm, google "C++ most vexing parse" to understand why you had to remo... (by jsmith)
Pointer Declaration
 
I just started learning c a couple days ago so I'm sure this is a dumb question. If I change the declaration in the code below to: char message = "Hell...
[19 replies] Last: Correct, except the line of code should read message = "That"; ... (by jsmith)
Loan and amortization table.. how!?
 
Please help me. I thought this would be easy and then I started and WOAH.. I don't know.. I think I'm just confusing myself more... He wants the following: P...
[1 reply] : FYI: When you get your doubles, you can't put in values like "8.00%", ... (by firedraco)
C++ Program: Dealing with Distance and Gravity Equations.
 
Hi, I"m a beginner at C++. This is my first semester at college. And I am having so much trouble with this program. Can someone please help me??? Thank yo...
[7 replies] Last: Thank you for helping me. I figured it out tho! :) yay! If you woul... (by sburre1)
Calling just Functions
 
I am writing a program that uses only functions to do everything. Unfortunatly I am not seeing why I am getting so many errors, and yes all of this must be done...
[1 reply] : when you call a function you always have to put parentheses after it. ... (by Bazzy)
Functions that return char[]
 
I have written this code as part of a project. if my variable Name has the value "Amazon", how can i change this function so that the output is say Amazon.BAS i...
[4 replies] Last: He said he needed it for a project :). Sorry, i dont want to make peop... (by Scipio)
October 2008 Pages: 12345... 20
  Archived months: [sep2008] [nov2008]

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