More efficient?

Started by
10 comments, last by deadimp 17 years, 12 months ago
You almost ALWAYS want to write clean, easy to read code whenever possible even if it costs a few extra CPU cycles. Writting messy code can bite you in the butt, costing hours of debugging hassle for you.

And when in doubt follow these simple instructions...

1) Write it so it works
2) Write it so it works faster
Advertisement
Be sure that you understand how C++ bascially handles strings (char[]'s with null terminators) before you start doing anything complex with them.
Otherwise, follow Zahlman's advice and stick with std::string.
Projects:> Thacmus - CMS (PHP 5, MySQL)Paused:> dgi> MegaMan X Crossfire

This topic is closed to new replies.

Advertisement