Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dr. Sajib Datta Jan 16, 2013.  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.

Similar presentations


Presentation on theme: "Dr. Sajib Datta Jan 16, 2013.  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update."— Presentation transcript:

1 Dr. Sajib Datta CSE@UTA Jan 16, 2013

2  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update

3  For omega access, each student that needs to have access to it will need to contact the help desk and request it. The best way is to call them at 817-272-2208 and ask to have omega access added to your NetID account.  Visual Studio download information: ◦ http://www.uta.edu/oit/cs/software/microsoft/visu al-studio-2010/index.php

4  A Linux server  Get an account!  http://www.uta.edu/oit/cs/web/omega- web.php http://www.uta.edu/oit/cs/web/omega- web.php  Provides C, C++, Lisp, Prolog, Cobol, and Fortran language compilers  Connect using SSH http://www.uta.edu/oit/cs/files/sftp/ssh/index.php

5  Windows users: download SSH client from OIT  http://www.uta.edu/oit/cs/unix/ssh/Secure- Shell-Client.php http://www.uta.edu/oit/cs/unix/ssh/Secure- Shell-Client.php 

6

7  omega.uta.edu

8

9

10

11  Applications -> Utilities -> Terminal  Login: ◦ $ ssh your_netID@omega.uta.edu  Logout: ◦ $ logout

12

13  ls : displays the files in a specified directory ◦ [vxg4212@omega ~]$ ls  rm : delete a file ◦ [vxg4212@omega ~]$ rm file_name  cp : copy files (caution, will replace if file already exists) [vxg4212@omega ~]$ cp source_file destination_file

14  mv : rename files ◦ [vxg4212@omega ~]$ mv old_filename new_filename  [vxg4212@omega ~]$ mv old_filename directory/new_name

15  pwd -> print the current (working) directory  cd -> change directory  cd.. ->go up one level  mkdir -> make a new directory  rmdir -> remove a directory  Note: Commands can have options. Use man command_statement to get full details

16  vi editor  [vxg4212@omega ~]$ vi file_name.extension  Two modes: Command mode and Insert mode

17  Insert mode: entered text is inserted into the file  Hit i to get into insert mode  Hit Esc to get out of insert mode  Whole lot of options available in insert mode! http://www.cs.colostate.edu/helpdocs/vi.html

18  Local computer to a remote computer scp file_name user_name@server:/home/user_name/  Remote server to your local computer scp user_name@server:/home/user_name/file_name /home/local-user_name/file_name

19  gcc : compile a C program  vxg4212@omega ~]$ gcc -o my_out program_file.c  Run the compiled program ◦ vxg4212@omega ~]$ my_out

20 ◦ Variables, Statements, Operators, Expressions

21  Storing information - Variables  Statements - Declaration, Assignment, Function  Making decisions – Conditionals int num; num = 51; if (num > 25) printf(“a large class. \n”); else printf(“a small class. \n”);  Repeating certain tasks – Loops ◦ Print “CSE 1311003” 1000 times Variable declaration Assigning a value to the variable conditional Print function

22  A variable is a symbolic name used to represent some information – data  A variable is associated with a type, data storage location, its content which can be changed in running the program

23  C requires the programmer to specify the type of variable. Some examples are:  int – used for integers, ◦ A number with no fractional part ◦ Never with a decimal point ◦ 3, 14, -13, 7  double – used for floating point numbers ◦ A real number including numbers between the integers ◦ 0.5, 1.234  char – used for characters, e.g., ‘A’, ‘7’, ‘?’

24  Lowercase letters, uppercase letters, digits, and underscore  First character must be a letter or an underscore  Not key words

25  Declare a variable: ◦ int weight; ◦ int height; ◦ int weight, height;  Different variable types use different amounts of memory /* reports the amount of memory occupied by an int on this hardware */ printf("an int takes %d bytes of memory\n",sizeof(int));


Download ppt "Dr. Sajib Datta Jan 16, 2013.  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update."

Similar presentations


Ads by Google