BTW: git is also an alternative. But IMHO both have the same chances to lose code somewhere in one or the other branch.
I would also advice against Git. While it's not bad per se, I experienced it as quite complex (there are some commands with the same name and different actions in git and svn/hg ...
Search found 39 matches
- Fri Apr 16, 2010 12:04 pm
- Forum: Open Discussion and Dev Announcements
- Topic: OGRE has switched to Mercurial
- Replies: 15
- Views: 5357
- Sat May 17, 2008 9:41 am
- Forum: Beginners Help
- Topic: Sprintf for font->draw()
- Replies: 10
- Views: 981
- Sat May 17, 2008 7:21 am
- Forum: Beginners Help
- Topic: Sprintf for font->draw()
- Replies: 10
- Views: 981
Because the number is large doesnt mean it won't happen ... especially as 10000 is not _that_ large. Can anyone say buffer overflow?greenya wrote:and never worried about that any more.Code: Select all
c8 str_c [ 10000 ];
@Ion Dune:
_Much_ better solution.
- Fri May 16, 2008 10:01 pm
- Forum: Beginners Help
- Topic: Sprintf for font->draw()
- Replies: 10
- Views: 981
It's not incorrect per se. It's just bad style, old (C) style and buggy. If you use a pointer you have, of course, to allocate some memory ... you cant just start writing at 0x00. When you use a array of size 32 you should NOT write something there thats longer than 32 chars. Ever heard of buffer ...
- Fri May 16, 2008 9:45 pm
- Forum: Beginners Help
- Topic: Sprintf for font->draw()
- Replies: 10
- Views: 981
- Wed Apr 30, 2008 2:38 pm
- Forum: Beginners Help
- Topic: Sort Array
- Replies: 17
- Views: 2579
- Tue Apr 29, 2008 8:48 pm
- Forum: Beginners Help
- Topic: Sort Array
- Replies: 17
- Views: 2579
- Tue Apr 29, 2008 3:53 pm
- Forum: Beginners Help
- Topic: Sort Array
- Replies: 17
- Views: 2579
- Mon Apr 28, 2008 9:44 pm
- Forum: Beginners Help
- Topic: Sort Array
- Replies: 17
- Views: 2579
- Mon Apr 28, 2008 7:38 pm
- Forum: Beginners Help
- Topic: Sort Array
- Replies: 17
- Views: 2579
- Fri Feb 29, 2008 10:51 am
- Forum: Advanced Help
- Topic: Strange problem with GLSL
- Replies: 12
- Views: 1622
- Sun Feb 24, 2008 12:59 pm
- Forum: Game Programming
- Topic: Components....
- Replies: 21
- Views: 4469
- Sun Feb 24, 2008 11:33 am
- Forum: Beginners Help
- Topic: Simple C++ problem
- Replies: 5
- Views: 486
Re: Simple C++ problem
In C++ a struct is a class with default accessibility public. (If its not a POD, but you shouldnt be concerned about that). Conclusion: Using structs is ok.Ion Dune wrote:I had planned to use structs, but it seemed a little old fashioned so I wanted to see what was recommended in cpp for this kind of thing.
- Mon Feb 11, 2008 11:24 pm
- Forum: Beginners Help
- Topic: Camera Collision Detection
- Replies: 10
- Views: 982
- Sun Feb 10, 2008 2:31 pm
- Forum: Beginners Help
- Topic: Array initialization problem.
- Replies: 12
- Views: 888
Array initializers must be known at compile time. So they are not allowed to be stored in a structure. Of course values in this example could be retrieved by constant folding, but thats not generally true.
As for unions and const-casts. Both is possible and should be considered evil .
Const is just ...
As for unions and const-casts. Both is possible and should be considered evil .
Const is just ...