Username Password

Lost Password
View Thread
Explore Your Brain » Pemrograman » C/C++
convert text to hexa
Username
Password
Register FAQ Members List Today's Posts Search

Print Thread

26-06-2010 05:00 PM convert text to hexa
User Avatar

stef_zhang
Murid Akademi I


Posts: 19
Joined: 17.04.10
Location: medan
Age: 35
kk xyb, minta bantuan nya donk.. tolong di explore code buat konversi text ke hexa. dan sebaliknya.
misalkan :

diinput : explore
setelah jadi hexa : 6578706c6f7265

Thanks sebelumnya buat semua.
  Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explnorg_xybrain.r.rate_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Offline
28-06-2010 01:15 PM RE: convert text to hexa | Edited by bad_samt 28-06-2010 01:21 PM
User Avatar

bad_samt
Anbu


Posts: 270
Joined: 23.04.09
Location: Searcing........
cari aja or tanya om google aja bos..

tapi klo ga moa repot" ne cara ubah Text jadi Hexadesimal, tp ne Online
http://www.string-functions.com/string-hex.aspx

kalo bentuk software juga ada bos...
tp pada masih trial yg ane punya....
  Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explnorg_xybrain.r.rate_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Offline
28-06-2010 06:01 PM RE: convert text to hexa
User Avatar

stef_zhang
Murid Akademi I


Posts: 19
Joined: 17.04.10
Location: medan
Age: 35
bad_samt wrote:
cari aja or tanya om google aja bos..

tapi klo ga moa repot" ne cara ubah Text jadi Hexadesimal, tp ne Online
http://www.string-functions.com/string-hex.aspx

kalo bentuk software juga ada bos...
tp pada masih trial yg ane punya....



Thanks infonya.. sy juga pake link itu sebelum nya... jadi kali ini mau coding nya.. ok de... aye explore dulu... Smile
  Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explnorg_xybrain.r.rate_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Offline
12-07-2010 10:44 AM RE: convert text to hexa
User Avatar

EVA-00
HackAge


Posts: 2770
Joined: 21.05.08
Location: Wallahu a'lam
Age: 37
Untuk convert text ke hexa di C/C++ bisa pake fungsi itoa

contoh program :

Download source  Code
/* itoa example */
#include <stdio.h>
#include <stdlib.h>

int main ()
{
  int i;
  char buffer [33];
  printf ("Enter a number: ");
  scanf ("%d",&i);
  itoa (i,buffer,10);
  printf ("decimal: %s\n",buffer);
  itoa (i,buffer,16);
  printf ("hexadecimal: %s\n",buffer);
  itoa (i,buffer,2);
  printf ("binary: %s\n",buffer);
  return 0;
}




Output program diatas :

Enter a number: 1750
decimal: 1750
hexadecimal: 6d6
binary: 11011010110


Semoga membantu, sumber bisa di baca2 disini
Nabi Muhammad SAW bersabda :ā€¯ Barangsiapa Yang Mengamalkan Ilmu Yang Ia Ketahui Maka Allah Akan Memberikan Kepadanya Ilmu Yang Belum Ia Ketahuiā€¯ (HR. Imam Ahmad).

..::shn6 u!vJq Jnoh 3Joldx3 d33>I::..
  Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'explnorg_xybrain.r.rate_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Offline
Jump to Forum:
Forum powered by fusionBoard
Share this Thread
URL:
BBcode:
HTML:
Similar Threads
Thread Forum Replies Last Post
[ASK] Cara Menambahkan Color Select Text dan Color Background Text Explore CMS PHP-Fusion 3 13-11-2013 09:25
[ask] convert file drawing solidwork ke pdf??? Out Of Topic 3 05-09-2011 01:51
[ASK] gmn method bwt print text di JTextArea??? Java 3 29-12-2010 00:17
bagaimana cara Convert decimal ke biner ke okta dan k hexa sekaligus???? Java 2 26-08-2010 12:18
Convert partisi fat ke ntfs dari DOS Windows 4 04-12-2009 13:38
Copyright © 2007-2016