#include <cstdlib>
#include <iostream>
using namespace std;
class Node{
//template <calss T>
friend class List;
friend ostream& operator<<(ostream&, const List&);
public:
Node(char& t, Node* p) : info(t), berikut(p){}
protected: (lebih…)
#include <cstdlib>
#include <iostream>
using namespace std;
class Node{
//template <calss T>
friend class List;
friend ostream& operator<<(ostream&, const List&);
public:
Node(char& t, Node* p) : info(t), berikut(p){}
protected: (lebih…)
#include <cstdlib>
#include <iostream>
using namespace std;
class Node{
friend class List;
friend ostream& operator<<(ostream&, const List&);
public:
Node(char& t, Node* p) : info(t), berikut(p){}
protected:
char info;
Node *berikut; (lebih…)
PROGRAM KALKULATOR SEDERHANA
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
int main(int argc, char *argv[])
{
int pilihan;
float a,b,hasil;
cout<<"Program Kalkulator Sederhana"<<endl;
cout<<"1. Perkalian"<<endl;
cout<<"2. Pembagian"<<endl;
cout<<"3. Perjumlahan"<<endl;
cout<<"4. Pengurangan"<<endl;
cout<<"masukkan pilihan anda : ";
cin>>pilihan;
cout<<endl; (lebih…)