General C++ Programming - March 2014 (Page 4)

libc++ std::list implementation mistake?
 
Considering: http://llvm.org/svn/llvm-project/libcxx/branches/release_34/include/list _LIBCPP_INLINE_VISIBILITY pointer operator->() const ...
[2 replies] Last: > Why doesn't the second overload return const_pointer? std::list<T,... (by JLBorges)
by Ceset
Component based Entity System
 
Hi everyone. Lastly i have been reading articles about component based entity system checking what other people have already done and experienced. While the m...
[5 replies] Last: Well, thanks for the answer @kbw. It seems even a three hours research... (by Ceset)
Passing variables into a function
 
ok I have a class Player with lots of variables and im gonna call a function to checkXp, if I call it with the whole player object does it use a lot more memory...
[1 reply] : [quote=morngrym]question 1: does passing the whole object use more mem... (by Peter87)
by NDSE
Transition from Orwell Dev-C++ to Visual Studio 2013
 
So essentially I decided to switch IDEs from Orwell Dev-C++ to the express version of Visual Studio 2013. Well, my code that was running just fine compiled in D...
[1 reply] : Run it in the debugger and let it crash, then look back at the call st... (by kbw)
How to show off ur c++ programs
 
Is there a way to put the C++ programs I made through visual studios on my portfolio or show it off somewhere
[1 reply] : You could make a Github account or the like and put it on there, its a... (by TwilightSpectre)
Character Pointer And Character Array Problem
 
Can Somebody explain why this code #include<stdio.h> int main(){ char *p="hello"; (*p)++; printf("%s",p); return 0; } crashes ...
[1 reply] : The difference is that in the first one, p is a pointer to a constant ... (by kbw)
My first game! Tic-tac-toe!
 
Hello! I am new to these forums, and I want to show you my first game - tic tac toe. I think my code is a bit complicated, it could be done easier. and could y...
[5 replies] Last: Haven't tested it; but I have an observation: The function void game... (by JLBorges)
question
 
please convet Algoritm to C++ code //---------------------------------------------------------------// int O(int k,int j) { if (j==0) return 0; else if...
[1 reply] : Where exactly is the question? Also please don't cross-post the same ... (by giblit)
how to simulate file space allocation with c++
 
i want to write a c++ code that due the structure of file space allocation,Simulates file system with 2*n array.Each column represents a sector,The first row is...
[1 reply] : See: http://www.tavi.co.uk/phobos/fat.html (by JLBorges)
Problem with conversion of an (int) as a type to (string)
 
Hello, I was asked to write a program which converted binary to decimals with the header int bin2Dec(const str& binaryString) but instead I created the p...
[2 replies] Last: #include <iostream> #include <string> // invariant: binary_string co... (by JLBorges)
by fabex
ARRAY
 
i really need help on this. i want to write a c++ program to sum up tow dimensional array and store their output in another array. i real need it in the simplex...
[1 reply] : i really need help on this. i want to write a c++ program Well, what ... (by giblit)
by a k n
How does this normal() function works ?
 
The following function finds the normal to a terrain represented by a texture. I found it somewhere online , it works but i couldn't understand the math behind ...
[6 replies] Last: Vector2 just holds two numbers x and y with suitable operator overload... (by a k n)
by CRooky
I need help coding the Input Function..any takers??
 
the code looks like this: // prototype int enterGrade(); // prompts user to enter grade 0-100 const int NUMBER_GRADES = 5; int grade; int tot...
[7 replies] Last: #include <iostream> #include <limits> int enterGrade() { using s... (by cire)
DirectX or OpenGL
 
Hi, I made few simple game using c# in Unity3d but I want to dig more in to game programming. And I'm not here to make my own engine, I want to make a game with...
[4 replies] Last: I'll just give you a brief description of each one, and then give you ... (by TwilightSpectre)
Getting Abort() has been called error:
 
I am trying to run below provided code to find the difference between 2 dates and getting error: Abort() has been called. Can someone please help me to fix this...
[no replies]
quick yes or no question i hope
 
I have a class armor, weapon, and Item and in my code for checking the items I want to equip is Armor or weapon I have a call to Armor* ar = dynamic_cast<Armor...
[4 replies] Last: well at first I thought it was a new object, so I wanted to delete it ... (by morngrym)
Looking for the rest of this tutorial.
 
Hey everyone I'm taking a data structures class and am struggling with some of the topics. I've come across this resource: "http://www.baumann.info/public/cpp_l...
[no replies]
Auto-write words in a form
 
Hello, I'm trying to code a program in Dev-C++ for auto complete text in a web form. I'm using windows.h and mouse_event() function for move cursor positio...
[2 replies] Last: giblit: Thanks, but my code dosn't work :( I'm trying to move the mou... (by tranthor)
numbers after the floating point
 
if we have a decimal number like c=3.46 And i want to set two number, a and b now a= static_type<int>(c); so a=3; and i want b= 46 which is the two nu...
[7 replies] Last: got the logic thanks (by Bleedz129)
using random in class to make a loop
 
ask user set a direction or use default value (0,0,'n'). them make it move 100 times randomly. I am now confuse on the loop inside my class. I don't know whe...
[no replies]
March 2014 Pages: 123456... 36
  Archived months: [feb2014] [apr2014]

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