Beginners - October 2012 (Page 25)

Output Problem
 
Hi, so I'm trying to get my program to output this specific piece of code: What size would you like? Please enter small, medium, or large: (user input) Enter ...
[2 replies] Last: because you have cout << endl << "Enter flavor 2: ";r flavor 2: "; y... (by Ch1156)
Horner-Newton Method
 
Okay, so I'm trying to build a program to find the complex roots of any given polynomials and have run into a dead end. No errors are given when compiling, howe...
[3 replies] Last: Okay, so in order to modify n do I throw in another for loop? (by tswvyim)
Need help with adding a 'save to a file function' with pet program.
 
Like the title says, I have been working on some code for an assignment lately, and I have hit a bit of a snag. Here is what the assignment calls for: Write...
[1 reply] : Well, in your pet class you'll need to write a function that saves the... (by pogrady)
by loot
Include / Linking Problems with g++
 
I'm trying to understand how to break up a program into main, header, and implementation files. I'm using a stack program that runs without error when it is co...
[9 replies] Last: @ne555 I was suggesting to the OP to put everything into a class, tha... (by TheIdeasMan)
DRAW ELLIPSE
 
I'm a Vietnamese, so my english is so bad. How can I draw an ellipse with no graphics library? Thank you!
[1 reply] : Is it even possible? I know this isn't much of a answer but don't you ... (by Maxim Podolski)
How to create a makefile?
 
Hi all, I have a 'C' program called childCommand.c I want to create a makefile for this program in UNIX environment. Can someone please guide me? Thanks...
[9 replies] Last: Thanks Peter Codewalker and ne555 all for your great hel... (by vichu8888)
Need assistance adding "Numbers" to a string loop without hardcoding
 
Sorry but I've hit a wall in my thoughts. Tends to be made out of diamond so firing explosive seems to not be working. My Program: cout<<"\nPlease enter the q...
[1 reply] : Sorry ahead of time, I'm COMPLETELY new to this site so if I've broken... (by Maxim Podolski)
Issue with NULL in variable argument function
 
I am trying to make a function that randomly chooses a single argument to return from a variable number of arguments of a single datatype. I am running Win...
[6 replies] Last: (visual c++ 2010 doesn't seem to like the "const Args&... args" being... (by TheIdeasMan)
Can someone help me with this code?
 
#include <iostream> using namespace std; float square_1 = 47; float square_2 = 42; float square_3 = 43; float square_4 = 49; { score_1 = sqrt (4 * ...
[3 replies] Last: That kind of helped, i think i can take it from there, thanks (by lSgtPepperl)
Problem with loops and strings
 
Here's a link to my code http://codepad.org/tfnFYnHJ The purpose of my code is to read from a file that contains the name and number of other files that I ...
[4 replies] Last: Yes I did. The problem ended up being that I forgot the offset in the ... (by hansguo67)
Hangman SOS
 
Hey, Got an assignment with little time to get it done. I'm really confused on how to tackle hangman. I read some other posts about it and I'm still lost. My m...
[5 replies] Last: Thanks for the IDEAS!!!!!! (by jlillie89)
Collecting trials for the sum of two dice?
 
s
[4 replies] Last: bump (by ProgrammingWiz)
program that will guess which number the user is thinking of
 
Hello! I'm trying to get a program to work that will guess which number the user is thinking of, however it currently only outputs the same number each time. Pl...
[2 replies] Last: Your if and switch statements need to be inside of a loop that will ru... (by freddy92)
draw 3 shapes using looping structures
 
Hi all, I need to draw 3 shapes and put them into an output file. I'm having problems. Suppose I enter 7 into the console then the shapes need to be like this. ...
[3 replies] Last: i found out how to do it. Here is my code just in case anyone else nee... (by uhhhjonas)
Repeating a program multiple times
 
Hey guys i have a small problem i have a program that is repeating using "do while" the program basically does some simple calculations lets say u enter a bet i...
[4 replies] Last: the and && operator i presume ...i feel so ashamed lol (by Madmax86)
Nested Controlled structures problem
 
say a= 6 b= 8 c=10 if (pow(c,2) == pow(a,2)+pow(b,2)) { cout << " Your triangle is a right triangle"<< endl; for ( i = a; i <= c; i++) { for (...
[3 replies] Last: Im calculating the area of a triangle so if the user calculates the le... (by Victor714)
Need to update array
 
The previous problem was solved, but however when i added a restaurant to the menu, the current_size won't update, can anyone help me how to fix this? Thank you...
[5 replies] Last: The condition will be true until you change it. You never change it, ... (by cire)
C++ text file into array + help
 
I'm doing a program where i need to put a text file that has a list of dates that look like this. Text file: 10 20 2011 12 5 2009 7 16 2008 etc.. ...
[2 replies] Last: I have this and not really good when it comes to structures since im n... (by rb26dett26)
What do these errors mean, and whats the average way to solve them
 
expected unqualified-id before â{â token expected constructor, destructor, or type conversion before â==â token expected initializer before numeric consta...
[1 reply] : Can you post the lines of code that are giving these errors? (please ... (by Disch)
Functions and "Sum of"
 
I am new to programming and I'm currently in a c++ class. The program I am trying to write will: 1) Ask the user to input number of employees 2) Ask the user ...
[2 replies] Last: In this code snip for (int i=1; i<=NumEmp; i++) { total = 0; t... (by vlad from moscow)
October 2012 Pages: 1... 2324252627... 84
  Archived months: [sep2012] [nov2012]

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