General C++ Programming - June 2014 (Page 8)

Help moving to new map
 
Hello this is my first basic game I created and I need some help going from one map to the next. I can get to the next map, however when I get there my characte...
[no replies]
Passing 2D array to 1D array.
 
I'm working on a problem that asks to write a 2D array, and remove 0's from it and output it as a 1 dimensional array. I have no issues populating the 2D array,...
[1 reply] : here is some pseudo code that mgiht help: var someList{{0,1,2,3,4,5}... (by Little Bobby Tables)
GLUT fullscreen issues
 
i am very new to opengl/glut, and am having trouble going full screen. whenever i run the code it screws up my screen, but it compiles fine. here is my code: #...
[no replies]
working away from visual
 
Alright i had a question about the Microsoft visual studio, i just finished a game the program and when i tried to play it on another computer it wouldn't play ...
[4 replies] Last: Note that if you follow Disch's last suggestion you may have to change... (by helios)
header problem(most likely)
 
Hi, I cant find the error in my code even though i believe it to be a header problem.The bold underlined part of the code is what i believe to be causing the pr...
[2 replies] Last: Thanks Duoas I was so sure that it had to be a header problem that i f... (by sabatiel)
Constructing a text adventure
 
Okay! so here i am working with a new text adventure. The way i want to construct it is by having a class for all living things. in the class you have basic th...
[2 replies] Last: Thankyou :) I'll keep working on it! Yeah using a vector instead of ma... (by j0nte33)
by bakus
_di_IXMLDocument and stylesheet adding
 
Hello, I'm creating a XML document using _di_IXMLDocument type (with BCB6.0). Additional there is a xslt file. I want to add xml-stylesheet attributes in main d...
[no replies]
Library for STEP or STL files
 
Does anyone know of a good open source c++ library for importing and exporting STEP or STL files? I could write an STL file loader/save, but I would rather not ...
[2 replies] Last: No, I am referring to the 3D model / standard CAD file formats. Thank ... (by games4thefuture)
by NDSE
Including .png Files When Compiled
 
Hello all, I am currently coding a 2D game in Visual Studio 2013. All of the .png graphics are saved in an absolute directory (for example, "C:/gfx/example.p...
[9 replies] Last: (Someone) can access the files no matter how you store them. The idea... (by Duthomhas)
by hiok
Detecing any key of keyboard and mouse on Windows + Linux
 
I am trying to detect keys pressed on a keyboard and mouse on both, Windows and Linux but I am unsure what would be the best practice way to do so. Will I have ...
[1 reply] : For Linux you can look at how SDL handles it. HINT: It goes through Xl... (by NoXzema)
by hero7k
home work
 
this is my assignment, and below is what i've done so far. Any help is appreciated I know I don't have much but if someone could explain how to do it I would ...
[9 replies] Last: [quote=mike7k]okay i have this now but what I don't get is how to firs... (by Catfish666)
glClear Question
 
Hi Everyone, When I run my OpenGL Game, I can hear my graphics card Running like crazy. It's because every loop: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFE...
[2 replies] Last: Ohhh lol ok... I'll try it out Thanks! :) (by Cydriic)
Help
 
I seem to have problems with this code and I would be very grateful If someone fixed it :) #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <i...
[6 replies] Last: ok... but thats not what was asked for (by Little Bobby Tables)
Vector of Pairs of References?
 
I am attempting to combine two vectors into a vector of pairs. I want to be able to alter the first and second of each pair and have those alterations refle...
[3 replies] Last: Thanks, You 2. That did it. :-) For the record, I have consistently fo... (by xuinkrbin)
by kimi86
string concat
 
I need to write a program in cpp using operator overloading which can do this for me 'cat' + 'rain' -> will give 'craarin' (it will merge the letters one aft...
[5 replies] Last: operator+ should not modify the object it is invoked on. class MyCla... (by cire)
kismacska1
 
#include <stdio.h> #include <stdlib.h> #include <string.h> void bban_gen(char*bban) { char bankcode ; char prefix ; char number ; scanf...
[1 reply] : You haven't said what the problem is, so I would normally ignore these... (by kbw)
by tcb
***please help***Counting Vowels in a string
 
So I'm supposed to create a program that will read off words from a .txt file,and use a function to count the number of vowels in each word and then display the...
[3 replies] Last: How do I get the counters (freqa, freqe, etc.) to reset to 0 before e... (by MiiNiPaa)
How do YOU deal with a failed input stream?
 
Hey guys, Just a quick question. How do you, personally, deal with a failed input stream and type checking input? I use: cout << "\n\nEnter a menu option: "...
[9 replies] Last: Why did you do two try...catch statements there? Because ignore may ... (by cire)
by BasV
forward declaring typedefs
 
Hi everyone, I'm using some rather large external libraries, and I want to load them in my .cpp file only. so, my header looks like this: namespace {...
[13 replies] Last: That sounds nice, but I think I'll settle with what I've got. I'm just... (by BasV)
Reducing Executable Size
 
Hi all I am looking at reducing the size of a compiled executable for easier distribution. What factors affect the size of an output executable? Would ...
[2 replies] Last: Meaning that instead of have a DLL ( yes im on windows ), I would dow... (by MikeyBoy)
June 2014 Pages: 1... 678910... 21
  Archived months: [may2014] [jul2014]

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