Straight C

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2002
Posts: 12,039
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Straight C

 
0
  #1
Feb 13th, 2003
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
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 129
Reputation: Bob is an unknown quantity at this point 
Solved Threads: 1
Team Colleague
Bob Bob is offline Offline
Team Member
 
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++.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 27
Reputation: Elfshadow is an unknown quantity at this point 
Solved Threads: 0
Elfshadow's Avatar
Elfshadow Elfshadow is offline Offline
Light Poster

Re: Straight C

 
0
  #4
Apr 18th, 2007
Originally Posted by cscgal View Post
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
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???
Last edited by Elfshadow; Apr 18th, 2007 at 1:55 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Straight C

 
0
  #5
Apr 18th, 2007
Originally Posted by Elfshadow View Post
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???
Yay, now Dani can complete her project! It sure has been a loooong wait (4 years to be exact)...
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 27
Reputation: Elfshadow is an unknown quantity at this point 
Solved Threads: 0
Elfshadow's Avatar
Elfshadow Elfshadow is offline Offline
Light Poster

Re: Straight C

 
0
  #6
Apr 18th, 2007
ROFL I didn't look at the date
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC