Skip to content
Making Fireworks in c++ using basic code
Profile icon
azula21

Hello! If anyone can explain me the logic of creating basic fireworks in C++. I have to make the firework swirl though. If someone can guide me what header files to use, and a bit of the logic, it would be a great help!

You are viewing a single comment. View All
Profile icon
badst

@xxpertHacker
@CSharpIsGud
@azula21
Here, use this as a start:

#include <iostream> #include <array> int main() { std::array<std::string,4> frames = { "Frame1", "Frame2", "Frame3", "Frame4" }; for(auto & frame : frames){ std::cout << frame; } }

Replace "Frame1","Frame2",etc with animation frames.
Then add a sleep function and clear the console.