General C++ Programming (Page 31)

c++ - where is the the c++ string include file?
 
i'm trying find the C++ string include file. but i only find the string.h file(it's a C strings). ca...
[11 replies] Last: Peter87: yes i know that... but i'm trying avoid that. MiiNiPaa: so i ... (by Cambalinho)
When to declare a member function as 'const'
 
I do not know the correct word for it - but I am trying to describe the unusual situation where you ...
[3 replies] Last: Many thanks chaps! Those examples do clear up a lot of my questions -... (by Gemman Aster)
Strange run time error
 
It's been quite sometime since I last coded in C++ perhaps half a year ago. Anyway, as far as I can...
[4 replies] Last: Oh yeah I misread what happened on line 6 Thank you for your guidance (by rmxhaha)
Please HELP!
 
So I need to write a program for my cse 100 class. I will provide all of the instructions, although ...
[1 reply] : Please do not double post. It clutters the forum and spreads attempts ... (by MiiNiPaa)
Variable not functioning properly
 
#include <iostream> using namespace std; int main() { int n, x, blanks, rows, irow, crow=1...
[1 reply] : In your code: cout<<a%10; //This outputs 1 in the end of 321. a == 1... (by MiiNiPaa)
beginning SFML
 
I was thinking of using SFML for creating games. One of my main purposes was to create a very simple...
[1 reply] : What are the drawbacks of SMFL Perhaps overly simplified? How woul... (by Stewbond)
Simple Program w/ Menu
 
So I was assigned a three-part program a few days ago and I am having problems with my output. The a...
[18 replies] Last: No I am referring to this snippet from the link I provided above. S... (by jlb)
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: http://www.cplusplus.com/forum/... (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)
Pages: 1... 2930313233... 57
  Archived months: [aug2014]

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