Jumat, 01 Juni 2018

Tugas Akhir Pertemuan 13 QUEUE

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 13.cpp #include<iostream> #include<conio.h> #include<stdlib.h> using namespace std; typedef struct node *simpul; struct node {     char isi;     simpul next;    }; //Nama         : Muhammad Zuhri //Nim   ...

Tugas Akhir Pertemuan 12 STACK (Lanjut)

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 12.cpp #include<iostream> #include<conio.h> using namespace std; main() {  int i,j,len,flag=1;  char a[20];  cout<<"Masukkan Kalimat : ";  cin.getline(a,20);  for(len=0;a[len]!='\0';++len);  for(i=0,j=len-1;i<len/2;++i,--j)  {   if(a[j]!=a[i])  ...

Tugas Akhir Pertemuan 11 STACK

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 11.cpp #include<stdio.h> #include<conio.h> int MAXSTACK; typedef int itemtype; typedef struct {  itemtype item[300]; int count; }stack; void initializestack(stack *s) {  s->count = 0; } int empty(stack *s) {  return (s->count == 0); } int full(stack *s) {  return...

Tugas Akhir Pertemuan 10 LINKED LIST

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 10.cpp #include<iostream> #include<cstdlib> using namespace std; typedef struct node *simpul; struct node {     char isi;     simpul next; }; //prototype functions void sisipDepan (simpul &l, char elemen); void sisipBelakang(simpul &l, char elemen); void...

Tugas Akhir Pertemuan 9 SORTING (Lanjut 2)

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 9.cpp #include<stdio.h> #include<stdlib.h> #include<string.h> #include<iostream> using namespace std; int sort_function(const void *a, const void *b); char list[8][9]={"aku","suka","sama","kamu","dari","dulu","sampai","sekarang"}; int main(void) {  int x,y;  cout<<"Nama   ...

Tugas Akhir Pertemuan 8 SORTING (Lanjut 1)

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 8.cpp #include <iostream> #include <stdio.h> #include <conio.h> #include <string.h> #include <iomanip> #include <windows.h> using namespace std; main () {                 char nama[40];                ...

Tugas Akhir Pertemuan 7 SORTING

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 7.cpp #include <iostream> #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> using namespace std; void MergeSort (int low, int high); void Merge (int, int, int); int A[50]; int main() {     int i, elemen;     cout<<"Berapa...

Tugas Akhir Pertemuan 6 SEARCHING

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 6.cpp #include <iostream> #include <conio.h> using namespace std; main() {        char nama[40];        int nim;        bool ketemu;        int posisi[25];       ...

Tugas Akhir Pertemuan 5 FUNCTION

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 5.cpp #include <iostream> #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> using namespace std; int hitung (const char *); main() {     char string[80];     system ("COLOR 09");     cout<<"===========================PROGRAM...

Tugas Akhir Pertemuan 4 POINTER

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 4.cpp #include <iostream> #include <conio.h> #include <windows.h> using namespace std; void  DisplayNumbers(char *Nbr[], int r, int c); int main() {  system("COLOR F9");     char number[2][10] = { { 'U', 'N', 'I', 'V', 'E', 'R', 'S', 'I', 'T', 'A' },                         ...

Tugas Akhir Pertemuan 3 STRUCTURE

//Nama     : Muhammad Zuhri //NIM      : 2016140614 //Kelas : 04TPLP011 //Tugas Akhir Struktur Data Pertemuan 3.cpp #include <iostream> #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> using namespace std; struct Tinggal {     char Jalan [50];     char Kota [15];     char Kode_Pos [5]; }; struct Tanggal {    ...