Angius
Angius
Explore posts from servers
CC#
Created by Moha on 3/2/2025 in #help
Bank code
🎉
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
do {
code
} while (stuff);
do {
code
} while (stuff);
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
One exception being do..while
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
Generally, every control flow statement (if, for, foreach, while, switch, (arguably using as well)) is structured like so:
keyword (stuff)
{
code
}
keyword (stuff)
{
code
}
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
I can recommend getting a cheap Bluetooth keyboard if your phone supports it. That's how I did my statistics exam in R in college, since I didn't have a laptop :KEKW:
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
Writing code on mobile has to be an... experience
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank code
No description
170 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
No problem
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
You can persist data in a file, in a database (that's also a file)
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
Every single value in your code gets reset to the default value when the application is closed and ran again
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
Where do you want to save it if not in a file?
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
Of course, you can just save it to a file
29 replies
CC#
Created by M. Hammad on 3/2/2025 in #help
Problems in Learning Backend
If you want to make a frontend to interact with the API later, sure, it's easy enough to do
11 replies
CC#
Created by M. Hammad on 3/2/2025 in #help
Problems in Learning Backend
No need to even touch JS at the beginning
11 replies
CC#
Created by M. Hammad on 3/2/2025 in #help
Problems in Learning Backend
You can just use .http files, Bruno, or even just curl to interact with an API
11 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
You can do it with a while loop too, sure
while (true)
{
Console.WriteLine("Type `quit` to quit");
Console.WriteLine("Press enter to continue");
selection = Console.ReadLine();
if (selection == "quit")
{
break;
}
// all the other code
}
while (true)
{
Console.WriteLine("Type `quit` to quit");
Console.WriteLine("Press enter to continue");
selection = Console.ReadLine();
if (selection == "quit")
{
break;
}
// all the other code
}
would be one way to do so
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
It's just the name of the variable
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
What do you mean "what does selection mean"?
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
It will loop until the user types quit when prompted
29 replies
CC#
Created by Moha on 3/2/2025 in #help
Bank program help
string selection;
do {
Console.WriteLine("Type `quit` to quit");
Console.WriteLine("Press enter to continue");
selection = Console.ReadLine();
// all the other code
} while (selection != "quit");
string selection;
do {
Console.WriteLine("Type `quit` to quit");
Console.WriteLine("Press enter to continue");
selection = Console.ReadLine();
// all the other code
} while (selection != "quit");
something like this should work
29 replies