This file contains hidden or 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
/** | |
* Singly Circular Linked List with 2 directions of addition and deletion | |
* | |
* Created By : teramuza (@tera.ajaa) 16/12/19 | |
* Lang : id-ID | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains hidden or 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 <iostream> | |
#define MAX 10 | |
using namespace std; | |
struct Queue { | |
int front, rear, counter, data[MAX]; | |
} Antrian; | |
void init() { | |
Antrian.rear = -1; |
This file contains hidden or 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 <iostream> | |
#define MAX 10 | |
using namespace std; | |
struct Stack { | |
int top, data[MAX]; | |
} Tumpukan; | |
void init() { | |
Tumpukan.top = -1; |
This file contains hidden or 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
const AppTabNavigator = createBottomTabNavigator({ | |
home : { | |
screen : Home, | |
navigationOptions :{ | |
title : 'Beranda', | |
} | |
}, | |
favorite : { | |
screen : Favorite, | |
navigationOptions :{ |
This file contains hidden or 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 <iostream> | |
#include <cstdio> | |
#include <cctype> | |
using namespace std; | |
struct SiswaAdapter{ | |
char Name[50]; | |
char Addr[100]; | |
char gender; |
This file contains hidden or 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 | |
class database | |
{ | |
var $dbhost = 'localhost'; | |
var $dbuser = 'raja'; | |
var $dbpass = 'min1011'; | |
var $dbname = 'db_oop1'; |
This file contains hidden or 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 | |
function update(){ | |
$data['title'] = "Update Artikel"; | |
$data['session_user'] = $this->session_user; | |
if(empty($this->uri->segment('3'))){ redirect('articles');} | |
$id = $this->uri->segment('3'); | |
$data['articles'] = $this->articlesModel->getArticleWhere($id); | |
$this->load->library('upload'); |
This file contains hidden or 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 | |
class Articles extends CI_Controller { | |
var $session_user; | |
function __construct() { | |
parent::__construct(); | |
Utils::no_cache(); | |
if (!$this->session->userdata('logged_in')) { |
NewerOlder