9.h
9.h
Explore posts from servers
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
Ty
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
Oh yeah that too
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
for (int i = 0; i < length-1; i++)
{
if (sentence2[i] == sentence2[i++])
{
notrepeating = false;
}
}
for (int i = 0; i < length-1; i++)
{
if (sentence2[i] == sentence2[i++])
{
notrepeating = false;
}
}
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
So,
for (int i = 0; i < length-1; i++)
for (int i = 0; i < length-1; i++)
and the rest the same as at the start
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
In that case, is the solution to - 1 from length in the for loop?
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
So doesn't my change fix that as it prohibits i from reaching the maximum value?
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
for (int i = 0; i < length; i++)
{
if (sentence2[i] == sentence2[i+1] && i != length)
{
notrepeating = false;
}
}
for (int i = 0; i < length; i++)
{
if (sentence2[i] == sentence2[i+1] && i != length)
{
notrepeating = false;
}
}
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
So it will stop once i = length which would be fine as position length was already checked with length - 1
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
What if I add another condition to the if, stating that i must not be equal to the length?
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
I am not sure how to fix that yet but I'll figure it out
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
Thank you, I will check this when I get home
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
Hmmm
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
There is no value 1 above the last
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
I think the root of my issue is the ++, I should put a + 1 instead, I'll check when I get home
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
The for loop is meant to check if there are any repeating characters. My logic is that, once I sort the array, if there are any repeating characters, they will be next to each other, and so the IF should turn the NOTREPEATING boolean into false
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
GFEDCBA is a good testing string as it should theoretically satisfy all the requirements
24 replies
CC#
Created by 9.h on 1/30/2024 in #help
for loop casuing error
The for loop in question is the last one, the sentence2[i] == sentence2[i++] one. When I remove it, the program works completely fine. With it, it suddenly does not print the last writeline saying it is correct even if it is
24 replies
Mmfad
Created by 9.h on 10/27/2023 in #questions-and-advice
UK | Looking for good quality but affordable tshirt's. Looking to spend about £40, for atleast two.
Thing is that there is only Airism ones in the UK here. There is no U Airism except for kids ones
15 replies
Mmfad
Created by 9.h on 10/27/2023 in #questions-and-advice
UK | Looking for good quality but affordable tshirt's. Looking to spend about £40, for atleast two.
Also some graphic one that says 100% cotton
15 replies
Mmfad
Created by 9.h on 10/27/2023 in #questions-and-advice
UK | Looking for good quality but affordable tshirt's. Looking to spend about £40, for atleast two.
I bought an airism and supima one to try them out
15 replies