-
Hello everyone,
Long time ago I asked somebody to send me turbo c and Now I am looking for a toturial on the net, which it doesn't seems to be any. If anybody know of any good web site on the net to learn turbo c I really appreciate if you share it with me.
Thanks in Advance
-
Why don't you learn C++ instead??
-
Turbo C isn't really a language, it's a compiler, you need to learn the ANSI spec for C that existed a couple years ago... I'm sure there are some tutorials, but they'll be kinda hard to find.
-
-
Thanks...
Thanks Dennis. Sometimees I feel like my teacher is mentaly handycap. He want us to learn Turbo C!!! I have no idea why... Altough I am learning visual C++ at school but I have to learn Turbo too. Anyhow thanks to everybody for answering.
:) :) :) :) :) :) :) :) :) :) :) :)
-
If you learn C or C++ then it's pretty easy to convert between them. Things to note when using both:
C++ -> C
All variables must be declared at the top of each function
No classes, use struct
Use malloc/free. Watch for alignment with this
C -> C++
Declare variables near first use
Use new/delete in preference
And the main thing to watch out for when using different compilers is structure packing. For example:
Code:
struct mystruct {
char x;
short y;
long z;
}
You'd think that would take up 4+2+1=7 bytes. Not necessarily :) MSVC++ aligns structure elements on 4-byte boundaries, so it takes 12 bytes. Turbo C may do something different, such as aligning to 2-byte boundaries. This can cause a lot of problems when reading/writing files.
-
The Indispensable Guide to C.
ISBN: 0-201-62438-9