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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:46:24+00:00 2026-05-28T16:46:24+00:00

I have made an array that take an input say 12345 and splits it

  • 0

I have made an array that take an input say “12345” and splits it down into the following

0 – 1
1 – 2
2 – 3
3 – 4
4 – 5

I then shuffle these numbers up a little to get

0 – 5
1 – 2
2 – 3
3 – 4
4 – 1

Once this is done i want to return the take this array and create an int of the new order , so the output i want is “52341”

I though i had solved this up I an the following error when I run my code ‘Input string was not in a correct format.’

So here is my code and can anyone help?

C#

string result = number[i].ToString();
var intList = result.Select(digit => Int64.Parse(digit.ToString()));
Int64[] Circle = intList.ToArray();

int order = Circle.Length;
int check = 0;
while (check < order)
{
    numholder = Circle[0];
    Array.Copy(Circle, 1, Circle, 0, Circle.Length - 1);

    Circle[order - 1] = numholder;
    //string p = Circle.ToString();
    //string p = Circle.ToString();
    Int64 h = Int64.Parse(Circle.ToString());
  • 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-28T16:46:26+00:00Added an answer on May 28, 2026 at 4:46 pm

    I think your problem is in this line:

    Int64 h = Int64.Parse(Circle.ToString());
    

    This is because Circle.ToString() returns Int64[], and this isn’t the correct Int64

    I think you should use this line with String.Join:

    Int64 h = Int64.Parse(String.Join("", Circle));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an app that gets an array of addresses from a web
I have an array that I want on multiple pages, so I made it
I have an array that's made up of data returned by a SQL query:
I have got an array that consists of strings. I have made a function
I have a 2D array that I have split up into several 1D arrays
I have a 2d array grid made as int GRID[10][20]; What I want to
I made an anagram machine and I have an array of positive matches. The
Let's say I have this $(document).ready(function() { var array = $.makeArray($('p')); $(array).appendTo(document.body); }); });
I have made a little app for signing up for an event. User input
I've made a function that processes an array of objects, process(Object[]). It works on

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.