The Notes of Sagi Arsyad

EveryMy Paint is Black, Don't ask me to draw Rainbow
See also: Other Geeks@INDC

News

ASP.NET

My Organization

Browse by Tags

All Tags » C++ (RSS)
C++ Compile Winsock Problem
this last one week I got problem compile C++ code from MSDN Library about winsock . the code : #include #include "winsock2.h" void main() { //---------------------- // Initialize Winsock WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2,2...
Posted: Aug 10 2008, 06:05 AM by sagi | with no comments
Filed under: ,
Algorithm : Insertion Sort
#include <iostream> using namespace std; void insertionsort(int *arr, int size) { int i, j, temp; for(i = 1; i < size ; i++) { j = i; while( j > 0 && *(arr+j-1) > *(arr+j) ) { temp = *(arr+j); *(arr+j) = *(arr+j-1); *(arr+j-1) ...
Posted: Oct 05 2007, 02:06 PM by sagi | with no comments
Filed under: ,
Algorithm : Bubble Sort
#include <iostream> using namespace std; void bubblesort(int *arr, int size) { int i, j, temp; for(i = 0 ; i < size ; i++) { for(j = i+1 ; j < size ; j++) { if(*(arr + i) > *(arr + j)) { temp = *(arr + i); *(arr + i) = *(arr + j); *(arr...
Posted: Oct 04 2007, 02:18 AM by sagi | with no comments
Filed under: ,
Back to Blogging @ INDC
ke mana saja sagi ? 3-4 bulan ini saya "murtad" ke dunia Open Source, bermain-main dengan PHP , Mysql, dan Lighttpd juga debian. satu hikmah yang saya dapat dari pengalaman tersebut : php, mysql, lighttpd semua dibangun dengan bahasa C dan C...
Posted: Oct 03 2007, 06:17 PM by sagi | with no comments
Filed under: , ,