This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('America/Sao_Paulo'); | |
define('DB_HOSTNAME', 'localhost'); | |
define('DB_USERNAME', 'root'); | |
define('DB_PASSWORD', null); | |
define('DB_DATABASE', 'ac_sistema'); | |
define('DB_PREFIX', 'ac'); | |
define('DB_CHARSET', 'UTF8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br" ng-app="helloWorld"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello, World! em AngularJS</title> | |
<script src="assets/js/angular.min.js"></script> | |
<script> | |
angular.module('helloWorld', []); | |
</script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body ng-controller="helloWorldController"> | |
<div> | |
{{showMessage}} | |
</div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('helloWorld', []); | |
angular.module('helloWorld').controller('helloWorldController', function($scope){ | |
$scope.showMessage = 'Hello, World!'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('helloWorld', []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br" ng-app="helloWorld"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello, World! em AngularJS</title> | |
<!--Import do Angular em arquivo Offline | |
Pode ser substituido pelo link da Google CDN--> | |
<script src="assets/js/angular.min.js"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (void) { | |
//Declaração da variável nome do tipo char (string, caractere) com limite de 20 caracteres | |
char nome[20]; | |
//Saudação ao usuário | |
printf("Ola! Insira seu nome, por fovor: \n"); | |
//Leitura do input do usuário |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (void) { | |
char nome[6]; | |
printf("Ola! Insira seu nome, por fovor: \n"); | |
scanf("%s", nome); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (void){ | |
char nome[20]; | |
printf("Ola! Insira seu nome, por fovor: \n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (void){ | |
//Função para exibir dados no C | |
printf("Hello, World!"); | |
//Toda função precisa retornar alguma coisa, do contrário teremos um erro na hora de compilar. | |
return 0; | |
} |