General C++ Programming - July 2011 (Page 12)

OpenGL
 
I recently have been trying to figure out how to get OpenGL working on Dev-C++. I downloaded the glut3.7.6 dev pack and got that working on Dev-C++ (I think). ...
[5 replies] Last: Glad you got it to work; though I wouldn't use GLut myself. Anyway ch... (by Catfish)
IF statement problem
 
#include <iostream.h> #include <conio.h> main() { int airline, destination, category; cout <<"Please choose your preferred airline. "; cout <<"\n1...
[4 replies] Last: Ahh i see the whole pic now, literally. Anyway, thx to everyone, espec... (by cplusx2)
by Louis
parameter pack in a template class
 
Hello and sorry for my probably bad english, I'm working on a pacman-like game, in C++0x ( because I want variadic templates ) , and I'm trying to make a templ...
[2 replies] Last: Thank you PanGalactic, the following code compiles : timer.hpp #i... (by Louis)
How to generate a random number
 
using Probability Distribution? My assignment deals with CPU-Scheduling and for some purposes I am supposed to come up with a random number between 0 and 40 usi...
[3 replies] Last: Before you plan to create your own random number generator, maybe take... (by onur)
by jarric
masters? please help me about student information
 
this is the output: Ex. enter no. of students:3 //unlimited number of students but i exampled 3 only enter student name:ben //if i input 3, na...
[11 replies] Last: hahaha its ok thank u :) add me in face book Vhon Creencia ill ask hel... (by jarric)
How to parse a series of concatenated digits into one number?
 
This is the partial code of a project I'm building: int fourkey = console.getkeypress(); switch(fourkey){...
[1 reply] : You mean 1000*onekey+100*secondkey+10*thirdkey+fourkey ? By the way... (by hamsterman)
by gizzmo
passing parameter to a template
 
How can I pass a parameter (a phrase) to a template class? I want my class to behave differently if I specify MyObject<runPartA> obj and MyObject<runPartB...
[9 replies] Last: Yes, now I see that this wasn't such a good idea. Adding two separate ... (by gizzmo)
Keep program fullscreen
 
I have a program running full screen and it has to call an external .exe file. The problem I'm running into is that I want the first program to stay full scree...
[1 reply] : If this is Windows, you can spawn the required console application usi... (by webJose)
problem using gotoxy() in code::blocks ide, gnu c++ compiler
 
hi guys.. i have got a problem. I am using code::block IDE (on ubuntu) and gnu C++ compiler. It does not recognise "windows.h". I need to use gotoxy() which i...
[4 replies] Last: Rather, you add "ncurses" to "link libraries". (by Athar)
Restoring files to original state
 
I have a problem. I'm working on a game comparable to Final Fantasy. On my maps, there will be "objects" (literally objects, as in pick-up-able items) that get ...
[8 replies] Last: I suppose it could be... I think I see what your getting at ;) Load a... (by ModShop)
How to separate GUI from the process?
 
Guys, I have a philosophical question: I am programming an application with GUI which one of these is the best option: 1. include the interface and the proce...
[2 replies] Last: Thank you very much for your good answer. (by soheilghafurian)
by Justin
I want to make a 2d tile game.
 
I have a more than basic understanding of C++ 2010 but i cant find any one willing to help me make a 2d tile game (simaler to http://www.youtube.com/watch?v=3Oq...
[1 reply] : That's fairly easy. First, you have to get familiar with SFML and work... (by Athar)
by ouch
using function pointers inside classes...
 
So yeah, anyone know how to do this properly? the code would look like: class outer{ function_that_calls_another_function(&testfunc); } testfu...
[14 replies] Last: any more ideas on how I might get around this or is it the only way? ... (by ouch)
How to make the user input start from right to left?
 
I'm currently building a calculator and using cin to get the user input. But I don't know how to align what the user types into the console. Just like a Windo...
[3 replies] Last: Thanks Duoas. I don't know if it is too much to ask but could you plea... (by pregunton1)
logical operations for const char *
 
I have a simple question! why is this not true? (d == "cplusplus") when const char *d = "cplusplus"; how should I do the comparison then?
[8 replies] Last: Well that does mean that compiler needs to save the string and compare... (by ashishkumar)
Generic sorting of multidimensional objects
 
Hi, I have a class that contains four data members, i.e., class ClassA { ... private: int property1; int property2; int property3; ...
[4 replies] Last: Sure. Thanks a lot! Chris (by chris34525)
by fsshl
why it can not print whole sentence by fputs,fseek,fgets
 
Dear Advanced c/g++ programers: I copied and tested a piece simple (Creating a temporary file) on my g++4.5.2 on ubuntu10.04(linuxKernel 2.6.35-25) -----...
[1 reply] : That is because you are skipping the first five bytes of the file when... (by kooth)
by Troy
Creating my own programming language (1,2)
 
How would I go about creating a programming language? Like, creating a compiler for it and what not. I don't know where to start with it. I know it's going to t...
[36 replies] Last: PHP was not carefully designed. It has many inconsistencies and mixe... (by rapidcoder)
How to use LargeInt library in VS 2010
 
Hey I am converting a project from VS 2003 TO VS 2010 amd am having a problem with using the LargeInt lbrary. In VS 2003, I have it declared as <LargeInt.h> but...
[5 replies] Last: Refer to links below: http://social.msdn.microsoft.com/forums/en-US/... (by diedrexler)
by DouDou
Parallel Processing Help
 
Hello, I am wondering if it is possible to break up one big loop into a number of smaller loops (depending on the number of cores in the system) and have eac...
[7 replies] Last: Thanks very much for your reply. I will give it a shot and let you kno... (by DouDou)
July 2011 Pages: 1... 1011121314... 30
  Archived months: [jun2011] [aug2011]

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