Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,271 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,447 people online right now. Registration is fast and FREE... Join Now!




can you help me?

 
Reply to this topicStart new topic

can you help me?

lplushl
5 Nov, 2006 - 09:54 PM
Post #1

New D.I.C Head
*

Joined: 5 Nov, 2006
Posts: 3


My Contributions
can u convert sentence into hexadecimal numbers?? i dont know how
rolleyes.gif

This post has been edited by lplushl: 5 Nov, 2006 - 10:06 PM
User is offlineProfile CardPM
+Quote Post

NyeNye
RE: Can You Help Me?
5 Nov, 2006 - 10:09 PM
Post #2

D.I.C Head
**

Joined: 24 Sep, 2006
Posts: 248


My Contributions
huh...yes it its possible to convert a string input to a hexadecimal output

but we don't tolerate to their stuff...show some effort..

post your code and we will help you
User is offlineProfile CardPM
+Quote Post

Xing
RE: Can You Help Me?
6 Nov, 2006 - 12:27 AM
Post #3

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
One cheap way
CODE

char str[]="Xing";
    for(int i=0;i<4;i++)
    {
        cout<<hex<<static_cast<int>(str[i]);
    }


This post has been edited by Xing: 6 Nov, 2006 - 12:28 AM
User is offlineProfile CardPM
+Quote Post

lplushl
RE: Can You Help Me?
6 Nov, 2006 - 05:38 AM
Post #4

New D.I.C Head
*

Joined: 5 Nov, 2006
Posts: 3


My Contributions

QUOTE(NyeNye @ 5 Nov, 2006 - 11:09 PM) *

huh...yes it its possible to convert a string input to a hexadecimal output

but we don't tolerate to their stuff...show some effort..

post your code and we will help you


ok next time i will post it to everybody.i'm a student.1st year college student. wink2.gif


User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 07:56PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month