Beginners - October 2013 (Page 75)

by Elaphe
cout issue
 
Hi everyone, First let me say that this is my first attempt to program with C++. The only prior programming experience I have is learning BASIC back in high...
[3 replies] Last: Many thanks Chervil, for both the help and the advice. :) (by Elaphe)
Passing a file object as reference parameter to a function?
 
I'm not quite sure how to do this. I've passed variables to a function before, but never a file object. How would you do this, and how would you prototype such ...
[2 replies] Last: Didn't expect a response that fast. I had already figured it out a whi... (by Free Radical)
help correcting code
 
The task was to write a program that reads two numbers and stores them into variables double x,y; Then the code finds the values of the sum and difference of t...
[5 replies] Last: I got it, thanks to all! (by mikey108)
Need help with dynamic arrays + operators!
 
So I have created a dynamic array class and I want to do some operator overloading on these arrays. For example, c = a + b, where a,b, and c are all arrays of ...
[17 replies] Last: #include <iostream> using namespace std; #include "VectorFloat.h" ... (by zumi78878)
Class or Function?
 
Hi guys sorry im really stucked trying to make a progrm that calculates areas of trianfgles rects and circles but i cant manage to figure out a way of making th...
[1 reply] : You need three different functions: mainly triangle() , circle() , a... (by closed account 18hRX9L8)
by jwilt
rounding
 
this program is supposed to output rounded numbers for a whole number, and decimal places for tenth, hundredth, and thousandth, but my output only outputs wh...
[2 replies] Last: oh wow, thank you. (by jwilt)
Help Needed Please :(
 
So I'm new to the site, and I'm in need of some assistance. I'm working on a program that will assign a letter grade to a numeric grade that is inputted by the ...
[1 reply] : while( (decision != 'n' ) && (decision != 'N') ); should be }while(... (by Yanson)
class name student
 
Not able to enter more than one letter in for loop for class list: classList - An array of strings for the names of the classes the student is enrolled in. ...
[2 replies] Last: Thanks,using dev c++ so I also had to use a pointer to compile the pro... (by Mashd Taters)
Pointers with dynamic memory allocation compile issue?
 
I checked around the forms a bit and just reread about pointers really. I still couldn't figure out what the problem with this small piece of code is. I have lo...
[2 replies] Last: Thanks I should have seen that. Runs like a charm now. (by ragecoder)
while loop to calculate average
 
hello everyone, I'm very new to c++ and was asked to write a program using a while loop to calculate the average, it will keep asking for grades until you e...
[no replies]
Is there a way to format the numbers in output file?
 
I made a program which outputs certain number to an external file. To display the output inside the program I would simply use codes like "setw" and setprecisio...
[1 reply] : That should work. What does the contents of the output file look like,... (by Chervil)
Problem with if statements
 
Im currently trying to figure out how to correct my if statement in my second for loop to figure out the maximum bids from an input file. I cannot for the life ...
[2 replies] Last: Ill send you your medal in the mail. Thanks man I really appreciate it... (by tdawg027)
by Cas39
Question about Functions
 
Hi, I was wondering if someone would be so kind to answer my question(s). Basically, what I would like to know is if it is possible to declare variables i...
[9 replies] Last: Keeping the main function as free as possible doesn't mean to not put ... (by admkrk)
by Nebur
Reverse a list of words recursively
 
Hey, I am trying to learn recursivity and I am trying to do a program that given a list of words it returns them in a reversed order. Example: imput: hou...
[5 replies] Last: The recursive approach is the most logical one here. The recursive p... (by Duthomhas)
Unable to compile and link program
 
Right, so I to create a quick, easy program to test using GCC and I'm having a bit of an issue. #include <iostream> int main () { std::cout <...
[15 replies] Last: What does it say to the left of the > in the command prompt? Does this... (by LB)
by Nebur
Check if a number and the sum of its digits are prime
 
Hi everybody, I am trying to do a program that checks if a number is primer, and the sum of its digits, and the sum of the sum of its digits, and so on until...
[8 replies] Last: > your type of recursion is called tail-end recursion, and it is sligh... (by JLBorges)
arrays? can't figure it out.
 
Write your question here. Hey folks, This is a hw problem that i can't seem to figure out. This is my input file text: 5 4 100 500 250 300 1 ...
[4 replies] Last: Well, your variables should be declared something like this: int ... (by Chervil)
May Temperature
 
How may I start this program to find the average high, average low and average of the averages (the monthly average)of the month May? He expects the output sho...
[6 replies] Last: You have to know the format of the data. Whether there are text or nu... (by keskiverto)
How do I correctly organize output into columns?
 
http://s1281.photobucket.com/user/anhkha1205/media/alignment_zps92baad39.png.html check the link for the picture. int main() { double x ,y , c...
[2 replies] Last: cout << "\t"; //c++'s interpretation of a tab (by GRex2595)
Whats wrong with this?
 
Please Help me. // This Program is for Homework #5, Frederick A. Bowser // Define named constants; line, item prices, etc. #include <iostream> #includ...
[1 reply] : The problem is that mainOp hasn't been initialized. (by Josue Molina)
October 2013 Pages: 1... 7374757677... 86
  Archived months: [sep2013] [nov2013]

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