First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
"const" keyword
I am not sure of the purpose of "const" keyword in the line: int GetAge() const { return itsAge; } If I remove the "const" keyword, the program still works. class Mammal { public: // constructors Mammal(); Mammal(int age); ~Mammal(); //accessors int GetAge() const { return itsAge; } void SetA... 7 Oct 2008 04:10
producing and using libraries
Can someone link me a webpage or a tutorial showing how to produce static, dynamic, import and shared library of very simple code and how to reuse them in a new project? I'm using codeblock for now, but everything should be all right. Giuseppe ... 14 Sep 2008 04:33
Some C/C++ tips for experienced programmers
I found some useful tips about C/C++ and want to share with you. Sorry if it bothers you. Tips for better Coding Style: http://tmh-coding-tips.blogspot.com/2008/09/cc-guidelines-for-better-coding-style.html Tips for better Memory Management: http://tmh-coding-tips.blogspot.com/2008/09/cc-tips-for-better-memory... 21 Sep 2008 03:40
Need advice from pro C++ coders
I am 15.5 now and still studying. I have always liked computers and technical stuff so i spend all my spare time alone with my pc. I want to become a great programmer, but not necessarily as a career in the futere. I studied C++ for more than 2 years on and off . I read some books including Accelerated c++, de... 15 Sep 2008 13:15
newly-available docs on Cilk++ for multicore programming
http://www.cilk.com/resources-for-multicoders/for-developers-only/ (For GCC and Visual Studio) documentation, code samples, training materials for developers Cilk++ ships in several months, but the above is a preview of what's coming. ... 12 Sep 2008 07:35
Is this the correct way to think of "base class"?
Is this the correct way to think of "base class"? The "base class" is a class from which other classes are derived. The "base class" is not derived from any another class. ... 28 Sep 2008 12:23
CVAPI(void)
in a header file i've found this line: CVAPI(void) cvWatershed( const CvArr* image, CvArr* markers ); What does it mean? It is a strange function declaration. It seems "CVAPI(void)" is treated like a type. Giuseppe ... 12 Sep 2008 07:35
is there memory corruption here?
I've been told there is memory corruption for buf.str().c_str(): void myFunc() { std::stringstream buf; buf << "some string"; const char *data = buf.str().c_str(); SomeFunc(data, strlen(data)); //do something else } Can someone explain why? ... 11 Sep 2008 06:52
hex values to string
Hi, the documentation of a serial devices explains how to communicate. I have to send the sequence: Device adress: 0x01 Function: 0x03 Register adress: 0x0000 .... .... to a serial port. I use the sio_write(int port, char *buf, int len) API-232 function but how do i convert the this hex values (0x01, ... 10 Sep 2008 20:40
New to C++, Need Help Setting Up IDE
Hello, I'm trying to teach myself C++ right now using MS Visual C++ Express Edition. I'm trying to follow the tutorial here: http://www.developerfusion.co.uk/show/3653/2/ When I compile the file, however, I get an error: fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I t... 12 Sep 2008 11:41
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19