(God damn) POINTERS and passing into functions

Reply

Join Date: Sep 2004
Posts: 7,660
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 723
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: (God damn) POINTERS and passing into functions

 
2
  #11
Aug 29th, 2009
>So if you did mean well.. and even if it came out in a bent, skewed
>and poorly communicated way, well thank you I do actually appreciate that.

Too little, too late, and wording it like your misunderstanding is my fault. It's a wonder you have any friends at all. By the way, if you were truly interested in peace and happiness, you should have taken more time to understand my post before mouthing off.

You fail. Plonk.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,189
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 149
firstPerson's Avatar
firstPerson firstPerson is online now Online
Veteran Poster

Re: (God damn) POINTERS and passing into functions

 
-1
  #12
Aug 29th, 2009
Originally Posted by Narue View Post
>So if you did mean well.. and even if it came out in a bent, skewed
>and poorly communicated way, well thank you I do actually appreciate that.

Too little, too late, and wording it like your misunderstanding is my fault. It's a wonder you have any friends at all. By the way, if you were truly interested in peace and happiness, you should have taken more time to understand my post before mouthing off.

You fail. Plonk.
Your a cocky girl huh?
I give up! 
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e ]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
3) What is the 123456789 prime numer?
Ask4Answer
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 36
Reputation: KonkaNok is on a distinguished road 
Solved Threads: 3
KonkaNok's Avatar
KonkaNok KonkaNok is offline Offline
Light Poster

Re: (God damn) POINTERS and passing into functions

 
1
  #13
Aug 29th, 2009
See if this is helpful:
Passing Multi-Dimensional Arrays to Functions
Salem's post seems like it would be (as usual) very beneficial to you.

This link is also provided in the thread and might help clear up your understanding of pointers:
http://www.cplusplus.com/doc/tutorial/pointers/

In future, appease the gods
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 464
Reputation: invisal is a jewel in the rough invisal is a jewel in the rough invisal is a jewel in the rough 
Solved Threads: 49
invisal's Avatar
invisal invisal is offline Offline
Posting Pro in Training

Re: (God damn) POINTERS and passing into functions

 
0
  #14
Aug 30th, 2009
Originally Posted by firstPerson View Post
Your a cocky girl huh?
Don't mess with Narue. Look at her avatar, you will get some idea
Yesterday is a history, tomorrow is a mystery, today is a gift.
Behind every smile is a tear.
Visal .In
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,189
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 149
firstPerson's Avatar
firstPerson firstPerson is online now Online
Veteran Poster

Re: (God damn) POINTERS and passing into functions

 
0
  #15
Aug 30th, 2009
Originally Posted by invisal View Post
Don't mess with Narue. Look at her avatar, you will get some idea
Yea I see the anime avatar. Its cute.
I give up! 
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e ]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
3) What is the 123456789 prime numer?
Ask4Answer
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 201
Reputation: yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold 
Solved Threads: 35
yellowSnow's Avatar
yellowSnow yellowSnow is offline Offline
Posting Whiz in Training

Re: (God damn) POINTERS and passing into functions

 
1
  #16
Aug 30th, 2009
Well I never expected such a reaction to my post #3.

@nateuni
First up, I apologise if that post offended you that much. In hindsight, I perhaps should have let the post sit in draft mode before pressing the ol' Submit button.

In my defense, I had been posting responses to quite a number of posts yesterday on this forum. A majority of these posts were of a similar theme i.e. poorly formatted code, vague questions and postings of "reams" of code (much of which lacked the necessary resources or functions to even get them to compile). But nevertheless I persisted and answered those posts which I thought deserved some sort of reply. Your post was one of the last I answered and the upper bound of my patience had been tested.

In the short time that I have participated on these forums, I have been PM'd quite a number of times by various members with help for problems - this was probably due to my "nice" nature. Initially I responded to their requests and then I realised that I was engaging in a disservice to this forum. I now politely ask the senders of such messages to re-post their queries on the public forum. The reason why I'm ranting on about this is to emphasis that I'm not a "nasty' person. I am passionate about the IT industry and I like to talk IT and mentor others when the opportunity arises. This is one of the reasons why I like to participate in online forums.

Now you refer to me as iAteyellowSnow - but a day prior you responded "awesome ....." to my reply to a different post that you originated. Oh well, thems the breaks ... don't take this the wrong way, but being referred to as a "jackass" by Narue bites just a little more than being referred to as "iAteyellowSnow" by you. Actually I quite like that name - if you're a Frank Zappa fan like me, you'll understand the correlation between my user name and your revised version of it.

Now, the primary reasons for my posting of thread #3 are:

1) The title of your thread didn't match the content of your query - with regards to the passing of 2D arrays. In addition your "God damn" would be seen as very offensive (not to me) to some members of this forum.

2) When you have an issue with a particular concept, the best way to approaching the solution is to attack the issue in the most basic way i.e. write the minimum amount of code to either solve your problem or at least demonstrate what the problem is. When you're trying to solve an issue with a new concept buried amongst all the other "noise" being the other code in your application it is very easy to get misguided in to what the actual problem is. This is nothing new. Here's a link to a "sticky" post at the head of the C forums by Narue - she is more articulate in her explanation of this. In addition, she provides very useful guidelines on how or why you should post messages to a forum.

http://www.daniweb.com/forums/thread213874.html

Just as it is frustrating for you learning the CS game, it is equally as frustrating for us members with more knowledge and experience to help other members out when they post heaps of code and then say "help me". Now, I know you're not a poster of that nature - so please take some of this advice in to account when posting in the future - and for what it's worth I'll help out if or when I can.

Regards,
JD
Manic twiddler of bits
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 51
Reputation: nateuni has a little shameless behaviour in the past 
Solved Threads: 0
nateuni nateuni is offline Offline
Junior Poster in Training

Re: (God damn) POINTERS and passing into functions

 
0
  #17
Aug 31st, 2009
Originally Posted by Narue View Post
>So if you did mean well.. and even if it came out in a bent, skewed
>and poorly communicated way, well thank you I do actually appreciate that.

Too little, too late, and wording it like your misunderstanding is my fault. It's a wonder you have any friends at all. By the way, if you were truly interested in peace and happiness, you should have taken more time to understand my post before mouthing off.

You fail. Plonk.
Actually no I didn't fail.. over the weekend through more reading and trial and error I solved my issue myself.

I urge you to explore your reaction around this, and I don't mean replying to me in the thread or being defensive. For someone that was initially so blunt and seemingly cold, I am still being surprised by your high level of sensitivity and I think that is something you might want to explore.

I should have taken more time to understand? "No one cares about your feelings". I think unless you want to dump a whole heaps of hehehes and smiley faces in there, i read it how it was communicated which if it was all sunshine and love fits in the - poorly category. Communication is a two way street Narue and being involved in Comp Sci you should know how much of earthly communication is assumed.

Communication between humans is a fine and odd mix mix of cultural beliefs, tone, body language, facial expressions, volume, previous experiences eg your up-bringing, and so on. So when you are initiating communication you need to think also in the way in which a message can be interpreted, then go about finding the means to help transmit what you say, clearly. So again if that was love and sunshine that left your keyboard that day.. it sure and to hell was communicated in a very odd way.

So where do we go from here? You can remain all defensive, and make more comments like "no way buddy.. you looooose" or you can see that there is actually a lesson in this for all of us, me included.

Nate
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 51
Reputation: nateuni has a little shameless behaviour in the past 
Solved Threads: 0
nateuni nateuni is offline Offline
Junior Poster in Training

Re: (God damn) POINTERS and passing into functions

 
1
  #18
Aug 31st, 2009
Originally Posted by yellowSnow View Post
Well I never expected such a reaction to my post #3.

@nateuni
First up, I apologise if that post offended you that much. In hindsight, I perhaps should have let the post sit in draft mode before pressing the ol' Submit button.

etc etc
JD
JD,

Thanks for taking the time to reply.

I agree that my questions could be more clear and refined. And instead of just posting y code perhaps some example code would have been better. I have also been tackling this issue with Uni.. as if I send a question and it is not understood.. I have to wait another 24 hours for a reply. So this is a lesson for me and corresponds part 2. of your reply.

In reply to number 1. Well it was about pointers which pointed to a 2d arrays, whether they were needed or not I believed upn the time of writing that this was my issue.

I reply to offending people with goddamn.. if people are that sensitive to my own frustration around pointer and are find that my comment of pointers (in this case in my program) were damned by god, I suggest that they don't turn on the TV or go outside.. because I think that is mild compared to what is on offer in the world.

I have solved the issue now, I found a book that seemed to explain the situation in a way that gelled with me. I then proceeded to go write a basic program to work with pointers in functions and print out the hex address and also the value they were pointing too. Even though it is still a bit of a mind **** I am able to now make my code function correctly and is warning/error free.

The issue was that I was passing an array into a function as a reference (&) then dereferencing it (*), say like I would an int. When this doesn't happen this way. To add to the messup I was dealing with a 2d array which I have never used before that program. So I did not know that the size of the 2 dimension (aka column) needed to be clearly expressed in the receiving function. Then when I went about changing this, I still got errors.. but that was because the argument that stated the number of column needed to be passed in before the array.

So when I was faced with all these factors and not knowing what was the correct syntax.. it was bloody confusing and extremely frustrating, I came on here to see if someone could just give me some pointers on how I was not obeying the syntax. I was seeking some human guidance something which is few and far between as an external student. I spend most of the time figuring this stuff out alone.

Ok no hard feeling, thanks for taking the time to clarify it is appreciated, and PS I thought the iAte was a pretty good one.

Regards,
Nate
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 51
Reputation: nateuni has a little shameless behaviour in the past 
Solved Threads: 0
nateuni nateuni is offline Offline
Junior Poster in Training

Re: (God damn) POINTERS and passing into functions

 
-1
  #19
Aug 31st, 2009
hahah narki gave me a negative rep point.. ahhaha..

I wish I could send her a virtual tissue box.. ahhaha. That made me laugh... what a looooser!
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,189
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 149
firstPerson's Avatar
firstPerson firstPerson is online now Online
Veteran Poster

Re: (God damn) POINTERS and passing into functions

 
0
  #20
Aug 31st, 2009
@OP : is the God dam a typecast to pointers, because you hate them?
I give up! 
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e ]
2) What does this sequence  equal to :  (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
3) What is the 123456789 prime numer?
Ask4Answer
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC