Post: [C++] SPRX Vector Class
05-27-2016, 07:51 PM #1
Mr Smithy x
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
Originally posted by F
This is great, nice work. Can we get a vector class next? =D (this would probably be literal hell). I like it.


Though I don't know if I like this;
    string ten = 10;



Looks confusing, as in C++ that doesn't really make sense as you're setting an integer equal to a string. Still nice though.


SPRX C++ Class replacement for Vectors.
Why? You get a link error when trying to using vectors when building the sprx project.


Because i use java alot i had to call it ArrayList lol. There's still some more features i want to add.
You can most likely use this with You must login or register to view this content.
You must login or register to view this content.

Usage
You must login or register to view this content.

Output:
You must login or register to view this content.

The following 6 users say thank you to Mr Smithy x for this useful post:

Jim Halpert, John, RTE, Specter, uykjtrhgewa
05-27-2016, 07:53 PM #2
Specter
Pro Memer
Originally posted by Mr
SPRX C++ Class replacement for Vectors.
Why? You get a link error when trying to using vectors when building the sprx project.


Because i use java alot i had to call it ArrayList lol.
You can most likely use this with You must login or register to view this content.
You must login or register to view this content.

Usage
You must login or register to view this content.

Output:
You must login or register to view this content.


This is awesome Smithy, exactly what I and many others probably wanted. Nice!
Last edited by Specter ; 06-01-2016 at 07:44 PM.
07-24-2016, 04:03 AM #3
Jim Halpert
Bounty hunter
Originally posted by Mr
SPRX C++ Class replacement for Vectors.
Why? You get a link error when trying to using vectors when building the sprx project.


Because i use java alot i had to call it ArrayList lol. There's still some more features i want to add.
You can most likely use this with You must login or register to view this content.
You must login or register to view this content.

Usage
You must login or register to view this content.

Output:
You must login or register to view this content.


Smithy, what kind data structure did you use to make this vector class? I've made a linked list vector class and I was thinking about making it compatible with SPRX.
07-24-2016, 04:26 PM #4
Mr Smithy x
Former Staff
Originally posted by Jim
Smithy, what kind data structure did you use to make this vector class? I've made a linked list vector class and I was thinking about making it compatible with SPRX.


Its just a class, that stores its values in an array. I just store the value in mem then dispose of it when reordering, or removing items. Able to append to the list or or add/remove at a specific index.
Last edited by Mr Smithy x ; 07-24-2016 at 04:31 PM.
07-25-2016, 03:57 PM #5
gopro_2027
Vault dweller
Originally posted by Mr
SPRX C++ Class replacement for Vectors.
Why? You get a link error when trying to using vectors when building the sprx project.


Because i use java alot i had to call it ArrayList lol. There's still some more features i want to add.
You can most likely use this with You must login or register to view this content.
You must login or register to view this content.

Usage
You must login or register to view this content.

Output:
You must login or register to view this content.


Awesome dude! This can be so useful.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo