General C++ Programming - December 2011 (Page 7)

enum
 
can you include enum in a header file
[2 replies] Last: you can include the enum in the header file in the source file , insid... (by bluecoder)
by siloan
XTEA
 
Hi, does anybody have the xtea implemented in c++? I have found this: http://www.daniweb.com/software-development/cpp/threads/52759/246419#post246419 but for ...
[7 replies] Last: Now is fine, thanks. http://www.php-einfach.de/sonstiges_generator_xt... (by siloan)
Setting members of base class through a constructor of a derived class
 
I have an abstract base class with a protected member vector<MatrixXd*> pS;. However, whether the contents of this member are viable will be determined in the d...
[1 reply] : To your questions: It is perfectly legal to modify a non-private inher... (by h9uest)
Creation of 2-Dimentional array with dynamic memory allocation
 
Dears, I am in need of writing a program of Dynamic Memory allocation to a 2-Dimensional array. I have written two programs, now I am in confusion which ...
[2 replies] Last: Hi when i run this code i get the garbage value . #include "stdafx.... (by bluecoder)
obfuscated Jingle bells
 
i wanted to write a small code to us as my Christmas status update so that the output is Jingle bells Jingle bells Jingle all the way void...
[4 replies] Last: i would have posted the whole code so this wont work anyway what i wa... (by soumyaxyz)
by fragal
weird problem
 
I'm trying to make a function receiving as a parameter an array, an returning its int equivalent. For instance, when the array "set ={3,2,1}", is passed on the...
[9 replies] Last: Sorry for my not so appealing code I'm new to this forum. I'm using De... (by fragal)
Square root without using math.h
 
How i take square root without using math.h library..?? Please Help me.
[5 replies] Last: Why can't you use the math.h? You could use the pow function instead..... (by Eric000)
Finding project partners
 
I am new to C++ I just finished my second semester of computer science but I got very good grades and i am really passionate about this field. For the past few ...
[2 replies] Last: I mean real life through online communication. I use windows 7. (by void void)
Problem with encoded script/message
 
Hello. I just started my journey with C++ and got problem with encoded message. It's containted in program called bot to online game. In that bot when i try ope...
[3 replies] Last: So thats why I came there. To get help. (by bubel 1234)
by Reemu
Can anyone describe this program
 
#include <iostream.h> #include <math.h> class Statistc { //----------------------------------------------------------------------------------- private...
[10 replies] Last: its ok i just wanted to make sure i didnt do anything wrong (by Aramil of Elixia)
VLAN for multi-player games
 
I tried this out before with hamachi and I saw the game my friend made but the ping was ridiculous. I am wondering how hard it would be to write a virtual LAN p...
[2 replies] Last: i just want to hook 2 computers up on a respectable vlan netwrok not s... (by void void)
how to shuffle cards without repeating
 
Hello everyone I am making a card game but I have problem of shuffling cards. I have to put the cards in a linked list. When I shuffle the list I get the same ...
[9 replies] Last: Well, perhaps complicating implementation of your doubly-linked list i... (by closed account S6k9GNh0)
by lelre
void main() or int main()? (1,2)
 
Hi! I'm in doubt when should I use it (void main or int main)and whats difference between them? If i write program using void main() what could happen? #i...
[28 replies] Last: In libc.so.6, when the function __libc_start_main gets around to calli... (by Moschops)
Passing a parameter as refrence ( & ) and "Invalid use of member" - error
 
I am trying the pass the address of a map into the compare object that has been instantiated with in a map. I am getting this error "Invalid use of member(did y...
[2 replies] Last: can you let me know in template <class T, class U, class C> why thi... (by bluecoder)
Regarding Encapsulation
 
Hi, I have a doubt regarding the concept of encapsulation. Isn't C language also does the encapsulation by 'struct' data type? I am trying to relate th...
[5 replies] Last: The word is 'interface' Forget about the data members, these are the ... (by mik2718)
What is use of Address Operator (&) in this program?
 
// this #include <iostream> using namespace std; class CDummy { public: int isitme (CDummy& param); }; int CDummy::isitme (CDummy& param) { ...
[3 replies] Last: if pass the address of the object a the object b ( only the address )... (by bluecoder)
Glut sprites.
 
Does anyone know if it's possible to draw sprites from a file using glut? of if not glut something similar. Thanks.
[1 reply] : Sprite movement is possible. However, use FreeGlut, not Glut. Glut is ... (by WinwordExonar)
How difficult will it be to learn Ogre?
 
I am 5 classes away from getting my CS degree and I am taking a game programming class as an elective. We are attempting to design a 3D FPS using Ogre as the m...
[12 replies] Last: Irrlicht is fun as well although it feels a bit dated. Also, an alte... (by WinwordExonar)
i tested it out and cant figure out \r
 
in xcode, when you use \r i see nothing. what does it do? I know its a carriage return but I dont understand it
[4 replies] Last: Yea in XCode the escape codes did not work. Not all of them at least. ... (by WinwordExonar)
Image loading library
 
Hey all, I need a good library replacement for Glaux. I'm doing NeHe's tutorial, and he uses Glaux but Code::Blocks I guess no longer supports it. I've tried to...
[1 reply] : I used http://openil.sourceforge.net/ for that myself, but I've heard ... (by hamsterman)
December 2011 Pages: 1... 56789... 39
  Archived months: [nov2011] [jan2012]

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