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
#include <iostream>
using namespace std;
struct Barang {
int nilai;
Barang *next;
} *depan = NULL, *belakang = NULL, *bantu = NULL;
int main() {
#include <iostream>
using namespace std;
int main()
{
int npm;
char nama[50];
bool bad = false;
#include <iostream>
#include <stdlib.h>
#include <windows.h>
using namespace std;
struct dataMahasiswa
{
char nama[50], kelas[50], npm[50];
};
#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>
#include <conio.h>
#include <windows.h>
#define MAX 8
using namespace std;
typedef struct{
int data[MAX];
int awal;

Script Shorting C++

Bu Tutuk - 14-05-2018

#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;
/* 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;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package knapsack;
import java.util.*;
import java.io.*;
import java.lang.*;