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 ... 4756 4757 4758 ... 22923 22924 22925
 Bahamut.Savannahlynn
Offline
Server: Bahamut
Game: FFXI
user: Savannah
Posts: 1742
By Bahamut.Savannahlynn 2012-02-21 18:30:37
Link | Quote | Reply
 
Valefor.Slipispsycho said: »
Okay so I just woke up and wife told me son got sent to the office today. Apparently, while in PE, he just walked up to some girl and kissed her right on the lips.. (He's 7.)

omg...lol I could see Max doing that if I hadn't already had the no kissing anyone talk....
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 18:33:48
Link | Quote | Reply
 
Leviathan.Chaosx said: »
Cerberus.Irohuro said: »
chaos if you're around, i think i sufficiently hate void functions now
I knew the time would come... :P

i have an exercise i have to do and i have to convert an older program from a few chapters back and put the calculations in void functions.
but the second calculation uses the result of the first, so what i did was pass by reference, but im getting an error that i have no idea what it means when i try to compile.

the error i get is error LNK2001: unresolved external symbol "void __cdecl getFatCals(int,int &)" (?getFatCals@@YAXHAAH@Z) c:\Users\-\documents\visual studio 2010\Projects\TryThis17solution\TryThis17\Intermediate17.obj
 Bismarck.Magnuss
Offline
Server: Bismarck
Game: FFXI
Posts: 28615
By Bismarck.Magnuss 2012-02-21 18:37:36
Link | Quote | Reply
 
Cerberus.Irohuro said: »
Arglebargle glop glyph?
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 18:42:45
Link | Quote | Reply
 
Cerberus.Irohuro said: »
Leviathan.Chaosx said: »
Cerberus.Irohuro said: »
chaos if you're around, i think i sufficiently hate void functions now
I knew the time would come... :P

i have an exercise i have to do and i have to convert an older program from a few chapters back and put the calculations in void functions.
but the second calculation uses the result of the first, so what i did was pass by reference, but im getting an error that i have no idea what it means when i try to compile.

the error i get is error LNK2001: unresolved external symbol "void __cdecl getFatCals(int,int &)" (?getFatCals@@YAXHAAH@Z) c:\Users\-\documents\visual studio 2010\Projects\TryThis17solution\TryThis17\Intermediate17.obj
Look back many many pages ago when I said void isn't good to use.
Because you can't dereference a void pointer.
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 18:45:08
Link | Quote | Reply
 
Just change the voids to whatever type they're calculating and adjust accordingly. Sorry I can't be too specific, I've been doing php all day and I'm beat from programming atm, lol.
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 18:45:38
Link | Quote | Reply
 
the thing is, i have to use void functions, because this chapter is on void functions and pointers
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 18:49:23
Link | Quote | Reply
 
Are you allowed to make your main vars pointers then?
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 18:52:03
Link | Quote | Reply
 
Leviathan.Chaosx said: »
Are you allowed to make your main vars pointers then?

huh?
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 18:52:28
Link | Quote | Reply
 
Unless you they want you to do it this way:

void getFatCals(int grams, int *fCals);

then when you call it do:

getFatCals(fatGrams, &fatCals);
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 18:57:25
Link | Quote | Reply
 
Cerberus.Irohuro said: »
Leviathan.Chaosx said: »
Are you allowed to make your main vars pointers then?

huh?
I think they way I just put is what they're looking for.
 Fenrir.Scragg
Administrator
Offline
Server: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2012-02-21 18:57:36
Link | Quote | Reply
 
Line 51, getFatCals

Make sure the C is uppercase to match the prototype.
[+]
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 18:58:51
Link | Quote | Reply
 
we havent learned anything about dereferencing, just passing by reference

edit: derp, thanks scragg
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 19:01:22
Link | Quote | Reply
 
Fenrir.Scragg said: »
Line 51, getFatCals

Make sure the C is uppercase to match the prototype.
lol
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 19:03:36
Link | Quote | Reply
 
Reminds me of the case of the extra } today.
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 19:04:34
Link | Quote | Reply
 
intellisense has failed me today =/
 Odin.Liela
Offline
Server: Odin
Game: FFXI
user: Liela
Posts: 10191
By Odin.Liela 2012-02-21 19:33:56
Link | Quote | Reply
 
Random!

[+]
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-02-21 19:50:41
Link | Quote | Reply
 
<.>
 Bismarck.Dreadnot
Offline
Server: Bismarck
Game: FFXI
Posts: 5113
By Bismarck.Dreadnot 2012-02-21 19:51:40
Link | Quote | Reply
 
Liela! You are Terra in my FF6 game. it was decided earlier today.
[+]
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-02-21 19:53:11
Link | Quote | Reply
 
I'm just weird, I never change the character names from their default name :x

I'm not good at making names lol >.>;
 Cerberus.Irohuro
Offline
Server: Cerberus
Game: FFXI
user: Irohuro
Posts: 6583
By Cerberus.Irohuro 2012-02-21 19:57:46
Link | Quote | Reply
 
i never do either, because, i mean, thats their names (except i change some of the names in 5, theyre terrible. and in dual hearts, what kind of names are rumble and tumble?)
 Leviathan.Chaosx
Offline
Server: Leviathan
Game: FFXI
user: ChaosX128
Posts: 20284
By Leviathan.Chaosx 2012-02-21 20:00:10
Link | Quote | Reply
 
You no like Butz?
 Odin.Liela
Offline
Server: Odin
Game: FFXI
user: Liela
Posts: 10191
By Odin.Liela 2012-02-21 20:08:55
Link | Quote | Reply
 
Bismarck.Dreadnot said: »
Liela! You are Terra in my FF6 game. it was decided earlier today.

:o /flattered
[+]
 Kujata.Daus
Offline
Server: Kujata
Game: FFXI
user: Daus
Posts: 3451
By Kujata.Daus 2012-02-21 20:43:17
Link | Quote | Reply
 
Finished reading the Hunger Games trilogy.

I really like the plot and the idea of it but I still have lots of complaints about it (mostly the 3rd book), so I was kind of really disappointed..especially considering how much people have been raving about it. However, Im not sorry that I read it and I finally watched a bunch of movie trailers and looked up the cast list on imdb. I'm hoping the movies are much better than the books. So I'm really excited for it to be coming out.
 
Offline
Posts:
By 2012-02-21 21:11:55
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
[+]
 Caitsith.Zahrah
Offline
Server: Caitsith
Game: FFXI
user: zahrah
By Caitsith.Zahrah 2012-02-21 21:12:18
Link | Quote | Reply
 
REALLY REALLY RANDOM:

You know, I forgot how much I liked Amano's work. Like I said earlier, never really delved into anything but XI for the most part. I remember the HS BF showing me all of this ages ago. I wonder why I haven't really thought of Amano in a while.








^^^I wish female WHM actually looked like this.^^^

EDIT: Oh crap! Did I break RT by talking about art?
 Shiva.Spathaian
Offline
Server: Shiva
Game: FFXI
user: Spathaian
Posts: 27982
By Shiva.Spathaian 2012-02-21 21:35:51
Link | Quote | Reply
 
So pretty. :x
[+]
 Caitsith.Zahrah
Offline
Server: Caitsith
Game: FFXI
user: zahrah
By Caitsith.Zahrah 2012-02-21 21:36:42
Link | Quote | Reply
 
NVM. I didn't!

/wipes sweat from forehead
 Shiva.Spathaian
Offline
Server: Shiva
Game: FFXI
user: Spathaian
Posts: 27982
By Shiva.Spathaian 2012-02-21 21:40:03
Link | Quote | Reply
 
Caitsith.Zahrah said: »
NVM. I didn't!

/wipes sweat from forehead
I was just busy. :x Now it's time for a game of LoL! /flies off
 Fairy.Spence
Offline
Server: Fairy
Game: FFXI
user: Spencyono
Posts: 23779
By Fairy.Spence 2012-02-21 21:42:58
Link | Quote | Reply
 
I miss LoL :(
 Caitsith.Zahrah
Offline
Server: Caitsith
Game: FFXI
user: zahrah
By Caitsith.Zahrah 2012-02-21 21:43:47
Link | Quote | Reply
 
/comfort
First Page 2 3 ... 4756 4757 4758 ... 22923 22924 22925