int main()
{
if (LEARNING_C == 1)
{
printf("Woo!\n");
printf("This book is certainly better than the other one.\n");
}
else
{
printf("wat\n");
}
return 0;
}
1) Do you really double-up your line breaks like that? It looks a bit strange.
2) "if (LEARNING_C == 1)" is more verbose than necessary. "if (LEARNING_C)" will suffice. (C considers an expression to be true if it has any non-zero value.)
I can confirm from unpleasant experience that Jyte is pants at <pre>.
printeronfire: Why do you keep trying with C and C++? That's an incredibly bad way to learn fundamentals. Also, would it kill you to make an actual claim?
For the record, "21 days" books are pants at teaching anything about programming. You want an actual textbook.
D'A
... and K&R is perfect at what it is, thank you
Some people think that Project Euler is a nice way to start learning a new programming language. I tend to agree. I've certainly found some of the Scala solutions interesting.
Discussion (7)
Best of luck, atomicthumbs!
Two comments:
1) Do you really double-up your line breaks like that? It looks a bit strange.
2) "if (LEARNING_C == 1)" is more verbose than necessary. "if (LEARNING_C)" will suffice. (C considers an expression to be true if it has any non-zero value.)
Thanks! :)
Two responses:
1) No, jyte does that to anything, even if it's inside a pre tag.
2) I'm only most of the way through the section on relational operators. :P
I can confirm from unpleasant experience that Jyte is pants at <pre>.
printeronfire: Why do you keep trying with C and C++? That's an incredibly bad way to learn fundamentals. Also, would it kill you to make an actual claim?
For the record, "21 days" books are pants at teaching anything about programming. You want an actual textbook.
D'A
... and K&R is perfect at what it is, thank you
Claims inspired by this comment
Bulet goes in cartrije goes in wepon.Hello world code now always makes me think of the equivalent of:
printf("Paula is brillant");Some people think that Project Euler is a nice way to start learning a new programming language. I tend to agree. I've certainly found some of the Scala solutions interesting.
D'A: 1. I know fundamentals, but no programming languages. I'm weird that way.
2. It seems to be teaching me better than was happening with K&R. I guess I'll check it out again when I'm done with this one.
Slartibartfast: What?
Wyscan: Thanks for the links.
The Brillant Paula Bean