Thread: help with book code

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    44

    help with book code

    Im reading Bjarne Stroustup's "Programming: Principals and Practice using C++" and Im having trouble figuring out how to set up the graphics code that he uses to simplify the FLTK library, quite strangely he does not have instructions on how to set it up in the appendix . I got FLTK running fine, I just cant figure out how to add these files to a project. Whats strange is he has a make file to go along with this code despite the fact the book uses MSVC. I know this is a lot to ask to have you guys figure out for me, but Im hoping maybe someone has worked through this book and knows what to do.
    http://www.stroustrup.com/Programming/Graphics/

    edit: I just realized I should probably have posted this thread in the Windows or Linux platform section, feel free to move it if its in the wrong place.
    Last edited by shintaro; 09-24-2010 at 03:37 PM.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    So your using an IDE? Why not just create a new file within the IDE's project, and just copy and paste the file contents. Then set the link definitions if you so need. (Which appears to be none)

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    44
    thanks Yarin, but I found another solution, there is a folder with all book code and make files on the book website

    sorry for the bother, Id delete this thread but I dont see an option for deleting

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    We don't delete threads because they contain valuable information someone else might find useful!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Queue linked list prob.. need help and suggestions
    By anthnzz in forum C Programming
    Replies: 2
    Last Post: 04-11-2010, 04:16 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Newbie - MFC code from a book in VC++.Net
    By Guardian in forum Windows Programming
    Replies: 2
    Last Post: 04-27-2002, 07:17 PM
  4. exit program
    By spentdome in forum C Programming
    Replies: 4
    Last Post: 04-22-2002, 02:08 PM