Mathall
Mathall
CC#
Created by Mathall on 8/3/2024 in #help
Cannot generate assets for debugging VSCode cloned repository
Hey all, was on my laptop and started a project in vscode, and uploaded it to github to finish on my PC when i got back home, however now that i'm home, I can clone the repository just fine, however when i go to debug it, it tells me I dont have debug assets, so i go to .NET generate assets for debug, but it tells me i do not have .NET core, and so I go to the terminal and run dotnet new console, but when I do that nothing changes, any help would be greatly appreciated heres the repository link, if thats needed: https://github.com/Mathall003/Minesweeper
10 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
No description
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
No description
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
Hey all i'm trying to add my .vscode, bin, and obj file to my .gitignore, but for somereason they will not go away even when i have
#
obj/
.vscode/
bin/
#
obj/
.vscode/
bin/
in the .gitignore file, any help would be appreciated oh heres the repo https://github.com/Mathall003/WordleGame/blob/main/.gitignore
16 replies
CC#
Created by Mathall on 7/1/2024 in #help
possible null reference warning
No description
36 replies
CC#
Created by Mathall on 6/25/2024 in #help
Converting null literal or possible null value to non-nullable type.
No description
27 replies
CC#
Created by Mathall on 6/23/2024 in #help
method with object lists error
No description
69 replies
CC#
Created by Mathall on 6/14/2024 in #help
Why do you need to use else statements?
Sorry if this is a dumb question, I am still new but wouldn't
C#
if(answer = true) {
Console.WriteLine("Correct!")
} else {
Console.WriteLine("Incorrect!")
}
C#
if(answer = true) {
Console.WriteLine("Correct!")
} else {
Console.WriteLine("Incorrect!")
}
Just be exactly the same as:
C#
if(answer = true) {
Console.WriteLine("Correct!")
}
Console.WriteLine("Incorrect!")
C#
if(answer = true) {
Console.WriteLine("Correct!")
}
Console.WriteLine("Incorrect!")
8 replies
CC#
Created by Mathall on 6/14/2024 in #help
How to set a variable = to itself + another variable
Hello, im completely new to C#, and still trying to learn the basics, I'm trying to create an average finder, and have all the users values be put into a list to be added together. However it's telling me that i cannot use the same variable as it is "an unassigned local variable", any help and tips would be appreciates
C#
for(int i = 0; i < numCount; i++) {
double preSum = preSum + numberList[i];
}
C#
for(int i = 0; i < numCount; i++) {
double preSum = preSum + numberList[i];
}
2 replies