Aula 02 Lab - Ambiente de trabalhoprofessor.ufabc.edu.br/.../pe-3q-2017/PE-aula02.pdf · Aula 02...

Preview:

Citation preview

1

Aula 02Lab - Ambiente de trabalho

MCTA028 – Programação Estruturada

Prof. Jesús P. Mena-Chalco

jesus.mena@ufabc.edu.br

3Q-2017

2

Plataforma de desenvolvimento (c9.io)

3

4

5

6

7

8

9

10

$ gcc hello­c­world.c 

$ ls ­ltotal 40­rw­rw­r­­ 1 ubuntu ubuntu   92 Aug 31 05:29 Makefile­rw­rw­r­­ 1 ubuntu ubuntu 1005 Aug 31 05:29 README.md­rwxr­xr­x 1 ubuntu ubuntu 8527 Sep 10 17:06 a.out*­rw­rw­r­­ 1 ubuntu ubuntu   84 Sep 10 17:02 hello­c­world.c­rwxr­xr­x 1 ubuntu ubuntu 8527 Sep 10 17:02 hello­c­world.c.o*­rw­rw­r­­ 1 ubuntu ubuntu   82 Aug 31 05:29 hello­cpp­world.cc

$ ./a.outHello World!

$ man ls$ man gcc

$ gcc hello­c­world.c ­o hello­c­world.exe$ ./hello­c­world.exe 

$ echo $?

11

$ mkdir aula01$ mv *.* aula01$ cd aula01

$ htop

12

Tipos de dados (tipos.c)

Size of char is      1 bytesSize of short is     2 bytesSize of int is       4 bytesSize of long is      8 bytesSize of float is     4 bytesSize of double is    8 bytesSize of long double is 16 bytes

$ uname ­aLinux xxxxxxxxx 4.2.0­c9 #1 SMP x86_64 x86_64 x86_64 GNU/Linux

13

Sobre as listas de exercícios / atividades

14

URI - Online

Registro obrigatório:

Crie uma conta no URI-Online:https://www.urionlinejudge.com.br

Faça seu cadastro no formulário:https://goo.gl/ERZdB1

15

16

17

18

19

20