I'm probably unknown anyway, (check out my post count hahaha), but the reason I left the forums for a bit, was that I was doing python at school. Because of my nooby programming skills, I could not handle 2 languages, and c++ fell to the side...until now!
So I'm back, and I'm also taking an instructed course right now to help me along, and I'll probably post some help from that class here.
@DTS is this because you believe python programmer's place their brackets in specific places?
If so, I started with python for four years and this is how I do it:
1 2 3
int main() {
return(0);
}
@OP Don't know you, but welcome back. I hope you are a benefit to our community.
I laugh that so many people complain about the placing of the brackets. If you look at Bjarne's book and the "C++ in-depth" series he supervised, the code in all of it is:
Python does have brackets. And parentheses and braces. It doesn't use braces for scoping because it uses FORCED INDENTATION OF CODE instead. It uses braces to declare dict objects.
@chrisname ah, yes. I was only thinking of code indentation.
@BHXSpecter and darkestfright thank you for helping me prove to fredbill that the way I use brackets is perfectly fine :P
I used to follow the Linux coding style but I don't any more. When I came across it, I was using 4-space indents instead of 8-space tab indents, but otherwise identical to the Linux style. Then I switched to using tab for indent and spaces for formatting. A while ago I switched back to just spaces because spaces are better for formatting, are more portable (space indents look the same on all text editors whereas tab often looks different due to different settings), and also because 8-space tabs indent way too much when you use 80 chars per line (which I do, and which the Linux kernel coding style suggests).