a simple question (Noob)

This is a discussion on a simple question (Noob) within the C++ Programming forums, part of the General Programming Boards category; I have this array: uint8_t *datapointer On this array I have 4 useless bytes that I don't need (just skip ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    9

    a simple question (Noob)

    I have this array: uint8_t *datapointer

    On this array I have 4 useless bytes that I don't need (just skip them)
    After that, I have a string (terminated by 0), I need to print it out.
    after that, another 4 useless bytes.
    and after that, an int that I need to print too...

    how do I that?
    Thanks

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    WOW... talk about impatient!

    Stop and give this some thought... really, you can figure this out on your own... it's painfully easy.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,496
    Same Q at the end of this thread.
    printing bytes from memory (NOOB question)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question with programming
    By eihn in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2010, 05:09 PM
  2. Simple pointer question but i'm a noob
    By tesla in forum C++ Programming
    Replies: 2
    Last Post: 09-20-2009, 02:12 AM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 08:46 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. simple noob question
    By NiVaG in forum Linux Programming
    Replies: 5
    Last Post: 09-28-2004, 06:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21