| 17 Desember 2013 | 2 Comments |

Modul Praktikum Pemrograman C++

Tags: , , , , , , , , ,

Category: Kuliah, Pemrograman

cppUntuk mahasiswa STMIK Palangkaraya yang mengambil matakuliah Pemrograman C++ program studi Sistem Informasi silahkan download file modul praktikum di sini.

Silahkan dipelajari dan dikembangkan lebih lanjut 🙂



Comments (2)

Trackback URL | Comments RSS Feed

  1. C1157201014-A berkata:
     
    
     #include "iostream.h";
    #include "conio.h";
    
    int x,y;
    char data;
    
    void tampil();
    void masuk();
    
    void masuk()
    {
    	cout << "Masukan Data : ";cin >> data;
    	tampil();
    }
    
    
    void tampil()
    {
    	int x, y, data[7] ;
    	cout << "No. Isi Histogram \n";
    	for (x=0; x<7; x++)
    	{
    		cout << " " << x+1 << " " << data[x];
    		gotoxy(9, x+2);
    		for (y=1; y<=data[x]; y++)
    		{
    			cout << "*";
    		}
    		cout << endl;
    	}
    
    }
    
    
    main() {masuk();}
    
    
  2. C1157201007-A berkata:
     #include "iostream.h";
    #include "conio.h";
    
    int x,y;
    char angka;
    
    void input();
    void output();
    
    void input()
    {
    	cout << "Masukan Data : ";cin >> angka;
    	output();
    }
    
    
    void output()
    {
    	int x, y, data[7] ;
    	cout << "No. Isi Histogram \n";
    	for (x=0; x<7; x++)
    	{
    		cout << " " << x+1 << " " << data[x];
    		gotoxy(9, x+2);
    		for (y=1; y<=data[x]; y++)
    		{
    			cout << "*";
    		}
    		cout << endl;
    	}
    
    }
    
    main() {input();}
    
    

Leave a Reply