Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

objects

  1. J

    How create a new object with different values

    I'm new to Lua, but not to coding. Most of my coding has been in C++. I really confused about the syntax around creating and instantiating objects. The code below is working, but how do I create a new object with a different table and a different x and y? pad={ x=63, y=63, w=9, h=1, clr=143...
  2. L

    JavaScript Recursively Delete objects from an array of nested objects

    Anyone know how to recursively find and delete an object from an array structured like this with infinite nested objects with the same structure? [ { id: 1, nest: [ { id: 2, nest: [{id: 3, nest: [{..continues..}]}], }, { id: 4, nest...
  3. tom3141

    C Expression must have pointer-to-object type

    I have defined some variables. I have previously defined #define SYS_LEN 50.0 #define N_CELLS ((int)SYS_LEN) as well as extern double *array_one where I populate the array via array_one[0] = 0.5*SYS_LEN array_one[1] = 0.25*SYS_LEN I then go onto define a further array within a function void...
  4. M

    Best way call Objects in Canvas, jQuery

    Hi Guys, I would like some advice on a project I am working on to create a simulation of an electrical schematic which I am creating in canvas. First I have created objects for components like relays, contacts, user controls and wires. All object shave the relevant information to draw the...
  5. T

    Python Problem with code

    Hello, I have a problem with this code, it says 'Alumno' object is not iterable, ¿what do i need to do to fix this problem?, thanks in advance. def Igual_Promedio(a, b): return sum(a) / 3 == sum(b) / 3 class Alumno: def __init__(self, data): self.data = i # Declaracion de...
  6. James

    Python Classes in Python [Tutorial]

    Now, this is a massive step from the last tutorial, you should know the basics of python to understand this. This tutorial will be going into Object Oriented Programming. How do I define a class? To define a class you need to type class along with the name, similar to a function it must also be...
Back
Top Bottom