Results 1 to 5 of 5

Thread: Program Crash HOW TO get user input and convert to hexadecimal

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program Crash HOW TO get user input and convert to hexadecimal

    What kind of input do you expect? Do you wish to convert each character to it's number representation or do you wish to read a number and display that in hexadecimal format?

    I'm pretty sure your code doesn't do what you want it to.

    Qt Code:
    1. QString hex[6]=NULL;
    To copy to clipboard, switch view to plain text mode 
    This is an array of 6 QStrings. You can't initialize it to NULL.
    Last edited by franz; 23rd July 2009 at 21:34.

  2. The following user says thank you to franz for this useful post:

    hbtdtg (24th July 2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.