Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 25, 2013, 07:36:33 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9224
Posts in
2230
Topics by
5389
Members
Latest Member:
Sandradhernandez
Crystal Space
Crystal Space Development
Support
Arrays
« previous
next »
Pages:
[
1
]
Author
Topic: Arrays (Read 1949 times)
Sander
Guest
Arrays
«
on:
August 07, 2005, 03:46:41 pm »
How exactly do i use a csArray<>? There is perfect documentation about initializing an array and getting items from it, but I can't figure out how to add a new item to a csArray. Any help appreciated.
Logged
jorrit
Administrator
Hero Member
Posts: 1703
Re: Arrays
«
Reply #1 on:
August 07, 2005, 05:03:45 pm »
Quote from: Sander on August 07, 2005, 03:46:41 pm
How exactly do i use a csArray<>? There is perfect documentation about initializing an array and getting items from it, but I can't figure out how to add a new item to a csArray. Any help appreciated.
csArray<int> a;
a.Push (3);
a.Push (2);
Greetings,
Logged
Sander
Guest
Re: Arrays
«
Reply #2 on:
August 08, 2005, 01:58:00 pm »
Thanks jorrit.
Just to make sure:
with a.Push(3) are you adding an item with value 3? or are you setting the number of items in the array to 3?
Thanks.
Logged
jorrit
Administrator
Hero Member
Posts: 1703
Re: Arrays
«
Reply #3 on:
August 08, 2005, 02:00:15 pm »
Quote from: Sander on August 08, 2005, 01:58:00 pm
Thanks jorrit.
Just to make sure:
with a.Push(3) are you adding an item with value 3? or are you setting the number of items in the array to 3?
Thanks.
Ok, perhaps a bad example. It will simply add the '3' at the end of the array.
Greetings,
Logged
Sander
Guest
Re: Arrays
«
Reply #4 on:
August 08, 2005, 04:58:27 pm »
OK, thanks
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...