Is It Really A Bug For A Beginner To Be Using C-Strings

Published April 26, 2010
Advertisement
Depends, but probably yes.



A beginning programmer should be focusing on learning to program. That is: the process of taking a concept and turning it into an application. Problem solving, in other words. Learning to program is not the same thing as learning a programming language. Learning a programming language is about learning the syntax and standard library that comes with said programming language, it may involve the process of problem solving, but that is not its primary concern.



Read more on my ScapeCode blog.








0 likes 1 comments

Comments

voodoohaust
I've just read the c-string vs std::string post.

Well ok, c-string in c++ code is a bug if you say so. But it would have been more interesting if you have providef code samples about common use of c-string and how to correctly implement it with std::string.

For example, what is the equivalent of printf ?? How can I implement a print-like method with the ellipsis (...) with std::string. And so on.

If you have valuable articles links I'd be happy to read them.

Thanks
April 30, 2010 05:42 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement