2 questions in C programming

This is a discussion on 2 questions in C programming within the C Programming forums, part of the General Programming Boards category; hello everyone, I'm tring to write 2 DIFFRENT programs in C Language and i hope someone can help me. I ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Lightbulb 2 questions in C programming

    hello everyone,

    I'm tring to write 2 DIFFRENT programs in C Language and i hope someone can help me.

    I - I want a C program that asks the "user" to input memory address (in HEX), I want the program to display (print to the screen) the content\s of the given address in HEX, ASCII and binary.


    II - Another C program. that will ask the user to input a string, and then, the program will run on all memory of the computer. for all memory cells that has the same string written in them, the program will print the address of the memory cells (not the value inside the cell). I need to print the address in: HEX and ASCII.

    any help would be appreciated.

    Thanks in advance!
    Last edited by Flow-Style; 07-06-2010 at 11:46 AM.

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Cool! Another cheater!

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    Ah forget it - it's just another lame 1-posting driveby looking for free answers wherever they may come from.
    2 questions in C programming - Dev Shed

    Just drop the course already, you'll never make it.
    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.

  5. #5
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    230

  6. #6
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,831
    Besides the fact this is a homework/troll question... I wonder how one can read memory these days. I suspect that most of a PC's memory is outside of the executable's legal view. Not like the good ol' days where you could "peek" wherever you wanted in RAM.

    But then it becomes a non-C problem.

  7. #7
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    Wow.

  8. #8
    Registered User
    Join Date
    Jul 2010
    Posts
    55
    bye.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. malloc problem
    By Tool in forum C Programming
    Replies: 23
    Last Post: 03-12-2010, 09:54 AM
  2. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  3. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

Tags for this Thread


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