IBC chat

ShoutMix chat widget
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

C++....!!!!!

View previous topic View next topic Go down

C++....!!!!!

Post  g34rboxxx on Mon Oct 19, 2009 2:12 pm

Alo just share aja

Code:

#include <stdio.h>
#include <stdlib.h>

char *binString(int value);

void main()

{
char value[8];
int v;

printf("Masukkan sebuah Nilai,0 to 32000:");
gets(value);
v=atoi(value);

printf("Nilai desimalnya adalah %i\n",v);
printf("Nilai hexadesimalnya adalah %4X\n",v);
printf("Nilai Binarynya adalah %s\n",binString(v));
}

  char *binString(int value)
  {
    static char bin [17];
    int index;

    for(index=0;index<16;index++)
    {
    if(value & 0x8000)
    bin[index]='1';
    else
    bin[index]='0';
    value=value<<1;
    }
    bin[16]=0x00;
    return(bin);
    }

Silahkan di compile sendiri.....dengan lcc juga oke....or C.




gearboxxx

g34rboxxx
Admin

Posts : 250
Join date : 2009-10-19
Age : 40
Location : Tebak hayooo

View user profile

Back to top Go down

mw tny dunk ??

Post  Shidiq on Thu Oct 22, 2009 10:53 am

oiii ... siapa aja ... plis jwb yak ... hhe ...

klo factorial ntu trmasuk k bruteforce gag yak ?? No No No

Shidiq

Posts : 1
Join date : 2009-10-17

View user profile

Back to top Go down

Re: C++....!!!!!

Post  g34rboxxx on Tue Oct 27, 2009 3:27 pm

Yups bener....kata om google baca ....Moga membantu......
disini

gearboxxx lol! lol! lol!

g34rboxxx
Admin

Posts : 250
Join date : 2009-10-19
Age : 40
Location : Tebak hayooo

View user profile

Back to top Go down

Re: C++....!!!!!

Post  sinax89 on Tue Oct 27, 2009 10:40 pm

Shidiq wrote:oiii ... siapa aja ... plis jwb yak ... hhe ...

klo factorial ntu trmasuk k bruteforce gag yak ?? No No No



lah emg yang kemarin w kasih salah diq ???


Laughing afro

sinax89
Admin

Posts : 72
Join date : 2009-10-13
Age : 27
Location : Bekasi

View user profile http://ibc-forum.forumc.biz

Back to top Go down

Re: C++....!!!!!

Post  vailo on Tue Oct 27, 2009 11:43 pm

sinax89 wrote:
lah emg yang kemarin w kasih salah diq ???

yang dikasi tau gak salah, yang ngase tau nya kali yang salah geek afro lol!

vailo

Posts : 137
Join date : 2009-10-18

View user profile

Back to top Go down

Re: C++....!!!!!

Post  Sponsored content Today at 11:16 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum