Thread
:
Need help with C++ please
View Single Post
Mentalist Traceur
2013-09-20 , 16:26
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#
8
Oh yeah, printf has an option for padding the output too. (The problem with always figuring out the logic yourself is you sometimes completely forget avout some of the other options available that do the work for you, lol.) I still enourage learning programmers to figure stuff like that out. After all, someone has to know how to implement that logic, else who'll implement our printf() padding and our setw() and so on?
As for the comment about C++ being bloated, that really depends on what you mean by bloated, but for a lot of modern software need, you can easily end up with binaries that actually execute faster if you write it taking advantage of C++ features than using plain C. (And this is coming from a plain C fan, don't care for C++ much.)
Aside: Sometimes classes don't let you use the C stuff, and insist you use the C++ alternatives. I've had courses where the teacher demanded you used iostream and co. and nothing from stdio.h. I thought it was ******ed too.r
Quote & Reply
|
The Following 4 Users Say Thank You to Mentalist Traceur For This Useful Post:
bandora
,
bingomion
,
Estel
,
Wikiwide
Mentalist Traceur
View Public Profile
Send a private message to Mentalist Traceur
Find all posts by Mentalist Traceur