Random Thoughts.....What Are You Thinking?

Eorzea Time
 
 
 
Language: JP EN FR DE
Version 3.1
New Items
users online
Forum » Everything Else » Undead » Random Thoughts.....What are you thinking?
Random Thoughts.....What are you thinking?
First Page 2 3 ... 3114 3115 3116 ... 22944 22945 22946
Offline
Posts: 20643
By slipispsycho 2011-11-26 20:11:18
Link | Quote | Reply
 
Bismarck.Magnuss said: »
There are some in Texas. Actually... I think we have them in AZ, too.

edit:
There's one not even 2 miles from me.
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2011-11-26 20:11:22
Link | Quote | Reply
 
Cerberus.Irohuro said: »
oh ***, i think i might need to make it 2 dimensional to make it work the way i want ><

edit: or cleverly nest loops....
For the items yes.

item[employename, item#]

something like that
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 20:16:20
Link | Quote | Reply
 
im just barely grasping the single dimensional dynamic memory, no idea how to do it in multiple dimensions.
By volkom 2011-11-26 20:45:26
Link | Quote | Reply
 
Lol I'm at a hockey game :3
 Sylph.Sagiaurex
Offline
Server: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 20:46:26
Link | Quote | Reply
 
Turbaconepicentipede anyone :3 ?
 Asura.Alymorel
Offline
Server: Asura
Game: FFXI
user: Alimorel
Posts: 4560
By Asura.Alymorel 2011-11-26 20:55:34
Link | Quote | Reply
 
 Sylph.Sagiaurex
Offline
Server: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 20:57:30
Link | Quote | Reply
 
:O
 Asura.Ludoggy
Offline
Server: Asura
Game: FFXI
user: Ludog
Posts: 36553
By Asura.Ludoggy 2011-11-26 21:05:49
Link | Quote | Reply
 
O:
 Bismarck.Magnuss
Offline
Server: Bismarck
Game: FFXI
Posts: 28615
By Bismarck.Magnuss 2011-11-26 21:09:37
Link | Quote | Reply
 
. .
O
 Asura.Alymorel
Offline
Server: Asura
Game: FFXI
user: Alimorel
Posts: 4560
By Asura.Alymorel 2011-11-26 21:13:18
Link | Quote | Reply
 
.o.
 Ragnarok.Hevans
Offline
Server: Ragnarok
Game: FFXI
user: Hev
Posts: 15273
By Ragnarok.Hevans 2011-11-26 21:22:34
Link | Quote | Reply
 
o o
; 0
 Sylph.Sagiaurex
Offline
Server: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 21:26:13
Link | Quote | Reply
 
>:O
 Shiva.Spathaian
Offline
Server: Shiva
Game: FFXI
user: Spathaian
Posts: 27982
By Shiva.Spathaian 2011-11-26 21:30:53
Link | Quote | Reply
 
 Bismarck.Magnuss
Offline
Server: Bismarck
Game: FFXI
Posts: 28615
By Bismarck.Magnuss 2011-11-26 21:32:42
Link | Quote | Reply
 
You broke the rules! Everyone's gonna be mad! Noooooo! NaaaaaooooooooooO!!! YOU BROKE THE RULES!
[+]
 Quetzalcoatl.Xueye
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 21:42:07
Link | Quote | Reply
 
Cerberus.Irohuro said: »
im just barely grasping the single dimensional dynamic memory, no idea how to do it in multiple dimensions.

You mean like pointers?

Think of it like this. If you say:

int* employeeIDs

You're saying "Hey, I'm going to point to a block of memory that I want to treat as some number of integers. Dunno how many!"

Then later on in the program, you scan to see how many employee's you have. So say the user inputs "40" when you ask how many employees there are.

So then you'd go to:

employeeIDs = (int *)malloc(numberEmployees * sizeof(int));

Since, at least in C, you can't do employeeIDs[n], you have to allocate the memory like that.

That way, when you're saying employeeIDs[1] you're really saying:

"Hey, lemme jump to the memory block that's 1 sizeof(int) bytes ahead of wherever employeeIDs points to."

You can also have pointers to pointers that way! :D
[+]
 Valefor.Annikahansen
Offline
Server: Valefor
Game: FFXI
Posts: 971
By Valefor.Annikahansen 2011-11-26 21:56:35
Link | Quote | Reply
 
fb friend posted this:
Season's Greedings
As we enter this season of Greed lets remember whats important.
God wants you to spend lots of money on mostly useless and unimportant gifts for people you don't really care about. Feel free to go really far in debt it is okay.
When driving, the important thing to remember, is don't let anyone in front of you.. Cut them off, run them off the road, it is okay, and hit and run is just fine as long as you are on the way to a really great sale.
Oh and lets remember why we do all of these things; we spend, spend, spend, in the honor of the birth of baby Jesus. Happy Birthday baby Jesus Lets all shop till we drop.
[+]
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 22:15:16
Link | Quote | Reply
 
Hurray pointers!
 Quetzalcoatl.Xueye
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 22:20:55
Link | Quote | Reply
 
Caitsith.Mahayaya said: »
Hurray pointers!

Did I explain it right? I had to do a project with them extensively and I think I finally got them understood.
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 22:32:34
Link | Quote | Reply
 
You did a good job explaining because whenever I try to explain it to someone, I end up confusing myself and getting reference and object mixed up which just confuses them more. D:
Offline
Posts: 20643
By slipispsycho 2011-11-26 22:47:48
Link | Quote | Reply
 
Right now my wife hates me, because I don't know what Dubstep is and she tried to explain where the line between 'techno' and 'dubstep' is drawn.
 Valefor.Annikahansen
Offline
Server: Valefor
Game: FFXI
Posts: 971
By Valefor.Annikahansen 2011-11-26 22:49:16
Link | Quote | Reply
 
Psycho Slip said: »
Right now my wife hates me, because I don't know what Dubstep is and she tried to explain where the line between 'techno' and 'dubstep' is drawn.


EDIT: omfg ><
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:14:52
Link | Quote | Reply
 
Quetzalcoatl.Xueye said: »
Cerberus.Irohuro said: »
im just barely grasping the single dimensional dynamic memory, no idea how to do it in multiple dimensions.

You mean like pointers?

Think of it like this. If you say:

int* employeeIDs

You're saying "Hey, I'm going to point to a block of memory that I want to treat as some number of integers. Dunno how many!"

Then later on in the program, you scan to see how many employee's you have. So say the user inputs "40" when you ask how many employees there are.

So then you'd go to:

employeeIDs = (int *)malloc(numberEmployees * sizeof(int));

Since, at least in C, you can't do employeeIDs[n], you have to allocate the memory like that.

That way, when you're saying employeeIDs[1] you're really saying:

"Hey, lemme jump to the memory block that's 1 sizeof(int) bytes ahead of wherever employeeIDs points to."

You can also have pointers to pointers that way! :D
like this though the way i was wanting to do it would be a bit difficult that way, as i'd have to do something similar to multidimensional arrays (myArray[10][10])

i was basically seeing if i could make that a program for the expenses thing you were wondering about, but it quickly went beyond my skill. =/

i was going to make it to where you could put in any amount of employees, and then list each item (any amount of items) and then a total expenses, but i'd have to find a way to make it where i could list diferent sets of an infinite amount of items for an infinite amount of employees.
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 23:25:42
Link | Quote | Reply
 
@Irohuro

It might be better to visualize your first multiple dimension in the form of a Tic-Tac-Toe board.

ticTicArray[x][y]

ticTacArray[0][0] ticTacArray[0][1] ticTacArray[0][2]
ticTacArray[1][0] ticTacArray[1][1] ticTacArray[1][2]
ticTacArray[2][0] ticTacArray[2][1] ticTacArray[2][2]


All of these spots have a value held in them. Or, they could even have multiple values held in them, depending.

There is no need to rush into trying to use multi-dimensional arrays when you don't need them, since you can make an array of Objects which can contain lots of different types of data.

If you want to accomplish what you're saying, you could make a new class named something like "employeeData" that contains arrays of items and expenses. Then in your current class or main code, you could have an array of employeeData objects.
 Quetzalcoatl.Xueye
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 23:32:32
Link | Quote | Reply
 
For something like an expense application, what you really want to do is look into how to use databases. This is essentially what they were made for.
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:40:16
Link | Quote | Reply
 
yea, i didnt realize it was beyond the scope of what i knew until i sat down to begin planning it out =/
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 23:46:26
Link | Quote | Reply
 
Cerberus.Irohuro said: »
yea, i didnt realize it was beyond the scope of what i knew until i sat down to begin planning it out =/

Whatchu doing it for? School, work, or a self-project? It's not beyond your grasp just have to do some research and ask questions.

If it's a self-project, probably some nicer languages to do it with. Ones with better innate integration with free databases like mySQL and Postgres.

If it's for school, doesn't hurt to play around with C++ just to get the hang of it.

Dunno what to tell you if it's for work lol.
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:48:38
Link | Quote | Reply
 
just to see if i could do it after xueye mentioned it the other day.
right now im only in a beginning C++ class >.>
next semester i have an intermediate class and also start BASIC
 Quetzalcoatl.Xueye
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 23:52:31
Link | Quote | Reply
 
I think I'm going to teach myself Ruby on Rails to do this. Make it an online thing.

Edit: If you want, I can run you through how I intend on doing it.
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:57:40
Link | Quote | Reply
 
i've only played around with light RGSS for rpg maker xp, making HUDs and such.
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-27 00:02:53
Link | Quote | Reply
 
Haven't messed with Ruby before. I'm partial to Python myself. The syntax forces you to be really clean and clear. And they offer Django similar to the Ruby on Rails.

Obviously it comes down to whichever tools you prefer or whatever tools your school or work force you to use.
First Page 2 3 ... 3114 3115 3116 ... 22944 22945 22946