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

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Everything Else » Undead » Random Thoughts.....What are you thinking?
Random Thoughts.....What are you thinking?
First Page 2 3 ... 3114 3115 3116 ... 23001 23002 23003
Offline
Posts: 20643
By slipispsycho 2011-11-26 20:11:18  
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
サーバ: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2011-11-26 20:11:22  
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
サーバ: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 20:16:20  
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  
Lol I'm at a hockey game :3
 Sylph.Sagiaurex
Offline
サーバ: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 20:46:26  
Turbaconepicentipede anyone :3 ?
 Asura.Alymorel
Offline
サーバ: Asura
Game: FFXI
user: Alimorel
Posts: 4560
By Asura.Alymorel 2011-11-26 20:55:34  
 Sylph.Sagiaurex
Offline
サーバ: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 20:57:30  
:O
 Asura.Ludoggy
Offline
サーバ: Asura
Game: FFXI
user: Ludog
Posts: 36553
By Asura.Ludoggy 2011-11-26 21:05:49  
O:
 Bismarck.Magnuss
Offline
サーバ: Bismarck
Game: FFXI
Posts: 28615
By Bismarck.Magnuss 2011-11-26 21:09:37  
. .
O
 Asura.Alymorel
Offline
サーバ: Asura
Game: FFXI
user: Alimorel
Posts: 4560
By Asura.Alymorel 2011-11-26 21:13:18  
.o.
 Ragnarok.Hevans
Offline
サーバ: Ragnarok
Game: FFXI
user: Hev
Posts: 15274
By Ragnarok.Hevans 2011-11-26 21:22:34  
o o
; 0
 Sylph.Sagiaurex
Offline
サーバ: Sylph
Game: FFXI
user: Sagiaurex
Posts: 494
By Sylph.Sagiaurex 2011-11-26 21:26:13  
>:O
 Shiva.Spathaian
Offline
サーバ: Shiva
Game: FFXI
user: Spathaian
Posts: 27982
By Shiva.Spathaian 2011-11-26 21:30:53  
 Bismarck.Magnuss
Offline
サーバ: Bismarck
Game: FFXI
Posts: 28615
By Bismarck.Magnuss 2011-11-26 21:32:42  
You broke the rules! Everyone's gonna be mad! Noooooo! NaaaaaooooooooooO!!! YOU BROKE THE RULES!
[+]
 Quetzalcoatl.Xueye
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 21:42:07  
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
サーバ: Valefor
Game: FFXI
Posts: 971
By Valefor.Annikahansen 2011-11-26 21:56:35  
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
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 22:15:16  
Hurray pointers!
 Quetzalcoatl.Xueye
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 22:20:55  
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
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 22:32:34  
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  
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
サーバ: Valefor
Game: FFXI
Posts: 971
By Valefor.Annikahansen 2011-11-26 22:49:16  
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
サーバ: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:14:52  
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
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 23:25:42  
@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
サーバ: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 23:32:32  
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
サーバ: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:40:16  
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
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-26 23:46:26  
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
サーバ: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:48:38  
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
サーバ: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-11-26 23:52:31  
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
サーバ: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2011-11-26 23:57:40  
i've only played around with light RGSS for rpg maker xp, making HUDs and such.
 Caitsith.Mahayaya
Offline
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-11-27 00:02:53  
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 ... 23001 23002 23003