View
0
Download
0
Category
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 hellocworld.c
$ ls ltotal 40rwrwr 1 ubuntu ubuntu 92 Aug 31 05:29 Makefilerwrwr 1 ubuntu ubuntu 1005 Aug 31 05:29 README.mdrwxrxrx 1 ubuntu ubuntu 8527 Sep 10 17:06 a.out*rwrwr 1 ubuntu ubuntu 84 Sep 10 17:02 hellocworld.crwxrxrx 1 ubuntu ubuntu 8527 Sep 10 17:02 hellocworld.c.o*rwrwr 1 ubuntu ubuntu 82 Aug 31 05:29 hellocppworld.cc
$ ./a.outHello World!
$ man ls$ man gcc
$ gcc hellocworld.c o hellocworld.exe$ ./hellocworld.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.0c9 #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
Recommended