Beginners - March 2014 (Page 20)

Precision of variables
 
Hello, I am writing a program to calculate Newtons Method and I want to use 10^-6 (0.000001) as my epsilon. I have defined epsilon as a double precision floati...
[2 replies] Last: 1e-06 is the same as 10^-6. (by giblit)
Text Based Game help
 
Write your question here. #include <cstdlib> #include <iostream> #include <string> int name(); int race(); int main() { using namespace std...
[7 replies] Last: No doubt, that writing code is the BEST way to learn code. the only re... (by Chillieman)
How to print??
 
Okay so I am trying to print four words and four numbers every line. Since there are conditions attached to the print statement, I have no idea how to print. ...
[1 reply] : int counter = 0; for(i=0; i < 65; i++) { if(HashinString !="EMPTY... (by Smac89)
by Ram1
Help Please
 
1. Write a function that receives a string of characters. This function display each character in the string with one character per line. 2. Write a functio...
[3 replies] Last: What is "not working"? (by keskiverto)
by Taylrl
Currency Converter....do I need pointers?
 
Hi, I have been reading up on C++ for months now and have copied many examples but have now I have just set out on my own with trying a basic project and h...
[3 replies] Last: http://www.cplusplus.com/reference/map/map/find/ see the example here... (by mutexe)
2 Dimensional Arrays
 
Any ideas on how to simulate a random walk using 2D arrays? You can only go up, down, left or right. You would start in the center and the direction you moved w...
[4 replies] Last: Thank you! (by tylergarner)
dateClass program
 
hello can u help me with this program please : Build a DateType class with day/month/year format. Do not forget that : days : 1-31 (for months: 1,3,5,7,8...
[4 replies] Last: thank you benbalach (by johny777)
add int to string
 
Hi.I have to write a class with string and static int member,and to add int to string in the default constructor,so int to be an identifier(for class Bird- Bird...
[2 replies] Last: Š¢hanks.Now it is OK. (by fitipaldi)
by combzy
Quick problem with password program
 
I am having one little problem with my password program. At the end it tells you how many valid and invalid passwords you wrote. For some reason the invalid pas...
[2 replies] Last: Your increasing the invalid variable on line 81 without first initial... (by Codermik)
C++ I need help with Arrays/files, please
 
my problem is i cant read the names from a file and into an array the txt file is formatted like this,,o and i cant use 2d arrays name place(exp 1st 2nd 3r...
[1 reply] : getline() reads a whole line, including the position and score. Positi... (by keskiverto)
by heston
name swap in array
 
If I have a name in an array. (i.e. John Doe), how can I get it too take "Jim Smith" and have it return "Smith, Jim."
[3 replies] Last: You can use the substr function: see http://www.cplusplus.com/referenc... (by TwilightSpectre)
by jb1200
basic function question
 
Note that not every function has to have parameters. . Using this information, write a function called ask that asks the user for a number between 1 and 10 (inc...
[3 replies] Last: The position of things cause that. cout << "Please enter a number,... (by closed account iAk3T05o)
by baljit
Help with Paralillelogram
 
Parallelogram is suppose to be between 3 and 23 lines forced to enter a value between 3 and 23. I suppose to use only 3 loops. i have used more than that and ...
[no replies]
Rock Paper Scissors code-Homework Help
 
Write your question here. I need help with homework from my C++ programing class, in my class we are assigned to create a rock paper scissors program. These ar...
[3 replies] Last: i also need help on completion of the code's final part exactly what c... (by CelestialX)
Factors Code
 
Hi! I was working on a project for my class and got stuck after writing the first loop. I wasn't quite sure how to continue with this code. I have no idea how t...
[no replies]
need help with array, reverse string, and switch please help.
 
please help, my hw is due tomorrow and i'm somewhat of a noob in my c++ class which is due tomorrow. I'm understand the language somewhat but i'm having trouble...
[no replies]
Read and write
 
So I am self learning read/write in c I visited http://www.cplusplus.com/reference/cstdio/fread/ I am trying to prompt the user to type something like "my na...
[5 replies] Last: I meant the name you gave your variable. Try using: long Size1; ... (by Daleth)
by rubito
Help with segmentation fault
 
I'm writing a binary search tree program and I got it to compile but as soon as I input something it returns a "segmentation fault error" I suspect the issu...
[15 replies] Last: You guys are awesome! With your help I'm now free of errors! Thanks a ... (by rubito)
Aggregation Issues
 
I'm writing a program that uses two classes. One class RoomDimentions uses the other class FeetInches as a member variable. I wrote the class FeetInches ...
[no replies]
Need Assistance; cannot find the error in my code; R/P/S game.
 
Need help, I keep getting errors in my char computeWinner function, and I do not understand what the compiler means by "invalid conversion from 'const char*' to...
[5 replies] Last: Yes. The second benefit is that you'll have a readable list of availab... (by Daleth)
March 2014 Pages: 1... 1819202122... 79
  Archived months: [feb2014] [apr2014]

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