Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
JagoVB JagoVB is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 508
Rep Power: 14
JagoVB mempunyai hidup yang Normal
Default All mohon bantuannya ya

All mohon bantuannya untuk memperpendek coding saya ini ya



saya menggunakan dev c++



#include

#include

#include

#include

#include



void clrscr(void){

COORD coordScreen = { 0, 0 }; // sudut kiri atas

DWORD cCharsWritten;

DWORD dwConSize;

HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);

CONSOLE_SCREEN_BUFFER_INFO csbi;



GetConsoleScreenBufferInfo(hCon, &csbi);

dwConSize = csbi.dwSize.X * csbi.dwSize.Y;

// isi dg spasi

FillConsoleOutputCharacter(hCon, TEXT(' '), dwConSize, coordScreen, &cCharsWritten);

GetConsoleScreenBufferInfo(hCon, &csbi);

FillConsoleOutputAttribute(hCon, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten);

// cursor sudut kiri atas

SetConsoleCursorPosition(hCon, coordScreen);

}



int acakdata(int jml,int x[101]){

int i;



srand((unsigned)time(NULL));



for(i=0;i100 || jml

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 06:09 PM.


no new posts