Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7772777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:57:20+00:00 2026-06-01T16:57:20+00:00

I need to do a home assignment in VC++, which uses ADT to do

  • 0

I need to do a home assignment in VC++, which uses ADT to do several operations on an integer list. For now, we’re not allowed to use classes, so I need to use struct.

I don’t quite understand how ADTs work, so I’m not sure where to start, because all tutorials on the internet use classes, which I don’t want to.

So are there any tutorials on the net that: 1. explain the concept of Abstract Data Types and 2. Provide an example of implementation (preferably in C++ and not using class, but struct instead).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:57:22+00:00Added an answer on June 1, 2026 at 4:57 pm

    I will give a try for an answer that is more what is my understanding.

    1. What is an abstract datatype?
      Always my first shot: Look at http://en.wikipedia.org/wiki/Abstract_data_type

    My “practical” understanding of this is: There is some idea of an object that is defined by the object, its variables (or data) and the operations that are defined on this object.
    For your case the object is a list of integers. The operations are something like insert a new integer, remove an integer, get the number of integers stored in the list and so on. When implementing this datatype you have to write this operations as functions. To provide this functions you will have to make up some structure to save the data to operate on.

    1. Provide an example of implementation.

    Well I won’t do your homework so I will do some pseudocode:

    struct ListElement {
       int value;
       type NextElement; //i leave the type to you
    };
    
    void insertBehind(ListElement &element, int newValue)//this is one way to do this
    {
      ListElement newElement(newValue); //create the new element (use new instead, don't want to "spoiler" the type to you)
      newElement.nextElement = element.nextElement; //set the next element of this new one
      element.NextElement = newElement; //set the new element
    }
    
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have an at-home project now that I'm working on Python/Django at
I'm learning C# and now I need to build a home project(just to learn
I need to make a machine on my home network use a static ip
I have menu with few unordered list items as shown below. Now I need
Using Your Ruby Gem(s) You will need to add /home/username/ruby/gems to the include path.
I need to make disable or inactive the home button of my android phone
I need a regular expression to parse a text The directory is /home/foo/bar/hello.txt. I
I need to make subgroups in the top navigation menu, like: Home -Group --Subgroup
File: /home/USER/DIR/a http://www.here.is.a.hyper.link.net/ /home/USER/DIR/b http://www.here.is.another.hyper.link.net/ Need to remove all the odd lines in this
I am porting a Windows application to OSX and need to get user's home,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.