Sponsored Links


Results 1 to 4 of 4

Thread: CS410 Visual Programming Assignment#01 Solution & Discussion Fall 2011 28-10-2011

  1. #1
    Administrator
    Join Date
    Oct 2011
    Posts
    468

    Icon14 CS410 Visual Programming Assignment#01 Solution & Discussion Fall 2011 28-10-2011

    Sponsored Links1


    Q1 [Marks: 10]

    How can you define a pair of mutually referential structures? Consider the following code

    typedef struct {
    int afield;
    BPTR bpointer;
    } *APTR;

    Sponsored Links

    typedef struct {
    int bfield;
    APTR apointer;
    } *BPTR;
    But the compiler doesn't know about BPTR when it is used in the first structure declaration.


    Q2 [marks: 10]

    How can you declare a function that can return a pointer to a function of the same type? If you are building a state machine with one function for each state, each of which returns a pointer to the function for the next state.


    03009520262
    Rabeel Website

  2. #2
    ●๋η!мrα●๋
    Guest
    plzz iska solution dein

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    16
    It is required to make a list of students registered in Data Structures course. To achieve this functionality, develop a C++ program and use linked list to store student ids and names.
    Each node in the linked list will contain three items: student id, student name, pointer to next node.
    When the program starts, it should display the following menu:
    1- Enter student information
    2- Search student by ID
    3- Search student by Name
    4- Delete student information
    5- Print all students
    6- Quit
    Sample Run:
    1- Enter student information
    2- Search student by ID
    3- Search student by Name
    4- Delete student information
    5- Print all students
    6- Quit
    Enter your choice: 1 (Suppose user entered 1)
    (Now the details of Student will be entered)
    Student ID: bc080400001 (Suppose user entered bc080400001)
    Student Name: Ahmad (Suppose user entered Ahmad)
    (If user enters an ID that is already in the list, a message should be displayed “Already in the list.”)

    (Main menu will be displayed again)
    1- Enter student information
    2- Search student by ID
    3- Search student by Name
    4- Delete student information
    5- Print all students
    6- Quit
    Enter your choice: 2 (Suppose user entered 2)
    Student ID: bc080400001 (Suppose user entered bc080400001)
    (Now the details of Student will be displayed)
    Student ID: bc080400001
    Student Name: Ahmad
    (If user enters an ID that is not in the list, a message should be displayed “Record not found.”)

    (Main menu will be displayed again)
    1- Enter student information
    2- Search student by ID
    3- Search student by Name
    4- Delete student information
    5- Print all students
    6- Quit
    Enter your choice: 4 (Suppose user entered 4)
    (Now it will ask to enter ID to be deleted)
    Student ID: bc080400001 (Suppose user entered bc080400001)
    (Student record with this ID will be deleted.)

    (Main menu will be displayed again)
    1- Enter student information
    2- Search student by ID
    3- Search student by Name
    4- Delete student information
    5- Print all students
    6- Quit
    Enter your choice: 5 (Suppose user entered 5)
    (Now it will print all students’ information. Suppose there were three students in the list, so it will print: )
    Student ID Student Name
    ------------- ---------------------
    bc080400001 Ahmad
    bc080200010 Ali
    mc070400002 Hassan

    (Main menu will be displayed again)

  4. #4
    Junior Member
    Join Date
    Jul 2010
    Posts
    6
    Please someone post the solution of cs410 (visual Programming). Today is extended day....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-10-2014, 09:31 PM
  2. Replies: 0
    Last Post: 01-11-2013, 08:18 PM
  3. Replies: 0
    Last Post: 10-25-2011, 10:59 PM
  4. CS410 - Visual Programming GDB 19/01/2011 solution
    By Xpert in forum GDB Discussion
    Replies: 2
    Last Post: 01-28-2011, 01:56 PM
  5. Replies: 0
    Last Post: 12-29-2010, 04:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft