COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez

Slides:



Advertisements
Similar presentations
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Working Environment - - Linux - -.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
CSCI S-1 Section 3. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.
COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
1 CS 240 Programming in C and UNIX Lecturer: Bob Wilson Office: S Phone:
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Lecture 0 CIS 208 C Language Lab Wed. January 12, 2005.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
IST 210 Introduction to UNIX (AIX) Todd Bacastow IST 210: Organization of Data.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez
INTRODUCTION TO CSCE LAB BASIC OF COMPUTERS, C++, UNIX, AND HELLO WORLD.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
1 / 12 COP 3503 FALL 2012 SHAYAN JAVED Programming Fundamentals using Java 1.
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11.
CGS3460 Summer 2011 Programming Using C Andrei Todor.
ISAT/CS 250 login: jmu eid like harrisnl When you log into the lab machines using your jmu eid Your “home” directory is actually a directory on a server.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Object Oriented Programming COP3330 / CGS5409.  Compiling with g++  Using Makefiles  Debugging.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
1 CS101 Fall 2001 Lecture 1 In order to write a program, you must first telnet to your pegasus account and login either from a Rutgers computer in a lab,
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Precept I : Lab Environment, Unix, Bash, Emacs
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Class Projects and Environment
SEEM3460 Tutorial Unix Introduction.
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
UNIX The Basics Source:
Andy Wang Object Oriented Programming in C++ COP 3330
CGS3460 Summer 2011 Programming Using C
Assignment Preliminaries
Intro to UNIX System and Homework 1
C Programming Lecture Series
Introduction to UNIX UNIX developed at Bell Labs in 70s
Welcome to CSCI 230! Problem Solving using C
CSCE 206 Lab Structured Programming in C
Lab 00 Discussion Linux Basics
Andy Wang Object Oriented Programming in C++ COP 3330
Video Notes.
CSCE 206 Lab Structured Programming in C
Compile and run c files.
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez

LET’S BACKTRACK A BIT! Did you guys register for a CISE account? If not, do so soon! Why do we need an account? All homework projects are expected to work on the CISE Linux machines! So, if your program doesn’t run, “But it works on my laptop/computer” will not be an acceptable excuse!

SETTING UP YOUR PROGRAMMING ENVIRONMENT

SO HOW DO I ACCESS A COMPUTER TO TEST MY PROJECT? Multiple ways! (Once you have registered for an account) 1.You can always go to one of the CISE computer labs and login to your account there: You can do remote access to one of the servers.

QUICK POLL

CONNECTING TO A REMOTE TERMINAL Windows Putty is your best option Putty Mac OS From a terminal you can always do SSH. To do so: Open a Terminal Type: For example:

UPLOADING FILES TO MY ACCOUNT Windows WinSCP is your best option WinSCP Mac OS Any SFTP client will do Options: Cyberduck FileZilla

I’M IN A REMOTE TERMINAL… NOW WHAT? So you should see something to the effect of: The first word (thunder/storm) tells you which server thunder.cise.ufl.edu and storm.cise.ufl.edu are both available to you The number (22/25) is a “command number” and is pretty irrelevant What should I do next? thunder:22%storm:25%

RELEVANT COMMANDS A list of useful commands is here: CommandFunction man Provide manual for the command cd Change current directory/folder to lsList contents of current directory pwdPrint working directory mkdir Make a new directory with the name cp Copy file to location rm Remove/Delete the file with name mv Move/Rename file to location/name nanoOpen a file editor named nano(also known as pico) nano Open with nano cat Outputs the contents of file to the terminal

BY FAR THE COMMANDS YOU WILL USE THE MOST Compiling commandsFunction gcc.cCompile the C program file with name.c, use the generic output name a.out gcc.c –o.outCompile the C program file with name.c, use the output name.out We will discuss these two in more detail on Friday (gcc compiler)gcc compiler Now… what does.c looks like? (AKA what did I get myself into by taking this class?)

LET’S WRITE A SIMPLE PROGRAM! Notice: I’ll be using Notepad++ and pico/nano. You are free to use any IDE of your choosing, under two conditions: 1)You will have to figure out how to use them on your own (Neither me, nor Rahul the TA will be able to help you if you use an IDE we are not familiar with) 2)Your projects need to work correctly on the CISE servers using the compile lines we will provide.

THE HELLO WORLD PROGRAM #include int main(void) { printf("Hello World!"); return 0; }

THE EVEN BETTER “HELLO WORLD” PROGRAM #include int main(void) { printf("Hello World!\n"); return 0; }

POTENTIAL CONTENT FOR REST OF THE CLASS Other escaped characters (\n,\\,\”, \t, etc) Data types: char, int, float. Variable declarations. Formatted printfprintf