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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:51:48+00:00 2026-06-13T18:51:48+00:00

My code is already working, seen here: http://pastebin.com/mekKRQkG Right now, my functions work but

  • 0

My code is already working, seen here: http://pastebin.com/mekKRQkG

Right now, my functions work but utilizing information that I’ve declared globally, I guess, and I want to convert them so that they are in the format as seen on lines 11-15, but I’m unsure of how to convert them to do so. Simply put, I’m trying to convert my function of

"void add_county_election_file"

to be in the format of

"void add_county_election_file(const string, const vector &, const vector &, const vector &, const vector &)"

and I have no idea where to begin or how to even start.

Could someone please help me out and show me how I’d do this for the first function, so I can implement it across the board?

Thanks guys!

  • 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-13T18:51:49+00:00Added an answer on June 13, 2026 at 6:51 pm

    Your function declaration should look something like this:

    void add_county_election_file(const string, vector<int>&, vector<string>..);
    

    Make sure that your argument list for the vector template is correct(that’s the type you put between <>)

    Then match the implementation of you function to the declaration:

       void add_county_election_file(const string, vector<int>&, vector<string>..){...}
    

    Now call your function with apppropriate arguemtns in main:

    string s;
    vector<int> arg;
    vector<string> sv;
    void someFunction (s, arg, sv ...);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the code I'm working with. From other examples I've seen, this should
I'm working on a video codec for OMAP3430. I already have code written in
I already have code which lazy loads scripts on request. My issue now is
I'm now making unit-tests for already existing code. I faced the next problem: After
The following code already exists in one of the javascript files i am working
I've already seen this post PHP doesn't see mysql extension , but it didn't
How would I create a file in SSH with code already in it? Something
This is my php code (I already have a connection to the db): $result
I'm trying to implement webgl shadow mapping from an example code that already implements
This is similar to this question, except the code is already written. I have

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.