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 4085146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:32:03+00:00 2026-05-20T18:32:03+00:00

My file contains the following code: test.asm ^^^^^^^^^^^^^^^^ !START: !LDA #97 !LDX #$A000 !STA,

  • 0

My file contains the following code:

test.asm

^^^^^^^^^^^^^^^^

!START:
!LDA #97
!LDX #$A000
!STA, X
!END

I store the above code in my program in a string called sourcecode.
Every Label (kind of a keyword for me here) begins with an ! mark.
Thus, START / LDA / LDX / STA / END are labels which i would like to store.
Now the contents of file may vary.

I would like to know which STL Container can i use to store my Keywords.
Mind you each keyword is to be stored in single element of that container.

If vector can solve my problem, can an example be shown?
My main aim is to use these labels/keywords to pass in functions to be interpreted
as Mnemonics (which i will define).

Also, would like to know how would i iterate if my vector is of type string: vector<string>

Thanks in advance.

  • 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-05-20T18:32:04+00:00Added an answer on May 20, 2026 at 6:32 pm

    6502 assembly – what fun!

    As tenfour says, a vector is good for compact and relatively immutable storage and access, but your usage over the lifetime of your app should guide your selection. (The good news is that if you use STL iterators, you should be able to switch container types with little impact on the rest of your code.)

    Here’s a couple pages to look at to help decide:

    http://www.cplusplus.com/reference/stl/

    http://en.wikipedia.org/wiki/Standard_Template_Library

    Have fun!

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

Sidebar

Related Questions

Okay, so I created a JavaScript file called test.js which contains the following code:
I'm using the following code which will generate a wav file which contains a
My test.php file contains the following information that is sends list of information. while($row
In android to display file contains i wrote following code BufferedReader myReader = null;
I have a test file that includes the following code. The page opens up
Probably problem with the php file which contains the following code: <?php mysql_connect(localhost,root,); mysql_select_db(deal);
Spent many hours and still can't figure that out. sampleData.json file contains the following
I am trying to compile Xuggler under windows. It's ivy.xml file contains the following
I have a file that contains the following in a csv file; country,region,city,postalCode,metroCode,areaCode I
I have a file which contains lines of data in the following format: a11

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.