| | |
Straight C
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I'm taking an Operating Systems course in which I need to write some really in depth programs (more specifically, along the lines of a terminal based program which implements many system level unix-like commands). However, the catch is that this must be written in straight C, which I have no experience with. I used to do a bit of C++ programming, but I haven't looked at any language other than php in about a year and a half.
Are there any tutorials on the web, etc that would be an overview of C for C++ programmers? (e.g. using printf as opposed to cout, etc, what syntax still applies and what doesn't, etc etc)
thanx, dani
Are there any tutorials on the web, etc that would be an overview of C for C++ programmers? (e.g. using printf as opposed to cout, etc, what syntax still applies and what doesn't, etc etc)
thanx, dani
•
•
Join Date: Feb 2003
Posts: 129
Reputation:
Solved Threads: 1
0
#2 Feb 13th, 2003
I don't know about tutorials for C++ programmers learning C, mostly they're the other way around. If you're already fairly comfortable with C++ just go for a straight C tutorial and you should do just fine.
Do keep in mind that C has changed in recent years. The C standard was updated in 1999, introducing some new features. I would imagine that most tutorials on the web are based on C89 rather than C99. I don't know which you're required to use for your task.
If using older, more traditional C I would suggest you get hold of a copy of Kernighan & Ritchie's C Programming Language second edition. It's a good intro to C (still selling well), and with a C++ background I would expect you to be able to go through it pretty quickly, and soon pick up C I/O and other differences with C++.
Do keep in mind that C has changed in recent years. The C standard was updated in 1999, introducing some new features. I would imagine that most tutorials on the web are based on C89 rather than C99. I don't know which you're required to use for your task.
If using older, more traditional C I would suggest you get hold of a copy of Kernighan & Ritchie's C Programming Language second edition. It's a good intro to C (still selling well), and with a C++ background I would expect you to be able to go through it pretty quickly, and soon pick up C I/O and other differences with C++.
0
#3 Feb 15th, 2003
That's a weird question. It's like asking for a book on "Windows 3.1 for Windows 2000 Datacenter Server" users. =) Ok, maybe I'm exaggerating a bit. I did use C though a long time ago when I was trying to create a Doom clone. I had most of the source code (which was in C) and it helped me out a lot. I have a book on C/Unix programming if you would like to take a look at. Very good book if you already know the basics of programming which I know you do. Let me know if you want it.
Here's two sites that I referred to when I was taking Unix Programming. They're ok, but they're the only ones that I can come up with at the moment (the ones I had saved on favorites):
http://www.cecs.csulb.edu/~tayek/326/c4cplusplusers.html
http://people.cs.uchicago.edu/~iancooke/osstuff/ccc.html
http://henson2.salisbury.edu/~dxdefino/CS450/IntroToC.htm
Here's two sites that I referred to when I was taking Unix Programming. They're ok, but they're the only ones that I can come up with at the moment (the ones I had saved on favorites):
http://www.cecs.csulb.edu/~tayek/326/c4cplusplusers.html
http://people.cs.uchicago.edu/~iancooke/osstuff/ccc.html
http://henson2.salisbury.edu/~dxdefino/CS450/IntroToC.htm
•
•
•
•
I'm taking an Operating Systems course in which I need to write some really in depth programs (more specifically, along the lines of a terminal based program which implements many system level unix-like commands). However, the catch is that this must be written in straight C, which I have no experience with. I used to do a bit of C++ programming, but I haven't looked at any language other than php in about a year and a half.
Are there any tutorials on the web, etc that would be an overview of C for C++ programmers? (e.g. using printf as opposed to cout, etc, what syntax still applies and what doesn't, etc etc)
thanx, dani
Here is a site that helped me http://computer.howstuffworks.com/c.htm
It helped me learn lots of stuff like pointers pretty well.
BTW which OS is it?Linux,FreeBSD???
Last edited by Elfshadow; Apr 18th, 2007 at 1:55 am.
•
•
•
•
I use to do C++ and switched to C and I like it.The main big difference besides no OPP is the input and output .
Here is a site that helped me http://computer.howstuffworks.com/c.htm
It helped me learn lots of stuff like pointers pretty well.
BTW which OS is it?Linux,FreeBSD???
"Technological progress is like an axe in the hands of a pathological criminal."
![]() |
Similar Threads
- In doubt whether to use straight-thru cables or crossover cables. (Networking Hardware Configuration)
- Its Running, But The Numbers Isn't Lining Up Straight.please Help (Python)
- hop over decimal and straight to business (C++)
- Working on new design (DaniWeb Community Feedback)
- microsoft's antitrust case (IT Professionals' Lounge)
Other Threads in the C++ Forum
- Previous Thread: Hi, I'm new to C++ and I need some confirmation
- Next Thread: Simple program that I need help with.
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets







