Author | Message | ||
Molotov Member (send private message) Posts: 49 Topics: 21 Location: Behind Keyboard | [1251] Help with an "Array" - posted: 2012-12-09 16:05:12 Having some problems finding a way to make my default carddeck it´s basicly just an int array. was thinking about switching to a linkedlist in which i also could store the names, but not sure. Code:
thanks in advance. "Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1252] - posted: 2012-12-09 16:15:58 give something like this a try: Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Molotov Member (send private message) Posts: 49 Topics: 21 Location: Behind Keyboard | [1253] - posted: 2012-12-09 18:43:03 Ah works as it should.. This is embarrasing.. i´ve basicly forgotten everything in the last 6-8months.. How would i print out the deck using in another function? "Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1254] - posted: 2012-12-09 20:07:49 don't quite understand your question but try along these lines: Code:
please explain a little more if this is not what you mean Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Molotov Member (send private message) Posts: 49 Topics: 21 Location: Behind Keyboard | [1256] - posted: 2012-12-09 22:13:08 actually it was exactly what i meant but i got the same as when i made it.. a crash in the application. i will update compiler and try again. if it doesn´t work i´ll send you the crash report information here later. "Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b | ||
Molotov Member (send private message) Posts: 49 Topics: 21 Location: Behind Keyboard | [1257] - posted: 2012-12-09 22:23:15 This is what i get in crashreport from drwatson32.exe when i try to run that procedure.
"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1258] - posted: 2012-12-09 23:03:06 That crash report looks very strange since a-lot of it looks messed up, also that is not showing the printdeck function I posted, can you show me exactly the function if you've made modifications too. also try adding include for ch.zir #include 'ch.zir'; just after your program declaration, and then to run it and tell me what it says then. if the crash is only since printdeck try change it like so and let me know also: Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Molotov Member (send private message) Posts: 49 Topics: 21 Location: Behind Keyboard | [1259] - posted: 2012-12-12 01:28:07 Tried with #include 'ch.zir'; I get access violation error at adress 4207155 When i try the updated function i don´t see what i expected. it should write: 1, 2, 3, 4, 5, and so on But i get: 67305985, 84148994, 100992003, 117835012 and so on, then second to last it writes 52 then 0 does it write memory adresses? im lost. "Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b |
Currently Active Users: There are currently 12 user(s) online. 0 member(s) and 12 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |