jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Front page / Stack Overflow · hot matching “class”

2 shown · updated 46m ago · read only
  1. How do I add new actions to this Unity 6.6 script? (stackoverflow.com)stack

    28 points by Gabriel Collins in stackoverflow.com · 1h ago · stack comments

    I have another question to ask about the Unity 6.6 game I'm working on, this time related to the script I'm using for the player's movement and other controls: using UnityEngine; using UnityEngine.InputSystem; [RequireComponent(typeof(CharacterController))] public class PlayerMo…
  2. C++ error: no match for 'operator[]' (operand types are 'const my_array_over' and 'size_t' {aka 'long unsigned int'}) (stackoverflow.com)stack

    11 points by harumichi113 in stackoverflow.com · 4y ago · stack comments

    #include <iostream> using namespace std; class my_array_over { size_t len = 1; int *a = new int[1]; public: my_array_over() { a[0] = 0; } my_array_over(size_t ln, const int *o) : len(ln), a(new int[ln]) { for (size_t n = 0; n < ln; ++n) a[n] = o[n]; } ~my_array_over() { delete[]…