C programming
#8

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Right, I removed fclose, works same, you're right.


Well, that's true, I'm not returning 1 anywhere, but anyway that's his words.. "always return 0", alright, so I will change it to void then. Thanks for advice!

edit://
Anyway, one of my tutors (he left) told me to do not use double slash (//) to comment one line. Because it's working only in C++ language. And we must use slash - star (/* .. */). He shout on me when I used double slash, to comment one line, he was really annoying, why we can't use it, if we have it? let's make life easier.. Thankfully he's gone.

But as we see.. my tutors (all) doesn't have any clue about programming (because I trust you)
AFAIK comments are filterd out by the preprocessor, so it has nothing to do with the programming language itself (but with the compiler).

And if a teacher is trying to force his way down your throat he's teaching wrong. It's better to give someone the tools nessercary and let them learn it themselves. (from my experience a lot of teachers don't know what they're talking about*)

*What I mean is that there are usally multiple ways to a goal and you should definitely experiment with other methods and not follow your teacher blindly only then will you learn to think outside the box.
Reply


Messages In This Thread
C programming - by Riddick94 - 26.04.2013, 09:10
Re: C programming - by Fredrick - 26.04.2013, 09:13
Re: C programming - by Riddick94 - 26.04.2013, 10:28
Re: C programming - by OrMisicL - 26.04.2013, 11:15
Re: C programming - by Riddick94 - 26.04.2013, 11:26
Re: C programming - by OrMisicL - 26.04.2013, 11:32
Re: C programming - by Riddick94 - 26.04.2013, 12:01
Re: C programming - by playbox12 - 26.04.2013, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)