|
-
Apr 16th, 2001, 01:13 AM
#1
Thread Starter
Hyperactive Member
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
===========================
Kourosh Gonabadi
VB Programmer 
C++ Newbie 
Graphic Designer
===========================
-
Apr 16th, 2001, 04:09 AM
#2
Frenzied Member
Why don't you learn C++ instead??
-
Apr 16th, 2001, 05:16 AM
#3
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.
-
Apr 16th, 2001, 05:57 AM
#4
Frenzied Member
-
Apr 16th, 2001, 11:51 AM
#5
Thread Starter
Hyperactive Member
-
Apr 16th, 2001, 12:04 PM
#6
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 23rd, 2001, 12:28 PM
#7
Hyperactive Member
The Indispensable Guide to C.
ISBN: 0-201-62438-9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|