General C++ Programming - December 2011

How do I load textures in OpenGL
 
Currently I have been trying to find a way to load textures in OpenGL, and I am having absolutely no luck. I am trying to add simple textures to a 2D platformer...
[no replies]
How do I check the type of an object?
 
PLEASE HELP!!!!!!!!!!!!!!!!!!!!!! I have a class called Item. I have 2 other classes that publicly inherit from Item class: - Weapon - Armor I also hav...
[3 replies] Last: I'm trying to make the weapon pointer point to an Item, but it can't,... (by Moschops)
help with coding?
 
hey guys, i need some help with this code here. i dont know what's wrong, everytime it runs the getline(cin, name), it crashed. here's the code: #include <ios...
[12 replies] Last: i think if destructor can also be written as , ~room() { ... (by bluecoder)
how to identify only one data member from vector?
 
for example i have a vector of string, int and char. i want to make a program that gets the users input and if the input matches one of the element of the data ...
[10 replies] Last: just tried the code, it didnt quite work, the id was deleted but then ... (by denniscpp)
How do I find factors of large numbers?
 
I have to find the factors of 900851475143........ In which data type do i store it? Also if I use double, I cant use % operator to get its factors! HELP app...
[4 replies] Last: thanks mats and eypros too! (by SameerThigale)
controlling mouse co-ordinate OPENGL
 
Hi, I am trying to make this program in open gl using GLUT. What I want to do is colour my circles from a pop up menu. Options are in the menu and when the us...
[13 replies] Last: ok I am trying. And now I need to attach my popupmenu to the selected ... (by biplav17)
Some weird build errors
 
Never mind, resolved it.
[4 replies] Last: Yeah, next time if you find your own solution, just post it to the thr... (by anonymous23323124)
I need some C++ coders so really desperately
 
please check my topic called "Sorry if this is the wrong area for this topic but i need a team" in the lounge room topic or check my profile for more informatio...
[1 reply] : There is special subforum for this: http://www.cplusplus.com/forum/job... (by eypros)
problem in game programming of c++
 
#include<iostream> #include<cmath> #include<iomanip> using namespace std; void GetPlayersNames(char ,char ); void ShowPlayersNames(char ,char ); void ...
[1 reply] : 1: What is the problem? 2: Please use code tags. (by Mats)
CodeBlocks building problem
 
Every time I try to build something in Codeblocks, it always ask It has not been build yet, would you like to build it ? And it never goes away
[1 reply] : Sounds like you didn't set up the compiler properly. Did you install t... (by Athar)
File streaming, creating file problem
 
Hey there, i'm about to finish my program but i only have one problem, first here is the code: char case2() { goto b; b: count=0; { ...
[2 replies] Last: BUMP :( Please help me my deadline is on January 5 :) (by MaZtRHaXoR)
Derived Class Constructors
 
What happens if we dont specify any constructor in the derived class and try to create an object of the derived class as. Derived d1; Is the no arguement...
[3 replies] Last: Read up on it TS, along with name hiding and name overriding. Just rem... (by IceThatJaw)
by dalawh
Functions in classes
 
What is the difference between defining a function inside a class and defining it outside the class?
[5 replies] Last: Alot of people including myself use the term "Method" to describe a fu... (by IceThatJaw)
Changing the world class from within another class
 
I have a world class that contains a list of objects. How do I add more of those objects to the list from the destructor of one of said objects? (The idea is t...
[11 replies] Last: That's exactly what I need! but why the underscore after "master"? (by blueeyedlion)
student structure help!!!!!!
 
hi my friend can someone help me i want a student structure program with c++ the show name,age,class,grade,and average so plz can someone help me !!!
[3 replies] Last: thanks guys that was helpful and im now working on my program and abou... (by Atheer Ahmed)
How can I read a certain part of a txt file c++
 
Hi,I have a txt file and this file has 9 lines in it. All lines have the same lenght. Now I want for example to read from line 5 to line 8. How can I do that? ...
[5 replies] Last: you can also use the while loop instead of the for loop . #include... (by bluecoder)
where's the error?
 
the code; #include <iostream> #include <vector> #include <cstdlib> using namespace std; class human{ string name; public: human(string name):...
[9 replies] Last: oh my god you're right! wow thank you thank you, i wont make this mist... (by denniscpp)
strcpy claiming error
 
going to compile my program and it states that it cannot convert paramter 1 from 'std:string' to 'char *'. strcpy (part2, part1); that's the line its ...
[9 replies] Last: @ L B , thanks for pointing that out .. i should take care of that .. ... (by bluecoder)
Requesting opinions
 
I just released a project I've been working on for a while, and would appreciate any opinions, comments, etc. anyone might have about it. It's a math parsing li...
[19 replies] Last: I did not know about enum. This is handy. (by rscarson)
Advice
 
is this a good book for learning c++11 http://www.wrox.com/WileyCDA/WroxTitle/Professional-C-2nd-Edition.productCd-0470932449.html if there are any other one ...
[3 replies] Last: http://www2.research.att.com/~bs/C++0xFAQ.html http://en.wikipedia.org... (by closed account DSLq5Di1)
December 2011 Pages: 123... 39
  Archived months: [nov2011] [jan2012]

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