Skip to content

Instantly share code, notes, and snippets.

View rmsubekti's full-sized avatar

Rahmat Subekti rmsubekti

View GitHub Profile
@rmsubekti
rmsubekti / Program.cs
Created September 29, 2016 16:04
Program Edit, Hapus, dan Cari di C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace relearn
{
class Program
{
#include <iostream>
int main(int argc, char const *argv[]) {
int arr[6] = {2,0,10,5,70,16},
max,
min,
jumlah = sizeof(arr)/sizeof(arr[0]);
std::cout << "Data yang akan di sorting : " << std::endl;
for (int i = 0; i < jumlah; i++) {
# include <iostream>
int main(int argc, char const *argv[]) {
int arr[6]={5,2,10,50,70,60},
swap,
jumlah = sizeof(arr)/sizeof(arr[0]);
std::cout << "Data yang akan diurutkan : " << std::endl;
for (int i = 0; i < jumlah; i++) {
std::cout << "arr["<< i <<"] = "<< arr[i] << std::endl;
@rmsubekti
rmsubekti / cariNama.cpp
Last active November 27, 2016 11:15
Mencari nama pada daftar nama
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;
//11.12.5800
int main() {
//Deklarasi variabel
string nama[5], cari;
int jumlah = sizeof(nama) / sizeof(nama[5]), ketemu = 0;
@rmsubekti
rmsubekti / hurufDiNama.cpp
Last active November 27, 2016 11:16
Mencari sebuah huruf pada sebuah nama
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;
//11.12.5800
int main() {
//Deklarasi variabel
char nama[20], huruf;
int jumlah = sizeof(nama) / sizeof(nama[20]), posisi = 0, i = 0;
@rmsubekti
rmsubekti / HitungNilai.cpp
Created December 5, 2016 11:37
menghitug nilai akhir
#include <iostream>
#include <conio.h>
#include <string>
using namespace std;
struct Nilai {
double tugas;
double kuis;
double mid;
double uas;
@rmsubekti
rmsubekti / hitungGajiBulanan.cpp
Created December 5, 2016 11:50
menghitung gaji karyawan
#include <iostream>
#include <conio.h>
#include <stdlib.h>
#include <string>
using namespace std;
struct Pegawai
{
char nama[40];
char nip[12];
#include <iostream>
#include <stdlib.h>//system()
#include <conio.h>//getch()
#define MAX 20 //maksimum data queue
using namespace std;
//Deklarasi struct antrian
struct queue {
int head, tail, data[MAX];
}Q;
@rmsubekti
rmsubekti / AnimasiStack.cpp
Last active December 14, 2016 14:38
Animasi push dan pop pada stack
/**
* Rahmat Subekti
* 11.12.5800
*/
#include <iostream>
#include <windows.h>
#include <conio.h>
//#include <dos.h>
//#include <stdlib.h>
//#include <cstdlib>
@rmsubekti
rmsubekti / .travis.yml
Last active October 8, 2017 00:39
Automatic deploy Jekyll Site to firebase hosting
language: node_js
node_js: '4.0'
before_install:
- rvm install 2.1
- rvm use 2.1
- . $HOME/.nvm/nvm.sh && nvm install 6.1 && nvm use 6.1
- gem install bundler
- bundle check || bundle install