General C++ Programming (Page 40)

How do i write this equation for C++?
BMI = 703*weight / height^2 how i thought to write it was: (703 * getWeight / pow(getWeig...
[3 replies] Last: Ok, that acually works now, I had it actually written as above with ge... (by banithel)
by BMet
Stuck with this code
Write a program that calculates the total grade for N classroom exercises as a percentage. The user...
[4 replies] Last: Oh, I already got it working. Thanks for your comment tho, it really h... (by BMet)
Working with a char array
I am working with a character array containing an equal number of vowels and consonants organized ra...
[5 replies] Last: I had some time to play with this one today, thought I would share. T... (by Lowest0ne)
Angular Movement
i'm making a spaceship game. will be a shooter game. but i need to make the ship move as the ang...
[1 reply] : cos/sin take the angle in radians, not degrees. (by Disch)
Calculating the Area and Perimeter
Hello everyone. I am having trouble with my C++ program. My program asks the user to enter any numbe...
[4 replies] Last: I know they are different variables, that is why I declared them in ea... (by suko123)
Function Parameter Scope Issue
My errors are at the end of the program in two function calls within the definition of the InsertByV...
[1 reply] : There is no variable called NumArray in your InsertByValue() function,... (by Zhuge)
AVL-tree calculate height difference
I looking for method which can give me the height difference of an AVL_tree. The method i come up w...
[4 replies] Last: Take a look at the way I did it here: (by Smac89)
Binary and DataType
Here are the binary values for the address in memory for an integer and a double.. Can you tell what...
[6 replies] Last: > But anyway, yes, a double can sometimes exist at any memory position... (by JLBorges)
Nothing showing OpenGL 3.3
To be honest I'm a total noob at the newer OpenGL versions... after finally convincing myself that I...
[3 replies] Last: I fixed that, and it still doesn't do anything. My code now: void C... (by Avilius)
by dkaip
wchar_t and reading unicode strings
Hello. With this code by helios(thank you) all in UTF8 are ok. But now i must use ranges from U+10...
[14 replies] Last: wstring giveWStringFromASCII(size_t i) { return StringToWString(Unico... (by helios)
Good Direct2D tutorial out there?
So, after the past week or so I have been searching for a good 2D game programming book / tutorial i...
[13 replies] Last: I would imagine. In OpenGL you do it by setting the transformation mat... (by helios)
How to add spaces to this output?
I want to separate this binary string every 4 characters..I am trying to get a better understanding ...
[2 replies] Last: #include <iostream> #include <bitset> #include <cstdint> #include <li... (by JLBorges)
Going crazy behind OpenGL (1,2)
I'm trying to solve a run-time error since a lot of time (around three or four months?) The crash p...
[21 replies] Last: If you're asking for my code, it's way too much to be posted easily an... (by EssGeEich)
by RRW
Opinions on simple Gaming Project
Hey everybody . I have a computer science project due in about two months. I want to do a simp...
[2 replies] Last: Ok thanks miinipaa ...i appreciate your help (by RRW)
BigInteger Class
This is my code so far. I was wondering if anyone would offer any advice on what I have or what I sh...
[4 replies] Last: [quote=MiiNiPaa]first of all 8 in your formula is technically wrong. U... (by a k n)
please help me it doesnt work , i dont know whats wrong
4. Write a program that reads positive integers until a –1 is entered. Once input terminates, the ...
[5 replies] Last: @cire thanks for info. sorry for not being good at expressing my er... (by deepestblue)
i need your help :(
hi we have this homework which involves an input of a username and password. i figured i should use ...
[1 reply] : You need to use strcmp() to compare strings. (by helios)
Programming Assignment - I dont understand what he wants me to do?
Design a computer programming experiment in C++ to determine what happens when a variable of type i...
[7 replies] Last: Im just a beginner, He wont let me turn all of this in like that. He p... (by Corey21Woods)
question about boost::multi_index_container
I used to use map to access elements. map has a good feature that it sort the element automatically....
[3 replies] Last: > re the elements sorted according to the first key, > then the eleme... (by JLBorges)
Birthday Program
Hello, I have an assignment in which i must create a program which prompts for user input of curren...
[1 reply] : In the class, you have the month as type int. Instead, try having it a... (by sherre02)
Pages: 1... 3839404142... 66
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.