C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 30th, 2002, 02:28 PM
infoseeker infoseeker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 8 infoseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to infoseeker
Suggest a book or site to understand the exact execution of a C/C++ program.

Hi !
I had joined C,C++ classes some time ago and now I would like to know how exactly a C/C++ program works, where are the variables and pointers stored and how exactly the if,for, while loops work and where are they stored. I would like to know how the code is executed in complete details. Since I have already completed the course I cannot go back and ask the faculties about it. I am new to programming and hence it took me time ti learn the basics and by the time my classes duration was over.Please suggest a good site/book that can describe and explain these in detail. I would be extremely thankful.

Reply With Quote
  #2  
Old October 31st, 2002, 08:41 AM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
Infoseeker,

The storage and execution procedure will depend on your compiler and your operating system. Different compilers on the same operating system will store data and instructions differently.

If you're new to programming, you'll be better rewarded by focusing on programming fundamentals, and worrying about specific machine implementations later. Kernighan & Ritchie's "The C Programming Language" or Bjarne Stroustrupe's "The C++ Programming Language" are my recommendations for good instruction in that realm. Most importantly, get lots of practice.

If you don't have a compiler, the Cygwin is free, reasonably standards compliant, and works identically to its UNIX brethren. Of course, if you have a UNIX machine available to you then you probably already have a good compiler suite.
__________________
Clay Dowling
Lazarus Notes
Articles and commentary on web development
http://www.lazarusid.com/notes/

Reply With Quote
  #3  
Old October 31st, 2002, 09:37 AM
infoseeker infoseeker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 8 infoseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to infoseeker
Hi !!
Thanks a lot for the reply and suggestions. I have bought Bjarne Stroustrup's book, but it seems to be very techie..but I am sure with practise I would be able to understand it. Thanks again for the reply.

Reply With Quote
  #4  
Old October 31st, 2002, 10:40 AM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
infoseeker,

Stroustrupe's book isn't half so techy as the information you're looking for. The trick with that book is to start and the beggining, work through the exercises (there's an answer manual available as well), and don't get scared by all the big nasty stuff at the end of the book. If you can make it through the first couple of sections, you'll have a very solid programming foundation.

It's much better for learning than the "Learn C++ in X days" type books. It's also superior to at least the Dietel & Dietel textbooks, which I have taught from.

It will work best to set yourself some small project to work on. You'll learn your C++ faster by having actual applications to work on. Just remember that even the most basic Windows program is non-trivial, so start with command line programs. I might recommend simple games.

Reply With Quote
  #5  
Old November 1st, 2002, 08:23 AM
infoseeker infoseeker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 8 infoseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to infoseeker
Hi ClayDowling,

Thank you so very much for the information. Its because of people like you that we newbies get the proper direction...I was about to buy the learn C++ in 21 days...no kidding...but now I have decided not to touch it even with a bargepole.....Thanks a lot again for your help...I will be bothering you with more questions about C++ and hope that you would not mind . Thanks once again.

Infoseeker

Reply With Quote
  #6  
Old November 1st, 2002, 10:35 PM
Optix Optix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 36 Optix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Lol i made the mistake of buying C++ in 21 days. Yes, it sucks, i learned nothing with it. They dont explain anything =[

Reply With Quote
  #7  
Old November 2nd, 2002, 10:10 PM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
Worse than not explaining anything, most of the books aren't teaching you the language. What they're teaching you is how to get some quick results with a specific compiler, and heaven help you if you actually need to put some code behind the pretty interface.

Reply With Quote
  #8  
Old November 4th, 2002, 02:04 AM
Xdeth's Avatar
Xdeth Xdeth is offline
Defensor fidei
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Raleigh, NC
Posts: 24 Xdeth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Suggest a book or site to understand the exact execution of a C/C++ program.

Quote:
Originally posted by infoseeker
Hi !
I had joined C,C++ classes some time ago and now I would like to know how exactly a C/C++ program works, where are the variables and pointers stored and how exactly the if,for, while loops work and where are they stored. I would like to know how the code is executed in complete details. Since I have already completed the course I cannot go back and ask the faculties about it. I am new to programming and hence it took me time ti learn the basics and by the time my classes duration was over.Please suggest a good site/book that can describe and explain these in detail. I would be extremely thankful.


Just thought I'd let you know that your question really has little to do with C++ and more to do with computer architecture and operation. You get this information from taking assembly language and operating systems courses or reading like texts. Of course I've not read Bjarnes book ( I know heresy, I'm disavowed ) maybe this is covered in it?

Reply With Quote
  #9  
Old November 4th, 2002, 12:43 PM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
This topic is most definitely not covered in the Stroustrup book, Xdeth, and you are dead on about where a person should go look for that information.

Reply With Quote
  #10  
Old November 4th, 2002, 06:29 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
Heh, those 21 days books though are excellent for people who are already programmers. I learned C++ from the Sams 21 day one, and it was exactly what I needed. I know programming, I just needed to know the syntax of how the language worked. That and pointers.

Reply With Quote
  #11  
Old November 16th, 2002, 06:39 PM
Azraelle Azraelle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: St George, UT/USA
Posts: 2 Azraelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am presently working on a CIS degree--I had never programmed anything in my life before this, except for simple 1 or 2 line DOS scripts and some WP 5.1 macros. The best book I have found that explains C++ understandably is the "C++ Black Book", and I've gone through a ton of them. Unfortunately I didn't find this one until after I retook Data Structures!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Suggest a book or site to understand the exact execution of a C/C++ program.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway