slides - Yong Joseph Bakos
slides - Yong Joseph Bakos
slides - Yong Joseph Bakos
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CSCI261A<br />
Programming Concepts<br />
Monday, August 31, 2009
<strong>Yong</strong> <strong>Bakos</strong><br />
ybakos@mines.edu<br />
303 653 3017<br />
Chauvenet 231<br />
office hours: M/W/F 2-3<br />
(or by appointment)<br />
Monday, August 31, 2009
I<br />
Programming<br />
And you will too. Or you’ll at least be “just friends.”<br />
Monday, August 31, 2009
Monday, August 31, 2009
Monday, August 31, 2009<br />
Wargames, 1983
Monday, August 31, 2009<br />
Typical old-school text-based menu
ABSTRACTIONS<br />
I don’t care what’s inside, as long as it works!<br />
(I don’t want my brain to melt)<br />
Monday, August 31, 2009
This class is about<br />
PROGRAMMING<br />
Monday, August 31, 2009
Programming is...<br />
describing an algorithm (how to do something) to a<br />
computer such that the computer can carry out the<br />
algorithm.<br />
(computers are dumb, so this can be tricky!)<br />
Monday, August 31, 2009
Monday, August 31, 2009<br />
“brushing your teeth”
Monday, August 31, 2009<br />
Ada Lovelace<br />
1815 - 1852
#include <br />
#include <br />
using namespace std;<br />
int main( )<br />
{<br />
short v[] = { 1, 2, 3, 4, 5, 6 };<br />
vector v1( v,v + sizeof( v ) / sizeof( v[0] ) );<br />
list l( v1.begin(), v1.end() );<br />
if( v1.size() == l.size() && equal( v1.begin(), v1.end(),<br />
l.begin() ) )<br />
cout
Monday, August 31, 2009<br />
Walk the dog.
hello world<br />
#include <br />
using namespace std;<br />
void main() {<br />
cout
Monday, August 31, 2009<br />
Who cares?
Why Program?<br />
• automate repetitive tasks<br />
• do new things / reach new possibilities<br />
• (but be careful)<br />
• empower yourself & others<br />
• get paid<br />
• for the love of the art, the act itself<br />
Monday, August 31, 2009
Homework<br />
• Read chapter 1<br />
• Skip 1.4, unless you are a Math/CS major<br />
• Enroll on blackboard.mines.edu<br />
• Read and understand the syllabus<br />
• https://csci261.mines.edu/csci261<br />
• http://inside.mines.edu/~khellman/static-cxx/<br />
• optional: watch Wargames<br />
Monday, August 31, 2009