Hmmm... The sticky that Marauder made is really good, but it is long. One thing that I'd just like to say is that you don't need to use INT for your main() function. The teacher didn't tell us this, but to save time and for just plain convenience:
Code: Select all
int main() {
return 0;
}
Code: Select all
void main() {
}
Also, I think her aligning of stuff is pretty ghetto. Anything between braces generally gets indented 4 spaces. Actually-- her way of bracing is attrocious to me. I think everybody on these boards uses this style:
Code: Select all
void main() {
if(something) {
do something;
do something;
}
}
This is the old person or ghetto person style:
Code: Select all
void main()
{
if(something)
{
do something;
do something;
}
}
Post here! Any little question. MarauderIIC is the most knowledgable of C/C++ programming here, I'm in your class and know C++, and JS Lemming knows C++ as well.
Good luck on that horrible ASCII art with printf()s...
Also, one of the moderators was being stupid and accidently deleted your last post.... |):
[/code]