General C++ Programming - March 2011 (Page 25)

OpenGL 3.X book or tutorial?
 
Hi guys, I've been trying to get into OpenGL recently after "finishing" SDL. So at first I tried out the SuperBible, but what I absolutely hate about that thin...
[4 replies] Last: I like Swiftless tutorials: http://www.swiftless.com/opengltuts.html (by codist)
C++ Run Time Problem
 
Hi everyone, My application compiles perfectly fine. I am using NetBeans IDE 6.8 and MinGW. My application has been working until using a different set of ...
[3 replies] Last: Hmm, what confuses me is how this has worked for months with a smaller... (by readysetgo)
by codist
networking library
 
Is there a fast networking library that I can use to create a multiplayer game and sell it without having to get a license for the library?
[7 replies] Last: Thanks. (by codist)
glut, classes, game (serious shit, check it out)
 
Hi, I've created class "Game" and I use GLUT. GLUT's function: glutDisplayFunc() takes a pointer to a rendering function. I need to declare this function s...
[6 replies] Last: http://www.parashift.com/c++-faq-lite/pointers-to-members.html#faq-33.... (by ne555)
by fafner
Very strange compiler error
 
I'm sorry, but I have no idea what to even write as topic-title for this. I have a class World with a function display_pixel, defined: void display_pixel...
[1 reply] : Did you declare display_pixel const? If yes, then that's probably what... (by Opossum)
how to return to the begining of switch statement
 
I just wrote some code about the switch statement. bool exit; while(!exit){ int selection; cin>>selection; switch(selection){ case 1: cout<<"1...
[3 replies] Last: Use a loop as you did before Again, use [co de][/co de] tags... (by Bazzy)
Carrying Variables?
 
Hi first time posting on this site so I hope it works out :). While coding a game I had to use a few if statements to determine a number. The game is "Nim" (...
[4 replies] Last: Thank you very much sir. I do appreciate the help! it worked :). now I... (by jsquared)
by venot
how to generate reverse number ?
 
reverse number in digits ?
[8 replies] Last: //debug6-2 // user enters price // program computes tax rate // 5% at... (by venot)
pthread: return vs pthread_exit()
 
If the routine of a pthread were to return a pointer to a string (return acts as pthread_exit()) where on earth could that pointer be accessed in the parent thr...
[2 replies] Last: pthread_join( pthread_t child, void** ); Call this function to obta... (by jsmith)
How to pass a function ptr with an arg of a specified type OR inheritors of it?
 
Hello, I'm facing some issue with the following idea : I try to use a generic function to register function pointers with a defined type of argument OR ANY in...
[7 replies] Last: void (Shape::*fn)() declares fn to be a pointer to member function... (by jsmith)
I need a function for my text game please!
 
Hey everyone. I have made 2 different games so for and am currently working on my third one. What I want to do is be able for the user to type is something such...
[3 replies] Last: It's a good way but if you want to create a profile for every person w... (by majidkamali1370)
Listing files in directory
 
Hi .. Can anyone tell me any built it function which lists files in directory .... Thanks in advance Prakash
[3 replies] Last: Thanks alot Kbw and computerquip for your valuable input.... :) (by Prakasha)
by nono
Getting eclipse to run x86 assembly and c
 
I already have my eclipse set up to run C, and I've already successfully coded in C. However, I can't seem to get my current program to build. It contains a .c ...
[1 reply] : Ehm, we can't help if we don't know what's wrong. :) Is there some ... (by thokra)
Reading Binary File
 
Hi, Im trying to read a binary file stored in a DSP“s memory through serial port. The idea is that the DSP puts the data it reads in its console so i can re...
[no replies]
Link List
 
Hi , My Application is crashing , i am not able to see why. class CLinkList { private: struct Node { char name ; int age ; float height; ...
[2 replies] Last: Thanks ..it solved my problem . (by bluecoder)
by avnis
could you please give a basic structure or hints, i need it asap :(
 
write a program that will read files of numbers into a vector, compute statistics relating to these numbers and distribute a vector of numbers into two vectors ...
[2 replies] Last: i am sorry i wasn't really intending to do that this is my first time ... (by avnis)
by zr870
C++ Triangle Solving Program
 
I am trying to write a program that finds the missing parts of a triangle. It doesn't work with all of the triangles I've tried and can't figure it out. Tha...
[3 replies] Last: Your system calls make this program run only on dos/windows, and they ... (by hanst99)
Check if ID exists in file
 
Hi guys, I'm writing code for an appointment planner which is saved in a .dat file which saves each appt as follows. 15; John Brook; 25; 2; 2011; 11; 50; Ho...
[2 replies] Last: /* The previous solution I sent you uses a binary search to find the ... (by mikeofthenight)
Divisors problem
 
So I am a bit confused about how to find the prime divisors of a given number. I figured I could start with 2 and go all the way up to sqrt(number).But now her...
[4 replies] Last: Ok, I get it,thx for the help. (by catawar2)
working with pthreads and *void type
 
Hi all, when using pthread_create I wish to pass a list to the routine function, and then in the routine (i.e. the new thread) use that very same list, but I...
[1 reply] : Pass the tree in to the thread, let the thread populate it then use it... (by kbw)
March 2011 Pages: 1... 2324252627... 31
  Archived months: [feb2011] [apr2011]

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