Thread: I need your Help, structure in memory

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    6

    I need your Help, structure in memory

    Hello i'm a beginner at c programming and i need your help to write a program asking the user to enter the number of rows and columns and then generate the following structure in memory (if 3x3 is specified) each node will hold a number, i would be grateful if someone can help me out. i need pointers (ptrl(left) ptrr(right) ptrd(down) ptru(up)) and malloc, nodes start, curr, prev, in the code. thanks for reading

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,671
    You apparently missed this: Announcements - General Programming Boards

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    6
    oh sorry about that its not my homework its a question i'm doing and i dont know where to start

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Of course it's homework... nobody writes screwball code like that out of personal interest

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,763
    I'm curious as to what your previous "homework" question was like?

    > i dont know where to start
    I mean, you must have written some non-trivial (if small) programs by now, and have developed some strategies to solve such questions.

    At least to the point that you might make some kind of attempt at it.


    Here's something to read -> A development process
    It might help you break the problem down into some steps you can manage.


    It looks like a nice little end of semester question to see who's been paying attention in class, and doing their own assignments.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 04-25-2010, 10:57 AM
  2. free memory in structure
    By franziss in forum C++ Programming
    Replies: 22
    Last Post: 01-08-2007, 05:16 PM
  3. Structure Memory Allocation
    By skyglin in forum C Programming
    Replies: 4
    Last Post: 06-10-2003, 05:23 PM
  4. Memory Allocation for a Structure
    By vsriharsha in forum C Programming
    Replies: 0
    Last Post: 06-06-2003, 08:11 AM
  5. Allocating Memory for a Structure
    By surfxtc79 in forum C Programming
    Replies: 4
    Last Post: 06-05-2003, 11:40 AM