Posts by DerickXIGamer • 39 points
3 posts
-
1
votes3
answers163
viewsA: Operator "!=" does not work in my code?
There seems to be nothing wrong, but the green color shows that most of the code has become a string. string[] ranksAceitaveis = new string[] { "E", "E+", "D", "D+", "C", "C+", "B", "B+", "A", "A+",…
-
-1
votes1
answer44
viewsQ: How do you create voids that change the value of a variable without IF? (like Python methods)
To simplify my question, I will show the Bubble Sort in python: def bubbleSort(self): for i in range(len(self) - 1): for j in range(len(self) - 1): if self[j] > self[j+1]: self[j], self[j+1] =…
-
2
votes3
answers1489
viewsA: implementation of Split() in C++
There’s something simpler than that: #include <bits/stdc++.h> using namespace std; vector <string> split(string text, char separator = ' '){ string str; stringstream ss(text); vector…