Bismarck.Magnuss said: »
There are some in Texas. Actually... I think we have them in AZ, too.
edit:
edit:

Random Thoughts.....What Are You Thinking? |
|||||||||||
|
Random Thoughts.....What are you thinking?
Bismarck.Magnuss said: » There are some in Texas. Actually... I think we have them in AZ, too. edit: ![]() 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.... item[employename, item#] something like that im just barely grasping the single dimensional dynamic memory, no idea how to do it in multiple dimensions.
Lol I'm at a hockey game :3
Turbaconepicentipede anyone :3 ?
. .
O You broke the rules! Everyone's gonna be mad! Noooooo! NaaaaaooooooooooO!!! YOU BROKE THE RULES!
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 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 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. 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:
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.
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 >< 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 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. @Irohuro
It might be better to visualize your first multiple dimension in the form of a Tic-Tac-Toe board. ticTicArray[x][y]
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. 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.
yea, i didnt realize it was beyond the scope of what i knew until i sat down to begin planning it out =/
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. 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 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. i've only played around with light RGSS for rpg maker xp, making HUDs and such.
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. |
|||||||||||
|
All FFXI content and images © 2002-2026 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|
|||||||||||