Skip to content

Instantly share code, notes, and snippets.

View aldhinya's full-sized avatar
😂
I may be slow to respond.

Fadhilatur Rochman aldhinya

😂
I may be slow to respond.
View GitHub Profile

Script Shorting C++

Bu Tutuk - 14-05-2018

void delfront()
{
if (awal==NULL)
{
cout << "Kosong";
}
else if (awal->next==NULL)
{
hapus=awal;
awal=NULL;
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#define MAX 10
#define true 1
#define false 0
using namespace std;
#include <iostream>
using namespace std;
int main()
{
int npm;
char nama[50];
bool bad = false;
#include <iostream>
#include <conio.h>
#include <windows.h>
#define MAX 8
using namespace std;
typedef struct{
int data[MAX];
int awal;
#include <iostream>
#include <stdlib.h>
#include <windows.h>
using namespace std;
struct dataMahasiswa
{
char nama[50], kelas[50], npm[50];
};
#include <iostream>
using namespace std;
int main()
{
int nilai['n'];
int n;
int x;
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int data[100];
int i, n, temp;
package tsp;
import java.util.ArrayList;
public class TSP {
public ArrayList<String> performPermutations(String s) {
ArrayList<String> arrayList = new ArrayList<>();
if (s == null) {
return null;
/* program to implement fractional knapsack problem using greedy programming */
#include<iostream>
using namespace std;
int main()
{
int array[2][100], n, w, i, curw, terpakai[100], maxi = -1, harga = 0;
cout << "==============="<<endl;
cout << "KNAPSACK GREEDY"<<endl;
cout << "==============="<<endl;