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

  • SEARCH
  • Home
  • 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 7809133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:19:55+00:00 2026-06-02T03:19:55+00:00

So starting to learn C++. I am a pretty decent (not great) Java Programmer

  • 0

So starting to learn C++. I am a pretty decent (not great) Java Programmer and I went to the C++ reference site, but my Partner and I still can’t figure out what

list<int> & testSort(istream & idata, istream & sdata)

means

We got this far
the list object is of type int
testSort is our class

I’m having trouble with the & symbols and the istream data type.

Also, if you can explain what the vector data type is all about that would be appreciated

  • 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-02T03:19:56+00:00Added an answer on June 2, 2026 at 3:19 am

    Well, here’s some stuff to start with:

    C++ Reference: This will get you started if you need to look up a standard class type.

    C++ FAQ: This will help you if you get REALLY lost. Most of it is edge cases, but some is best practice.

    And you already found here, which is possibly the best of all for weird cases.

    But as for your specific question, remember that in C++ you don’t need to have your methods in a class. There are “free functions” that are like methods, but don’t belong to any class. So testSort isn’t a class, or a method of a class, but a stand-alone function, much like a static method on a static class in Java.

    Also, the list<> class is more like a linked list, rather than the List<> or ArrayList types of Java. The vector<> class is what you want for an array-like class in C++.

    As for the & symbol, it means a reference, which you should look up in some basic C++ guides for an explanation of value types vs pointers vs references.

    The istream types are streams, which I hope you are familiar with from Java. The C++ reference above has more on those in the “IOStream Library” section.

    Good luck, and welcome to C/C++!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting to learn JSP (and I'm pretty new to Java in general),
I'm just starting to learn javascript, so this is likely a pretty simple question.
I am just starting learn SQL at work, but I am having trouble with
I'm starting to learn Ruby. I read that arguments where passed by reference to
I'm starting to learn Linq (and loving it by the way). But I'm struggling
trying to do something pretty obvious really but its kinda not making any sense
I'm starting to learn socket.io and node.js I'm trying to do some pretty basic
I apologize for such a beginner question, but I'm stuck. I'm starting learn web
Just starting to learn scala.. I can't seem to figure out how to compile
Just starting to learn the Java side of things, sorry if this is obvious.

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.