General C++ Programming - August 2012 (Page 14)

file reader map generator
 
So my friend and I are making an action adventure game, and most things are working smoothly. The one thing that is hindering progress is our map loader howeve...
[1 reply] : Loading surfaces from file is slow so don't do it each frame. Instead,... (by Peter87)
fread seg fault
 
Hello! I'm getting a "Segmentation fault (core dumped)" error message with a program I'm working on. Please help me figure out what is wrong. The fault occu...
[3 replies] Last: Aha! I found the problem. It's with PERSON's string name. I changed it... (by wulfsdad)
casting part of a struct
 
Question: Is it safe to cast only part of a structure as an array if your guaranteed that another programmer isn't going to change the order of objects in the s...
[10 replies] Last: Why not go the object oriented path and create a normalize member func... (by closed account o1vk4iN6)
array as key value
 
Hello , is it possible to have an array as a key value? In a map, or a set of pairs. The 2 possibilities are good for me. I made this : #include <strin...
[9 replies] Last: If you compile with -std=c++0x it will work! (by viliml)
by rk0093
HELP!!!
 
a
[1 reply] : First off, read this: http://cplusplus.com/forum/beginner/1/ Second ... (by cnoeval)
SFML 1.6 vs 2.0
 
Hey All, I have wanted to start using SFML, but I don't know which version to use.My friend says to use 1.6, however, people I have spoken to recommend 2.0, but...
[6 replies] Last: Why does everyone need a tutorial to learn something? There's document... (by ResidentBiscuit)
sdl night?
 
is it possible to change the color tones using sdl? light to make dynamic light from torches, night/daytime etc.? or would i need to do that with some other lib...
[3 replies] Last: never mind i figured it out, thanks for the help :D (by even821)
by Owain
Is it worth me learning OpenGL?
 
Hello. I want to create a 3D game and I cant decide which path to take. I could learn OpenGl, write a 3D engine and then start my game programming but people ha...
[3 replies] Last: Try Panda 3D, it's VERY easy to learn and will give you an understandi... (by Windwhistles)
Yet Another SFML Thread
 
I have just realized that i unpacked SFML wrong in my Codeblocks directories, i am using an external MingW compiler, and I ahve got SFML 1.6. Please help. You c...
[5 replies] Last: This page is old but should help http://www.sfml-dev.org/tutorials/1.6... (by naraku9333)
Determine a numeric string's locale
 
Hey guys, This one may not be possible but I'm gonna ask anyway just in case some of you have done it before. I have a function that takes a string argument ...
[no replies]
Having Class Probs
 
a
[3 replies] Last: Make sure you declare the function with a return value of string in th... (by BlackSheep)
by dorien
error: function does not take 2 arguments
 
Hi, I found this code online and I'm trying to make it work, but I still have 1 error left. This is the part that gives the error: pos = DFS(pos, NewPosit...
[11 replies] Last: Well now it is clear what is the problem. In fact you declared two fu... (by vlad from moscow)
by kubain
Remove fisheye effect?
 
Hi guys, actualy i create a tool for an industrial camera, but today i got the problem that sometimes the createt image has an fisheye effect. The problem is i...
[no replies]
#define / ostream problem
 
Hi, I have this #define : #define TRACE_IT(AA) TRACE(__FILE__ , __FUNCTION__, __LINE__, AA) With is use in several functions like this : TRACE_IT ("som...
[2 replies] Last: I don't think you can do that. You may be able to do: TRACE_IT << "s... (by kbw)
use pointer to access an element in a vector
 
Maybe it's a stupid question, I have a vector store quite a few objects. If I just wanna use a pointer to access one of the element, can I assign the address...
[5 replies] Last: > thanks, i think reserve() is a solution for this problem. Only if i... (by JLBorges)
by WillT
Form values into a function
 
Hi, I've got a function which simply has the following code: MT4_EXPFUNC void __stdcall test(void) { Application::EnableVisualStyles(); Applicatio...
[no replies]
Help with recursive functions
 
Hello every body, I was trying to make a function that will print all directories and subdirectories contained in them but i failed. I need help on how to call...
[3 replies] Last: Woooow, i hv found the answer, after breaking my head for a long time.... (by innobern)
HttpSendRequestA (1,2)
 
.
[20 replies] Last: the php is right as it works from another program that im trying to co... (by poohpooh)
variables, that you can use in dif. classes
 
hello, I would like to create a lot of variables, that you can use in different classes. If you create the classes inside your main, then you just have to wri...
[9 replies] Last: struct StringData { //Data }; class Manager { public: Manager(){} c... (by BlackSheep)
shortening code
 
so i made this simple tictactoe game and it runs nicely but i feel like the code is too long especially the part for checking a straight line,, please give advi...
[4 replies] Last: thx !! great help (by blindfreak)
August 2012 Pages: 1... 1213141516... 31
  Archived months: [jul2012] [sep2012]

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