General C++ Programming - February 2009 (Page 4)

Combining Maya and C++
 
Hi there. I'm new here. I had a question about using maya in C++. I have visual studio 2003, and was wondering if there is a webpage or book that helps me under...
[1 reply] : This might help you with your issue. http://www.ogre3d.org/ http... (by Mythios)
Random Number Generator
 
is it possible to call a rand() to generate number in ascending order or descending order without sorting it externally? i mean the generated number itself alre...
[14 replies] Last: thanks to all of you! (by soonph87)
Accessing protected members from a derived class
 
Hi, based on a short amount of research, I've learned that the following code is illegal in C++ class Base { protected: int i; }; class Derived : publ...
[7 replies] Last: I don't know about you, but I would expect that if a variable was defi... (by rossman231)
Multiplying unsigned char in a defined field
 
Hi everybody, I am trying to write a code to multiply 2 unsigned characters within a certain field. The multiplication works as follow: Lets add unsign...
[no replies]
Some questions for answers
 
Looking for help, What should I study ,if I want to be a good c++ programmers ?
[5 replies] Last: Thanks . With those help, I think I will do my best! (by gesheng)
Copying member function pointer arrays
 
I am trying to create an array of function pointers, with the ability to add functions. So I have to expand my array with each new function. My only problem is ...
[2 replies] Last: You are also freeing the memory held by the previous array on line 9 a... (by jsmith)
by jRah
What is the logic behind this line of code...
 
// Codecave function VOID Codecave(DWORD destAddress, VOID (*func)(VOID), BYTE nopCount) { // Calculate the code cave for chat interception DWORD offset...
[no replies]
by qasam3
erase
 
Is there a charachter or a function that can erase something printed on the screen?
[5 replies] Last: There is a built-in way but that is a bad way, Read here: http://msdn... (by Bazzy)
by lixo1
Arrays/Vectors max elements dimension
 
Hi everybody, I have a curiosity/problem about the dimension of my arrays. I'm programming under linux & windows & mac, in a mathematical program. So I nee...
[6 replies] Last: Ok, thank you very much for all explanation. (by lixo1)
how to create a vector of a class object ?
 
i need to create a vector of a class object, for example n copies of an object a. please guide.
[2 replies] Last: Thanks a lot nonzenze. (by awcplus)
const retval ns::operator[]( args ) const; problem
 
Hi, Could someone try explaining why is this happening: function definition in class: const string& operator ( string& key ) const; implementation: con...
[4 replies] Last: Don't pay attention. It is about makefiles as I see. (by KarlisRepsons)
by Legion
window forms headache
 
I am having trouble with which should be a very very simple thing, all i want to do is when a button is pressed to show a dialog box with about 20 rows of tex...
[2 replies] Last: Works perfectly, ty. (by Legion)
undeclared identifier
 
I get a dialog box that says abort retry or ignore My problem is when i compile it gives my that error can someone help me /* Fig 9.7: fig09_07.c */ /* Usi...
[4 replies] Last: I can not be certain because the OP has not given any info on His syst... (by closed account z05DSL3A)
by qasam3
upward charachter
 
what charachter goes up one line, like how \b goes back one space?
[6 replies] Last: Hey it really worked, thanks. (by qasam3)
switch statement
 
how does a compiler translate a switch statement. I must write very optimized code. Here a little piece auf code myfunction() { int i = .... sw...
[2 replies] Last: Thx! i will try to find out how the vs2008 compiler translates a swith... (by Superheftig)
Duplicate class registration error
 
Hi all, I have created some libraies from cpp files. i have some executables to which i link it. when iam running that executable it says duplicate class reg...
[no replies]
one question about vector template
 
I defined a class template and function templates. I hope to print all types with the funciton: template <typename T> void MyQueue<T>::Print() { std::vec...
[5 replies] Last: Thanks jsmith and kbw. Now it works with typename std::vector<T>::ite... (by learning cpp)
DevCPP argc/argv
 
Hi, I am trying to write a program in Dev CPP to hold the value of command in argv e.g. : echo welcome devcpp argc = 3 argv = echo argv = welcome arg...
[2 replies] Last: argv will always be the executable file. You need to start with argv ... (by eker676)
Error using a vector iterator in a Template class
 
I have a template class template <class T> class Foo { typedef vector<T> TVector; ... void bar() { ... TVector tVector; ... ...
[3 replies] Last: Seymore said: Try using "typename TVector::iterator". Duh! It's ... (by kwiqsilver)
Spyders to gather information from the internet
 
Hello, I am looking to make a tedious task fast. My friends and me listen to "A State of Trance" by Armin Van Buuren. It's a weekly radio show and has ma...
[4 replies] Last: Used wget, worked like a charm, thanks again, enduser (by enduser000)
February 2009 Pages: 123456... 14
  Archived months: [jan2009] [mar2009]

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