Beginners - June 2011 (Page 29)

declare range using if
 
I have a school project for a simple program that is supposed to give interest rates based on loan amounts, but the code has a problem. Plz someone help #inc...
[1 reply] : //You have: if (a<100000) ... if(a<200000) ... if(a<500000) ... (by Mathhead200)
by rrs274
How to calculate the value of pi accuratly using while loops
 
I need to calculate the value of pi accurately to six digits using the series pi=4-4/3+4/5-4/7+4/9-4/11... Honestly I have no idea how they want me to do with t...
[2 replies] Last: The series comes from the power series of Arctan(x) = x - x 3 /3 + x... (by Alrededor)
Tic Tac Toe
 
Hello, I am trying to make a tic tac toe game and i need some help. Here is the code i have so far: #include <iostream> using namespace std; int tabl...
[1 reply] : You can't just remove elements from an array like that. Why not have a... (by Zhuge)
by BooTs
Getting started with Game Development
 
About four years ago when I first got into computers, right away I wanted to get into Game Programming. About a year later I started to self teach myself C++ be...
[3 replies] Last: At the very least everything on this page http://www.cplusplus.com/doc... (by matsom)
by BFMV
C++ IDE/Compiler (1,2)
 
I am contemplating learning C++ soon and I was wondering if someone could recommend to me a good IDE/Compiler. I have tried Code::Blocks but it wont work and i ...
[23 replies] Last: I too prefer VC++2008, although I;ve never use any other compiler for ... (by LB)
Inheritance: Derived classes
 
I have defined the base class shape: #ifndef SHAPE_H #define SHAPE_H #include <iostream> using namespace std; class Shape{ public: double pe...
[2 replies] Last: Yes. It solves the problem. Thank you! (by ken1989)
Getting same numbers
 
Hello, I am writing a program to calculate the spindown frequencies of certain celestial objects. the variable a is their age. the variable p is their peri...
[6 replies] Last: Well, working it out by hand, the limit as 6E+9 / divisor tends to z... (by shacktar)
by sa499
Help!
 
Hi all, I'm taking my first CS course this summer, and I'm loving it. I'm having a bit of trouble understanding how and when to use cin.get(). I am trying to t...
[5 replies] Last: Yes, that is correct. Since char can only store a single character, ... (by closed account zb0S216C)
Just need a little help
 
I recently purchased the book "C++ a beginners guide second edition by herbert schildt" And the first example program is having some difficulties compiling u...
[12 replies] Last: Learning C++/CLI is like learning Spanglish. Sure, you can learn it, b... (by helios)
How to make a program create a new folder (1,2,3)
 
Hi , I would like to know how can i make my program create a new folder in the directory it is , so when i make the int cFolder: int cFolder = 0; cou...
[50 replies] Last: You are missing std:: in front of those. They are in the std namespace... (by firedraco)
Array search
 
I'm writing a program to average 10 grades and if the user enters "-1" in for any of the grades the program is supposed to know that the assignment hasn't been ...
[2 replies] Last: Thanks for the help on that. It took me way too long to try and puzzle... (by Ishvite)
"already defined on Main.obj"
 
I'm creating a text-based RPG, but I have been recieving this error: 1>------ Build started: Project: Medieval Life, Configuration: Debug Win32 ------ 1> Pl...
[4 replies] Last: Thanks kev, your answer helped me, now I fixed the problem. Thanks to ... (by deskoft)
Review: Average Rainfall
 
Hello, I am having problems writing this program. I will show you.. /*Write a program that calculates the average rainfall for three months. The program ...
[2 replies] Last: oh i see, thank you for your help (by illlojik)
by Prudok
Percents
 
Hello everybody ! This is a part of code : cout << "Updating "<< x <<"%" <<endl; I need that 1 adds to x each 0.1 second and shows through the "cout". How me ...
[3 replies] Last: It won't be an accurate loading time however, it'll just be made up ri... (by ascii)
strings >> array >> file
 
for(int u=0; u<5; u++) { Product.read((char*)&Array1 , sizeof (Commodity)); ...
[7 replies] Last: I imagine that Array1 is of type Commodity, meaning your are treating ... (by webJose)
VIEW
 
When i create the program below, it pops out then disappears, what should i do to view the program
[1 reply] : http://www.cplusplus.com/forum/beginner/1988/ http://www.codeblocks.or... (by Athar)
by zacaps
What causes Just-In-Time error?
 
Hello, I'm quite new in C++ and I'm having a problem with a "Random walk in a 2 dimensional lattice with traps". It doesn't appear to have any problems at the ...
[6 replies] Last: There are more mistakes, the first three being in lines 5-7. You shoul... (by Athar)
Some Doubts
 
Well I was going through the tutorial on this site, and I had a couple of doubts. 1) If I create an Multi Dimensional Array, say int Array how can I a...
[11 replies] Last: What final result? I was referring to the result given by my progra... (by Nisheeth)
Need help with sendinput func
 
Now I've been searching all over the internet to get a simple example of this function so that I can apply to my project rather than copying and pasting codes f...
[1 reply] : Look at this http://msdn.microsoft.com/en-us/library/ms646310 This ma... (by coder777)
Loop Won't Loop
 
OK, I'm still working on the tic tac toe problem. I'm close, but still no cigar. I've created a loop with the exit being the test to see if one of the players h...
[3 replies] Last: Or you can try using a for loop. Since there can't be over 9 turns in ... (by Nisheeth)
June 2011 Pages: 1... 2728293031... 41
  Archived months: [may2011] [jul2011]

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