Program Menggunakan Binary Tree C++
Script Program
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
using namespace std;
/* A <span id="mvuhno2x61oe_1" class="mvuhno2x61oe">binary tree</span> node has data, pointer to left child
and a pointer to right child */
struct node
{
int data;
struct node* left;
struct node* right;
};
/* Prototypes for funtions needed...
Kamis, 31 Mei 2018
Rabu, 30 Mei 2018
Posted by Unknown
with No comments

FSM Game Survival
FSM Pseudocode
Void RunLogic(int * state)
{
switch( *state )
{
case 0: //Wander
Wander();
if(SeeEnemy() ) { *Attack}
break;
case 1: //Attack
Attack();
if( with() ) { *Range;*Melee;}
if( NoEnemy() ) { *Wander;}
if( Hide() ) { *Flee;}
if( EnemyDeath() ) { *Loot;}
if( PlayerLowHP()...
Senin, 28 Mei 2018
Posted by Unknown
with No comments
Program Antrian Kereta Api Menggunakan Queue C++
Script Program
#include<iostream>l#include<stdio.h>#include<conio.h>#include<stdlib.h>#include<ctype.h>using namespace std;//struct nodestruct Node{ int data; Node *next;};Node *head, *tail;//fungsivoid menu();void LinkedList();void penutup();void inisialisasi();void insertData();void removeData();void bersih();void tampil();//pemanggilan fungsi//fungsi...
Langganan:
Postingan (Atom)