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: 15
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


Terkait
Thread Thread Starter Forum Replies Last Post
mohon bantuannya mas_bero Girls Talk 5 13th August 2013 10:20 AM
mohon bantuannya mas_bero Boys Talk 3 5th July 2013 09:39 AM
[Help] mohon bantuannya kijokotolol Misteri, Horror, Supranatural 0 22nd April 2012 06:12 PM
Mohon bantuannya mencekam13 Misteri, Horror, Supranatural 0 22nd April 2012 06:12 PM
Mohon bantuannya .. peramal123 Misteri, Horror, Supranatural 0 22nd April 2012 05:19 PM

 


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