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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
int i,k,temp; | |
int nim[]={1,5,0,2,8,1,4,9}; | |
for(i=0;i<=7;i++) | |
{ |
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 <iostream> | |
using namespace std; | |
int main(){ | |
int jumlaharray = 6; | |
int array[jumlaharray] = {5,2,1,6,8,2}; | |
int index, nilai; | |
//menampilkan array | |
for(int i=0;i<jumlaharray;i++){ |
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 <iostream> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <string> | |
#include <cstdlib> | |
using namespace std; | |
int search_some_character(){ | |
//Binary Search | |
cout<<"Mengganti Karakter 'a' menjadi 'A'\n\n"; |
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 <iostream> | |
using namespace std; | |
int main(){ | |
int angka = 90; | |
int *angkax; | |
angkax = &angka; //berisi alamat dari angka | |
cout<<"Nilai (Isi) dari variabel angka : "<<angka; | |
cout<<"\nAlamat Variabel : "<<&angka; //output alamat |
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
///buble sort | |
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char** argv) { | |
int number[5] = {5,4,2,1,4}; | |
int min = 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 <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char** argv) { | |
int i,j,n,loc,temp,min,a[30]; | |
cout<<"Enter the number of elements:"; | |
cin>>n; |
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 <cstdio> | |
#include <cstdlib> | |
void insertionSort(int arr[], int length) { | |
int i, j, tmp; | |
for (i = 1; i < length; i++) { | |
j = i; | |
while (j > 0 && arr[j - 1] > arr[j]) { | |
tmp = arr[j]; | |
arr[j] = arr[j - 1]; |
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<iostream> | |
using namespace std; | |
int main() | |
{ | |
int search(int [],int,int); | |
int n,i,a[100],e,res; | |
cout<<"How Many Elements:"; | |
cin>>n; |
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
JavaScript Object | |
////////// | |
let person = { | |
age : 24, | |
name : "Yusuf" | |
} | |
age, name = property | |
24, "Yusuf" = value |
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
@setup | |
$__container->servers([ | |
'staging' => 'user@ip_address', | |
'production' => ['user@ip_address -p 8288'], | |
]); | |
@endsetup | |
@setup | |
$repository = '[email protected]:username/awesome_project_ever.git'; | |
$releases_dir = '/var/www/html/app/awesome_project_ever/releases'; |
OlderNewer