OSU Homepage OSU / College of Mathematical and Physical Sciences / Physics

Department of Physics

C++ Seminar -- Fall, 2006

Welcome to the Astronomy/Physics C++ Seminar home page! This seminar is sponsored by the OSU Astronomical Society.
URL: http://www.physics.ohio-state.edu/~ntg/cpp/cpphome.php

Recent changes to this page:

Contents


Overview

Background:
The idea for this seminar was proposed by Megan Comins in Fall, 2005 on behalf of the OSU Astronomical Society (OSUAS) and her fellow OSUAS leaders (Tom Colvin and Jennifer Taggart). Megan and Dick Furnstahl created the seminar schedule and content for Fall, 2005, which has been updated for Fall, 2006.
Seminar title:
Introduction to C++ for Astronomy and Physics Majors
References:
"Safari Books Online", available through the OSU Libraries OhioLINK, include a very complete set of books on C++ programming (and many other computer-related topics). [sign in from off campus.]
There is no required text, but we will be using the following as guides (linked to Amazon.com listings):
Prerequisites:
We'll assume you can use a web browser, but no programming experience at all will be assumed.
Material:
We'll cover the topics from the first 7 days of the "Teach Yourself" book by Liberty and Jones in the first four sessions (two days per sessions except the last). Assuming all goes well, we'll cover roughly half of the remaining sections (we'll choose the most useful ones for Astronomy/Physics majors).
Schedule:
The seminar will run for four weeks starting on November 6 on Mondays and Wednesdays in Sm1094 from 4:30pm to 6pm.
Facilitators:
Megan Comins, comins.1@osu.edu
Dick Furnstahl, furnstahl.1@osu.edu
Grades, Credit, etc.
Nada.

Return to Contents


1094 Sessions

Sessions are 90 minutes long, unless otherwise noted. Copies of any handouts are available from Prof. Furnstahl or online below. We'll be using the "Teach Yourself C++" book as a guide and a source of examples. If you are on an OSU computer, you can jump to any section using the online table of contents or index. Individual "Days" are linked in the second column of the table below.

Time/Date of SessionOverview and Text Notes/HandoutsFiles
4:30pm, 06-Nov-2006 Day 1 Text, Day 2 Text, Session 1 Excerpts from "Day 1" (hardcopy); answers for "Day 1" through "Day 7" (hardcopy); Dev-C++ flier (hardcopy) "Day 1" (hello.cpp, Ex0101.cpp, Ex0103.cpp, Ex0104.cpp),
"Day 2" (help.cpp, func.cpp, List0201.cpp, List0202.cpp, List0203.cpp, List0204.cpp, List0205.cpp, List0206.cpp, Ex0201.cpp, Ex0202.cpp, Ex0204.cpp Ex0205.cpp)
4:30pm, 08-Nov-2006 Day 3 Text, Day 4 Text, Session 2   "Day 3" (List0301.cpp, List0302.cpp, List0303.cpp, List0304.cpp, List0305.cpp, List0306.cpp, List0307.cpp, List0308.cpp, List0309.cpp)
"Day 4" (List0401.cpp, List0402.cpp, List0403.cpp, List0404.cpp, List0405.cpp, List0406.cpp, List0407.cpp, List0408.cpp, List0409.cpp Ex0402.cpp, Ex0404.cpp)
4:30pm, 13-Nov-2006 Day 5 Text, Day 6 Text, Session 3   "Day 5" (Bug0503.cpp, Bug0504.cpp, List0501.cpp, List0502.cpp, List0503.cpp, List0504.cpp, List0505.cpp, List0506.cpp, List0507.cpp, List0508.cpp, List0508ans.cpp, List0509.cpp, List0510.cpp, Ex0506.cpp, Ex0507.cpp)
"Day 6" (Cat.cpp, Cat.hpp, Employee.cpp, Employee.hpp, Rectangle.cpp, Rectangle.hpp, List0601.cpp, List0602.cpp, List0603.cpp, List0604.cpp, List0605.cpp, Ex0603.cpp, Ex0608.cpp)
4:30pm, 15-Nov-2006 Day 7 Text, Session 4   "Day 7" (List0701.cpp, List0702.cpp, List0703.cpp, List0704.cpp, List0705.cpp, List0706.cpp, List0707.cpp, List0708.cpp, List0709.cpp, List0710.cpp, List0711.cpp, List0712.cpp, List0713.cpp, List0714.cpp, List0715.cpp, List0716.cpp, List0717.cpp)
4:30pm, 20-Nov-2006 Week 1 Text, Session 5   "Week 1 Review" (WR01.cpp)
4:30pm, 27-Nov-2006 Day 8 Text, Day 9 Text, Day 13 Text, Session 6   "Day 8" (List0801.cpp, List0802.cpp, List0803.cpp, List0804.cpp, List0805.cpp, List0806.cpp, List0807.cpp, List0808.cpp, Ex0804.cpp, Ex0805.cpp, Ex0806.cpp)
"Day 9" (List0901.cpp, List0902.cpp, List0903.cpp, List0904.cpp, List0905.cpp, List0906.cpp, List0907.cpp, List0908.cpp, List0909.cpp Ex0901.cpp)
"Day 13" (List1301.cpp, List1302.cpp, List1303.cpp, List1304.cpp, List1305.cpp, List1308.cpp)
4:30pm, 29-Nov-2006 Day 13 Text, Day 17 Text, Session 7 "Strings and Things" [pdf]; printout of "filename_test.cpp" [pdf] "Day 13" (List1310.cpp, List1311.cpp, List1312.cpp, List1313.cpp)
"Day 17" (List1701.cpp, List1702.cpp, List1703.cpp, List1704.cpp, List1705.cpp, List1706.cpp, List1707.cpp, List1708.cpp, List1709.cpp, List1710.cpp, List1711.cpp, List1712.cpp, List1713.cpp, List1714.cpp, List1715.cpp, List1716.cpp, List1717.cpp, List1718.cpp, List1719.cpp, List1720.cpp, Ex1701.cpp, Ex1702.cpp, Ex1703.cpp, Ex1704.cpp, Ex1705.cpp)
"Extra" (filename_test.cpp)

Return to Contents


Handouts and Notes

Online handouts will mostly be in PDF format.

Last UpdatedHandoutComments
01-Jan-2004 C++ Options (ps) (pdf) "Recommended C++ Options" -- options for g++ (GNU compiler) and icpc (Intel compiler) based on the recommendations in the GSL Reference manual.

Return to Contents


C++ Resources

Return to Contents


*Send Comments or Questions about the C++ Seminar

Anonymous Comments about the C++ Seminar

Type your comments in the space below and then "press" Send Comments.
Your identity will not be recorded. You are, of course, welcome to include your name in the message. [Please include your name and email address if you'd like a reply!]


Send regular email to Prof. Furnstahl at furnstahl.1@osu.edu

Return to Contents



Your comments and suggestions are appreciated.
[OSU Physics] [Math and Physical Sciences] [Ohio State University]
OSU Astronomy/Physics: C++ Seminar.
Last modified: 08:22 am, November 26, 2006.
furnstahl.1@osu.edu