CS 241 Section Week #1 January 26, 2011. 2 Topics This Section HW #1 SVN Review (…by the command line!) C Code Examples.

Slides:



Advertisements
Similar presentations
TortoiseSVN By Group 1 Team B. Installing TortoiseSVN.
Advertisements

 Please sit next to your partner.  If you don’t have a partner, please find one now.
CS1020 Week 3: 29th January 2015.
Version Control System (Sub)Version Control (SVN).
David Notkin Autumn 2009 CSE303 Lecture 22 Subversion is an open source version control system. Social Implications Friday version control system.
2/6/2008Prof. Hilfinger CS164 Lecture 71 Version Control Lecture 7.
Using subversion COMP 2400 Prof. Chris GauthierDickey.
Version Control Systems Phil Pratt-Szeliga Fall 2010.
Introduction to CVS 7/3/20151UMBC CMSC 341. Outline Introduction to Source Code Management What is CVS? CVS for Project Submission Basic commands Checkout,
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
1 Topics for this Lecture Software maintenance in general Source control systems (intro to svn)
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
Subversion. What is Subversion? A Version Control System A successor to CVS and SourceSafe Essentially gives you a tracked, shared file system.
Object-Oriented Software Engineering Using UNIX groups and Subversion Estimated Time: minutes “Unix is user-friendly. It's just very selective about.
Object-Oriented Software Engineering Using UNIX groups and CVS Estimated Time: minutes.
Source Code Control CSE 3902 Matt Boggus. Source code control options for CSE 3902 Must use source code control that is integrated with Visual Studio.
CSCB07 TUT3 TA: Andrey Dyblenko Website:
Drexel University Software Engineering Research Group Git for SE101 1.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
(Sub)Version Control. 2 Keep large teams working on the same code Back up your work so you don't lose it all Compare changes to previous versions Revert.
CSE 219 Computer Science III CVS
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
 Name: Santiago Bock   Telephone:  Office Number: 5106 Sennott Square  Office Hours: Tuesdays.
Version Control with SVN Images from TortoiseSVN documentation
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
12 CVS Mauro Jaskelioff (originally by Gail Hopkins)
Version Control System
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Version Control and SVN ECE 297. Why Do We Need Version Control?
1 CSE 303 Lecture 19 Version control and Subversion ( svn ) slides created by Marty Stepp
CS 241 Section Week #1. About Sections Each week: – We’ll spend additional time on topics that the instructors feel should be reviewed. – We’ll prepare.
CS 241 Discussion Section (02/02/2012). MP2 Overview  Task is simple  Reimplement malloc(), calloc(), realloc() and free()  A contest will be running.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
1 Subversion Kate Hedstrom April Version Control Software System for managing source files –For groups of people working on the same code –When.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Problem Solving With C++ SVN ( Version Control ) April 2016.
Source Control Dr. Scott Schaefer. Version Control Systems Allow for maintenance and archiving of multiple versions of code / other files Designed for.
Subversion (svn) Basics Department of Computer Science Kent State University Prof. Jonathan I. Maletic.
Source Code Control For CSE 3902 By: Matt Boggus.
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
ENEE150 Discussion 01 Section 0101 Adam Wang.
Git primer Landon Cox January 19, 2017.
Concurrent Versions System User guide for CS408
Discussion #11 11/21/16.
CVS : Add new file Team -6 October 28, 2004.
Git Practice walkthrough.
IST256 : Applications Programming for Information Systems
Source Control Dr. Scott Schaefer.
Discussion 11 Final Project / Git.
Subversion Reasons to use How it works Subversion important commands
Version Control overview
Version Control with Subversion (SVN)
CSE 303 Concepts and Tools for Software Development
Subversion.
Creating Programs on UNIX
slides borrowed and adapted from Alex Mariakis and CSE 390a
Compilers, Make and SubVersion
Multi-module programming in C
Subversion Basics Guide
A Short Intro to Go CS 240 – Fall 2018 Rec. 1.
Command line.
Prof. Hilfinger CS164 Lecture 4
Version Control with Git and GitHub
More Loops Topics Relational Operators Logical Operators for Loops.
CSCE 206 Lab Structured Programming in C
VERSION CONTROL SVN (SubVersioN)
Compile and run c files.
Presentation transcript:

CS 241 Section Week #1 January 26, 2011

2 Topics This Section HW #1 SVN Review (…by the command line!) C Code Examples

3 Piazza Work as a team (staff and students) to offer help Search for existing answer before asking question Improve the answer rather than following up

4 Homework #1 Easy?

5 Homework #1 void Problem15(){ int x;... if(x < 0){ printf("invalid value.\n"); exit; }

6 Homework #1 void Problem15(){ int x;... if(x < 0){ printf("invalid value.\n"); exit; }

7 Homework #1 Problem #19 long int clear_bit(long int value, long int flag){ }

8 Homework #1 Problem #20 long int is_equal(long int x, long int y){ }

9 svn Each week, there will be files we provide for us to use in section.

10 svn To create a local “working copy” of the SVN, you need to run an svn checkoout command: svn checkout cs241/NETID cs241 (Link on the course website for you to copy and paste)

11 svn Make sure your checkout worked: $ cd cs241 $ ls ds hw1 $ cd ds $ ls ds1 $ cd ds1 $ ls 1.c 2.c 3.c 4.c 5.c

12 svn You only need to checkout files once! From now on, you can get the latest changes from the server by running an svn update. svn up svn update

13 svn When you’ve got something working, you will want to commit the changes you made back to the server with an svn commit: svn ci -m "" svn commit -m "some message"

14 svn When you’ve got something working, you will want to commit the changes you made back to the server with an svn commit: svn ci -m "" svn commit -m "some message" We will grade your latest committed version of each MP!

15 svn Often, you will only need to modify the files we provide to you on the svn. However, you will occasionally need to add a new file to your svn with svn add: svn add FILENAME

16 svn Lets add a file, and verify we added it: cat "Hello World" >hello.txt svn add hello.txt (You should probably be in your ds1 directory for this.) svn ci -m "First SVN commit!"

17 svn What time did you make the submission? Did you make it in on time? svn log hello.txt r3866 | netid | :07: (Mon, 22 Aug 2011) | 1 line First SVN commit!

18 svn Oh no! Your latest changes breaks everything! svn revert hello.txt OR svn up –r ## hello.txt

19 Discussion Section Practice Five different files, each having code snippets similar to HW1. In your svn: ds/ds1/ 1.c, 2.c, 3.c, 4.c, 5.c To compile: gcc 1.c To run:./a.out