Text sorting/align/spacing algorithm needed
I don't know how to call this, but is there an algorithm for this kind of sort? Going from input to output.
Input:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Output:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Here is all I wrote, I think honestly this is the peak of my skill... I would appreciate if someone could maybe link a tutorial that is somewhat related to my problem.
int highestnr = 0;
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
for (int i = 0; i < lines.Length; i++)
{
string parts = lines[i].Split(seperators, StringSplitOptions.RemoveEmptyEntries);
for (int k = 0; k < parts.Length; k++)
{
if (parts[k].Length > highestnr)
{
highestnr = parts[k].Length;
}
}
}
using (var write = File.CreateText(Results))
{
foreach(var something in lines)
{
string parts = something.Split(seperators, StringSplitOptions.RemoveEmptyEntries);
StringBuilder NewLine = new StringBuilder();
for (int i = 0; i < parts.Length; i++)
{
NewLine.Append(' ', highestnr);
NewLine.Append(parts[i]);
}
write.WriteLine(NewLine);
}
}
I know that the code gives spaces only according to the highest word count instead of seperating by columns, that is out of my scope...
c# string algorithm
|
show 2 more comments
I don't know how to call this, but is there an algorithm for this kind of sort? Going from input to output.
Input:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Output:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Here is all I wrote, I think honestly this is the peak of my skill... I would appreciate if someone could maybe link a tutorial that is somewhat related to my problem.
int highestnr = 0;
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
for (int i = 0; i < lines.Length; i++)
{
string parts = lines[i].Split(seperators, StringSplitOptions.RemoveEmptyEntries);
for (int k = 0; k < parts.Length; k++)
{
if (parts[k].Length > highestnr)
{
highestnr = parts[k].Length;
}
}
}
using (var write = File.CreateText(Results))
{
foreach(var something in lines)
{
string parts = something.Split(seperators, StringSplitOptions.RemoveEmptyEntries);
StringBuilder NewLine = new StringBuilder();
for (int i = 0; i < parts.Length; i++)
{
NewLine.Append(' ', highestnr);
NewLine.Append(parts[i]);
}
write.WriteLine(NewLine);
}
}
I know that the code gives spaces only according to the highest word count instead of seperating by columns, that is out of my scope...
c# string algorithm
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameterSelectandGroupBy.
– NetMage
Nov 27 '18 at 21:45
Without using LINQ, my general approach is toString.Splityour source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from0to max). Now you just process the words list again, usingPadRightto reformat each word in each line to the max length you found for that position, and thenString.Jointhe words back into sentences.
– NetMage
Nov 27 '18 at 21:51
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
Looking at your sample code, changehighestnrto be an array on maxparts.Length(it is would be poor to just pick a number like 1000, but OTOH dynamically growing aListis a bit tricky), then indexhighestnrbykwhen finding the max per position. Then indexhighestnrbyiwhen outputting, and swap the output ofparts[i]and the spaces (or useString.PadRight).
– NetMage
Nov 27 '18 at 21:56
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26
|
show 2 more comments
I don't know how to call this, but is there an algorithm for this kind of sort? Going from input to output.
Input:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Output:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Here is all I wrote, I think honestly this is the peak of my skill... I would appreciate if someone could maybe link a tutorial that is somewhat related to my problem.
int highestnr = 0;
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
for (int i = 0; i < lines.Length; i++)
{
string parts = lines[i].Split(seperators, StringSplitOptions.RemoveEmptyEntries);
for (int k = 0; k < parts.Length; k++)
{
if (parts[k].Length > highestnr)
{
highestnr = parts[k].Length;
}
}
}
using (var write = File.CreateText(Results))
{
foreach(var something in lines)
{
string parts = something.Split(seperators, StringSplitOptions.RemoveEmptyEntries);
StringBuilder NewLine = new StringBuilder();
for (int i = 0; i < parts.Length; i++)
{
NewLine.Append(' ', highestnr);
NewLine.Append(parts[i]);
}
write.WriteLine(NewLine);
}
}
I know that the code gives spaces only according to the highest word count instead of seperating by columns, that is out of my scope...
c# string algorithm
I don't know how to call this, but is there an algorithm for this kind of sort? Going from input to output.
Input:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Output:
Article evident arrived express highest men
did boy. Mistress sensible entirely am so.
Quick can manor smart money hopes worth too.
Comfort produce husband boy her had hearing.
Law others theirs passed but wishes. You day
real less till dear read. Considered use dispatched
Here is all I wrote, I think honestly this is the peak of my skill... I would appreciate if someone could maybe link a tutorial that is somewhat related to my problem.
int highestnr = 0;
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
for (int i = 0; i < lines.Length; i++)
{
string parts = lines[i].Split(seperators, StringSplitOptions.RemoveEmptyEntries);
for (int k = 0; k < parts.Length; k++)
{
if (parts[k].Length > highestnr)
{
highestnr = parts[k].Length;
}
}
}
using (var write = File.CreateText(Results))
{
foreach(var something in lines)
{
string parts = something.Split(seperators, StringSplitOptions.RemoveEmptyEntries);
StringBuilder NewLine = new StringBuilder();
for (int i = 0; i < parts.Length; i++)
{
NewLine.Append(' ', highestnr);
NewLine.Append(parts[i]);
}
write.WriteLine(NewLine);
}
}
I know that the code gives spaces only according to the highest word count instead of seperating by columns, that is out of my scope...
c# string algorithm
c# string algorithm
edited Nov 27 '18 at 21:52
S. Kiz
asked Nov 27 '18 at 20:46
S. KizS. Kiz
162
162
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameterSelectandGroupBy.
– NetMage
Nov 27 '18 at 21:45
Without using LINQ, my general approach is toString.Splityour source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from0to max). Now you just process the words list again, usingPadRightto reformat each word in each line to the max length you found for that position, and thenString.Jointhe words back into sentences.
– NetMage
Nov 27 '18 at 21:51
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
Looking at your sample code, changehighestnrto be an array on maxparts.Length(it is would be poor to just pick a number like 1000, but OTOH dynamically growing aListis a bit tricky), then indexhighestnrbykwhen finding the max per position. Then indexhighestnrbyiwhen outputting, and swap the output ofparts[i]and the spaces (or useString.PadRight).
– NetMage
Nov 27 '18 at 21:56
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26
|
show 2 more comments
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameterSelectandGroupBy.
– NetMage
Nov 27 '18 at 21:45
Without using LINQ, my general approach is toString.Splityour source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from0to max). Now you just process the words list again, usingPadRightto reformat each word in each line to the max length you found for that position, and thenString.Jointhe words back into sentences.
– NetMage
Nov 27 '18 at 21:51
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
Looking at your sample code, changehighestnrto be an array on maxparts.Length(it is would be poor to just pick a number like 1000, but OTOH dynamically growing aListis a bit tricky), then indexhighestnrbykwhen finding the max per position. Then indexhighestnrbyiwhen outputting, and swap the output ofparts[i]and the spaces (or useString.PadRight).
– NetMage
Nov 27 '18 at 21:56
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameter
Select and GroupBy.– NetMage
Nov 27 '18 at 21:45
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameter
Select and GroupBy.– NetMage
Nov 27 '18 at 21:45
Without using LINQ, my general approach is to
String.Split your source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from 0 to max). Now you just process the words list again, using PadRight to reformat each word in each line to the max length you found for that position, and then String.Join the words back into sentences.– NetMage
Nov 27 '18 at 21:51
Without using LINQ, my general approach is to
String.Split your source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from 0 to max). Now you just process the words list again, using PadRight to reformat each word in each line to the max length you found for that position, and then String.Join the words back into sentences.– NetMage
Nov 27 '18 at 21:51
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
Looking at your sample code, change
highestnr to be an array on max parts.Length (it is would be poor to just pick a number like 1000, but OTOH dynamically growing a List is a bit tricky), then index highestnr by k when finding the max per position. Then index highestnr by i when outputting, and swap the output of parts[i] and the spaces (or use String.PadRight).– NetMage
Nov 27 '18 at 21:56
Looking at your sample code, change
highestnr to be an array on max parts.Length (it is would be poor to just pick a number like 1000, but OTOH dynamically growing a List is a bit tricky), then index highestnr by k when finding the max per position. Then index highestnr by i when outputting, and swap the output of parts[i] and the spaces (or use String.PadRight).– NetMage
Nov 27 '18 at 21:56
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26
|
show 2 more comments
1 Answer
1
active
oldest
votes
an example of solution: i am using easy code to help to understand
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
int maxnbcol = 0;
List<int> maxlgbycol = new List<int>();
int maxpaddingbycol;
List<string> stfile = new List<string>();
//split each line and put the result in list<string>
foreach (var line in lines)
{
var lineplitted = line.Split(new char {' '}, StringSplitOptions.RemoveEmptyEntries);
if (lineplitted.Length > maxnbcol) maxnbcol = lineplitted.Length;
stfile.Add(lineplitted);
}
maxpaddingbycol = new int[maxnbcol];
//calcul the max padding for each column
for (int numline = 0; numline < stfile.Count; numline++)
{
for(int numcol = 0; numcol < stfile[numline].Length; numcol++)
{
var lgword = stfile[numline][numcol].Length;
if (lgword > maxpaddingbycol[numcol])
maxpaddingbycol[numcol] = lgword;
}
}
//apply padding and rebuild each line
for (int numline = 0; numline < stfile.Count; numline++)
{
for (int numcol = 0; numcol < stfile[numline].Length; numcol++)
stfile[numline][numcol] = stfile[numline][numcol].PadRight(maxpaddingbycol[numcol]);
var newline = String.Join(" ", stfile[numline]);
Console.WriteLine(newline);// --> you could call your method to write an output file
}
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53507871%2ftext-sorting-align-spacing-algorithm-needed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
an example of solution: i am using easy code to help to understand
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
int maxnbcol = 0;
List<int> maxlgbycol = new List<int>();
int maxpaddingbycol;
List<string> stfile = new List<string>();
//split each line and put the result in list<string>
foreach (var line in lines)
{
var lineplitted = line.Split(new char {' '}, StringSplitOptions.RemoveEmptyEntries);
if (lineplitted.Length > maxnbcol) maxnbcol = lineplitted.Length;
stfile.Add(lineplitted);
}
maxpaddingbycol = new int[maxnbcol];
//calcul the max padding for each column
for (int numline = 0; numline < stfile.Count; numline++)
{
for(int numcol = 0; numcol < stfile[numline].Length; numcol++)
{
var lgword = stfile[numline][numcol].Length;
if (lgword > maxpaddingbycol[numcol])
maxpaddingbycol[numcol] = lgword;
}
}
//apply padding and rebuild each line
for (int numline = 0; numline < stfile.Count; numline++)
{
for (int numcol = 0; numcol < stfile[numline].Length; numcol++)
stfile[numline][numcol] = stfile[numline][numcol].PadRight(maxpaddingbycol[numcol]);
var newline = String.Join(" ", stfile[numline]);
Console.WriteLine(newline);// --> you could call your method to write an output file
}
add a comment |
an example of solution: i am using easy code to help to understand
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
int maxnbcol = 0;
List<int> maxlgbycol = new List<int>();
int maxpaddingbycol;
List<string> stfile = new List<string>();
//split each line and put the result in list<string>
foreach (var line in lines)
{
var lineplitted = line.Split(new char {' '}, StringSplitOptions.RemoveEmptyEntries);
if (lineplitted.Length > maxnbcol) maxnbcol = lineplitted.Length;
stfile.Add(lineplitted);
}
maxpaddingbycol = new int[maxnbcol];
//calcul the max padding for each column
for (int numline = 0; numline < stfile.Count; numline++)
{
for(int numcol = 0; numcol < stfile[numline].Length; numcol++)
{
var lgword = stfile[numline][numcol].Length;
if (lgword > maxpaddingbycol[numcol])
maxpaddingbycol[numcol] = lgword;
}
}
//apply padding and rebuild each line
for (int numline = 0; numline < stfile.Count; numline++)
{
for (int numcol = 0; numcol < stfile[numline].Length; numcol++)
stfile[numline][numcol] = stfile[numline][numcol].PadRight(maxpaddingbycol[numcol]);
var newline = String.Join(" ", stfile[numline]);
Console.WriteLine(newline);// --> you could call your method to write an output file
}
add a comment |
an example of solution: i am using easy code to help to understand
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
int maxnbcol = 0;
List<int> maxlgbycol = new List<int>();
int maxpaddingbycol;
List<string> stfile = new List<string>();
//split each line and put the result in list<string>
foreach (var line in lines)
{
var lineplitted = line.Split(new char {' '}, StringSplitOptions.RemoveEmptyEntries);
if (lineplitted.Length > maxnbcol) maxnbcol = lineplitted.Length;
stfile.Add(lineplitted);
}
maxpaddingbycol = new int[maxnbcol];
//calcul the max padding for each column
for (int numline = 0; numline < stfile.Count; numline++)
{
for(int numcol = 0; numcol < stfile[numline].Length; numcol++)
{
var lgword = stfile[numline][numcol].Length;
if (lgword > maxpaddingbycol[numcol])
maxpaddingbycol[numcol] = lgword;
}
}
//apply padding and rebuild each line
for (int numline = 0; numline < stfile.Count; numline++)
{
for (int numcol = 0; numcol < stfile[numline].Length; numcol++)
stfile[numline][numcol] = stfile[numline][numcol].PadRight(maxpaddingbycol[numcol]);
var newline = String.Join(" ", stfile[numline]);
Console.WriteLine(newline);// --> you could call your method to write an output file
}
an example of solution: i am using easy code to help to understand
string lines = File.ReadAllLines(Text, Encoding.GetEncoding(1257));
int maxnbcol = 0;
List<int> maxlgbycol = new List<int>();
int maxpaddingbycol;
List<string> stfile = new List<string>();
//split each line and put the result in list<string>
foreach (var line in lines)
{
var lineplitted = line.Split(new char {' '}, StringSplitOptions.RemoveEmptyEntries);
if (lineplitted.Length > maxnbcol) maxnbcol = lineplitted.Length;
stfile.Add(lineplitted);
}
maxpaddingbycol = new int[maxnbcol];
//calcul the max padding for each column
for (int numline = 0; numline < stfile.Count; numline++)
{
for(int numcol = 0; numcol < stfile[numline].Length; numcol++)
{
var lgword = stfile[numline][numcol].Length;
if (lgword > maxpaddingbycol[numcol])
maxpaddingbycol[numcol] = lgword;
}
}
//apply padding and rebuild each line
for (int numline = 0; numline < stfile.Count; numline++)
{
for (int numcol = 0; numcol < stfile[numline].Length; numcol++)
stfile[numline][numcol] = stfile[numline][numcol].PadRight(maxpaddingbycol[numcol]);
var newline = String.Join(" ", stfile[numline]);
Console.WriteLine(newline);// --> you could call your method to write an output file
}
edited Nov 28 '18 at 12:27
answered Nov 28 '18 at 11:47
FrenchyFrenchy
1,3122413
1,3122413
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53507871%2ftext-sorting-align-spacing-algorithm-needed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@Hogan It took me 3 statements, one of which is 3 lines because I put the LINQ method calls on separate lines. Consider the usefulness of two parameter
SelectandGroupBy.– NetMage
Nov 27 '18 at 21:45
Without using LINQ, my general approach is to
String.Splityour source (List<string>) into words (List<string>) and store in a variable. Then find the max words in a line, and find the max length word for each word position (from0to max). Now you just process the words list again, usingPadRightto reformat each word in each line to the max length you found for that position, and thenString.Jointhe words back into sentences.– NetMage
Nov 27 '18 at 21:51
@NetMage -- makes sense. 3 lines in linq is a lot, since most things can be done in one line.
– Hogan
Nov 27 '18 at 21:55
Looking at your sample code, change
highestnrto be an array on maxparts.Length(it is would be poor to just pick a number like 1000, but OTOH dynamically growing aListis a bit tricky), then indexhighestnrbykwhen finding the max per position. Then indexhighestnrbyiwhen outputting, and swap the output ofparts[i]and the spaces (or useString.PadRight).– NetMage
Nov 27 '18 at 21:56
Sorry I was trying to figure out what you meant for me to do , but I have no clue. I was trying to parse highestnr as an array , but I can't declare it at as a 0 at that point and then it won't allow me to compare and find the highest number.
– S. Kiz
Nov 27 '18 at 22:26