Chima Nwosu
@ChimaNwosu1
DynamicSquid Couldn't you also do:
int greatest = a[0];
for (int i = 1; i greatest)
greatest = a[i];
}
cout << greatest;
`2 years ago
So I am trying to make the tetris game and I pretty much got the gist of everything but there is one problem: When the tetromino block gets close the
C++
DynamicSquid It's almost never the compiler.
On line 48:
cout << "\033[0;32m" << "■" << ' ';
You might want to remove the space after the block3 years ago
DynamicSquid It's almost never the compiler.
On line 48:
cout << "\033[0;32m" << "■" << ' ';
You might want to remove the space after the block3 years ago
These may come in useful if anyone is trying to incorporate trig in their code.
P.s
I'm looking to create a project in C++ but don't have any ideas.
C++
DynamicSquid projects in c++? Create a library management system. It's actually a really fun project about OOP3 years ago
This code is an easier and condensed version of the Coordinate/Moving repl I shared a couple weeks back. I think this would be useful for anyone wanti
C++
Hey guys, If you look on the class.h file and scroll down to line 71-74 you will see the the rand() function being used. However, when this code is be
Got this from a snake game but reduced the code so I can understand it. Tell me what you guys think; whether I should simplify it or if there is a bet
C++
Highwayman I’d suggest instead only re-writing parts of the screen when the character moves. Also I suggest making the cursor disappear using \e[?25l
Here’s an example: https://repl.it/@Highwayman/Coordinate-system-Moving3 years ago
CSharpIsGud There is indeed a better method that would keep the terminal from flickering when you move but its probably more complicated than whatever snake game you got it from.3 years ago
Hey I'm still a beginner in C++ and I want to know how to make a gaming d-pad. Do you guys have any coding advice on how to do so.
C++