Reply
Results 1 to 6 of 6
  1. #1
    Registered User BulkingIsHard's Avatar
    Join Date: Aug 2016
    Posts: 1,727
    Rep Power: 6094
    BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000) BulkingIsHard is a name known to all. (+5000)
    BulkingIsHard is offline

    CS Miscers: How to delete a struct passed by reference? (Poverty Rapes)

    EX:

    void fun(Penor& homo)
    {
    delete homo; //expression must be a pointer to a complete object type
    }

    If i do

    void fun(Penor& homo)
    {
    delete& homo; //compiler doesn't mad
    }

    things explode violently

    HEAP[exe]: Invalid address specified to RtlValidateHeap( 0000019A73380000, 0000004CF50FF628 )
    Reply With Quote

  2. #2
    Registered User outfoxxed's Avatar
    Join Date: Jun 2010
    Location: Toronto, Ontario, Canada
    Posts: 11,825
    Rep Power: 7609
    outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000) outfoxxed is a name known to all. (+5000)
    outfoxxed is offline
    If you can't Google, you should give up on cs bruh
    Sniff hard as fuk when guys pass by to smell their balls crew
    Don't know how to hold arms when walking crew
    Has to use a soundboard to order pizza crew
    Order pizza and lower money from second floor in bucket crew
    Bodybuilders against lifting crew
    Mod Negs: 3
    Reply With Quote

  3. #3
    Registered User ElectronicsBrah's Avatar
    Join Date: Jan 2019
    Age: 50
    Posts: 292
    Rep Power: 1512
    ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000) ElectronicsBrah is just really nice. (+1000)
    ElectronicsBrah is offline
    Don't you need a * in there somewhere? IE: delete * homo;

    I'm no CS guy so I'm not sure.
    Reply With Quote

  4. #4
    Never get outworked AusPower's Avatar
    Join Date: Oct 2007
    Posts: 20,313
    Rep Power: 34793
    AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000) AusPower has much to be proud of. One of the best! (+20000)
    AusPower is offline
    Literally third result on google
    Bench: 572lbs (https://m.youtube.com/watch?v=9RrAfn0TfkY&feature=youtu.be)
    Squat: 924lbs (https://youtu.be/hnvJ0SdCYKw)
    Deadlift: 924lbs (https://youtu.be/KDS6TQ_--eM)
    Bent Over Row: 485lbs (https://youtu.be/dc-t9k3f208)
    Over Head Press: 405lbs (https://youtu.be/h3o4jOBa8IM)
    Reply With Quote

  5. #5
    i need a tan mp83's Avatar
    Join Date: Dec 2011
    Location: Wisconsin, United States
    Posts: 8,052
    Rep Power: 55810
    mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000) mp83 has much to be proud of. One of the best! (+20000)
    mp83 is offline
    Is that C++? If so, can't delete a reference if I remember right.

    You'd have to change it to a pointer

    void fun(Penor* homo)
    {
    delete homo;
    }

    Been a while since I coded in c++ though
    Green Bay Packers-Milwaukee Brewers
    Muay Thai Crew / Investing / Finance Crew / {Misc Fisherman Crew}

    Torn labrum 10/13: recovered mostly
    Reply With Quote

  6. #6
    Registered User NicholasMango's Avatar
    Join Date: Jan 2014
    Posts: 4,015
    Rep Power: 10294
    NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000) NicholasMango is a splendid one to behold. (+10000)
    NicholasMango is offline
    Did it occur to you that your compiler error tells you that you need a pointer to the object, but you don't have one?

    dereferencing =/= a pointer
    Diet/workout log: http://forum.bodybuilding.com/showthread.php?t=165723481&p=1325774041
    High protein/cutting recipes: http://forum.bodybuilding.com/showthread.php?t=167274301
    Reply With Quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts