Beginners - February 2012 (Page 7)

MAKING A triangle LINE
i dont how to make a diagonal line using FOR LOOP.. were just using <stdio.h>, <conio.h>, <dos.h>.. please help me :( because out professor didnt teach us how...
Feb 27, 2012 at 8:21am
[2 replies] Last: @whitenite1 thank you for help.. it helped me alot.. but i was a lit... (by swellrock)
Gravity. How??
Ok so I was reminiscing on my times of my high school programming class. This classed darkBASIC to create some simple 3D games rather easily. Anyway, I could ne...
Feb 27, 2012 at 7:42am
[13 replies] Last: Oh yeah, it's taking me a while to make a program the calculates volum... (by roberts)
help new to c++
First my problem is that its not coming out right its coming out .169 but its suppose to be like 5.9 also here are the inputs you have to put in Hours = 1 minu...
Feb 27, 2012 at 5:14am
[1 reply] : Doing dimensional analysis on your equation for TotalMiles... You have... (by Zhuge)
can you guys help me out. must be a logic error
My algorithm is working and it compiles correctly but for some reason i get NaN for the value of Xstd which is standard deviation heres my code: //-| ---...
Feb 27, 2012 at 5:04am
[2 replies] Last: i figured it was the formula, but that is the one our professor issued... (by byronflds)
by xKeb
Possible Rounding Issues
I should be getting these results from my program. I'm not. I'm thinking I'm having rounding issues. The Italicized portion is the output, the normal font is th...
Feb 27, 2012 at 4:15am
[3 replies] Last: Thanks! (by xKeb)
by Lio
Function pointer
Hi could you show me how to compare x with the return from the int (*poly)( int a) Thanks int evaluate( int x, int (*poly)( int a) )
Feb 27, 2012 at 4:13am
[6 replies] Last: poly expects 1 argument. You are passing 'a', that is never defined. M... (by ne555)
by alasqa
Need help with text_based_rpg
Hi I'm fairly new to C++ and I am trying to write a text based RPG. I am having a few difficulties trying to add weapons to the game. I want to be able to have ...
Feb 27, 2012 at 3:43am
[no replies]
biggest number handled by c++ ? (1,2)
Problem number 8 on Project Euler: Find the greatest product of five consecutive digits in the 1000-digit number. 731671765313306249192251196744265747423553...
Feb 27, 2012 at 3:41am
[23 replies] Last: It is worse than just obfuscation; code that makes such assumptions is... (by JLBorges)
problem with prime numbers
Hi, I'm working on a program to output the number of prime numbers in the first 50,000 numbers, in increments of 1000. Does anyone know what is wrong with th...
Feb 27, 2012 at 3:13am
[2 replies] Last: Oh! Yeah, now it works. Thanks so much! (by gregarian)
calculate pi
Hey guys, my professor wants me to write a program that calculates pi to about 15 digits, and i am just stumped. He wants us to use the formula pi=4arctan(1/5)...
Feb 27, 2012 at 3:05am
[6 replies] Last: thanks guys, this is kind of helpful. I'm still a little confused, you... (by btfrenchy)
Will this code work?
It is my first time testing out files, and I have already had one BSOD due to really bad coding, could you please tell me if this is going to work. I just have ...
Feb 27, 2012 at 2:02am
[2 replies] Last: It does compile without any warnings and i have -Wall, but so did the ... (by Asif Hirai)
by Jhuyt
Code::Blocks Undefined reference error
Hi everybody I've been getting a very strange error when I use codeblocks, the "undefined reference error. Now if I was using a library which I hade to link ...
Feb 27, 2012 at 1:56am
[11 replies] Last: On the workspace pane, on the left-hand side, locate your project. Rig... (by closed account zb0S216C)
string.h included, string still undefined
Working on a project for school, need to use a couple string variables in the project but cannot get them recognized. I have #include <string.h> and also tried ...
Feb 27, 2012 at 1:53am
[4 replies] Last: That did the trick, thank you. (by platatomi)
help desperate
#include <iostream> #include <iomanip> #include <string> #include <stdio.h> #include <string.h> using namespace std; void printWordLengths(char inp...
Feb 27, 2012 at 1:41am
[1 reply] : It compiles fine with me. Rebuild/clean your project. Edit: Your lin... (by closed account zb0S216C)
How to make sa simple Game using only 1 C++ File ? T^T
i've been wanting to create a game using c++ and is unable to, can anyone help me how to make one by only using one cpp file?
Feb 27, 2012 at 1:39am
[2 replies] Last: That's going to be one hell of a big cpp file. (by Athar)
by moot1
calculator
what can i add to this program to make it better #include <iostream> #include <cstdlib> using namespace std; int main() { int Total = 0; int Amount; ...
Feb 27, 2012 at 12:54am
[9 replies] Last: Lol well now you have a void function, with a return -_- http://www.c... (by ResidentBiscuit)
Need help finishing this assignment
Assignment title: Question 1: Game of Life assignment details: Conway's Game of Life For this assignment your are to write a program, that pl...
Feb 26, 2012 at 11:36pm
[no replies]
by rfrapp
The Game of Life Help
I need help with the game of life. It seems that I am not calculating then number of neighbors correctly. I'm not sure how to fix this. Here's my code: // ...
Feb 26, 2012 at 11:34pm
[1 reply] : nCount should probably be an array, so you can store neighbours count ... (by Berzeger)
Calculating Inverse of a Function
Hello, I am trying to calculate the inverse of a matrix using C++. I used to have the functions in the actual code, but that was creating infinite loops by red...
Feb 26, 2012 at 10:48pm
[no replies]
Multiply function not working
I am trying to take 2 numbers that have been input into 2 arrays, and place their product into a third array. My multiply function is way off. It is only multi...
Feb 26, 2012 at 9:59pm
[no replies]
February 2012 Pages: 1... 56789... 64
  Archived months: [jan2012] [mar2012]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.