943,667 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1712
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Aug 29th, 2009
1

Re: (God damn) POINTERS and passing into functions

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Aug 29th, 2009
-2

Re: (God damn) POINTERS and passing into functions

Click to Expand / Collapse  Quote originally posted by Narue ...
>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?
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Aug 29th, 2009
1

Re: (God damn) POINTERS and passing into functions

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
Reputation Points: 46
Solved Threads: 3
Light Poster
KonkaNok is offline Offline
38 posts
since May 2009
Aug 30th, 2009
0

Re: (God damn) POINTERS and passing into functions

Your a cocky girl huh?
Don't mess with Narue. Look at her avatar, you will get some idea
Reputation Points: 350
Solved Threads: 63
Posting Pro
invisal is offline Offline
562 posts
since Mar 2005
Aug 30th, 2009
0

Re: (God damn) POINTERS and passing into functions

Click to Expand / Collapse  Quote originally posted by invisal ...
Don't mess with Narue. Look at her avatar, you will get some idea
Yea I see the anime avatar. Its cute.
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Aug 30th, 2009
1

Re: (God damn) POINTERS and passing into functions

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
Reputation Points: 651
Solved Threads: 35
Posting Whiz in Training
yellowSnow is offline Offline
201 posts
since Jul 2009
Aug 31st, 2009
0

Re: (God damn) POINTERS and passing into functions

Click to Expand / Collapse  Quote originally posted by Narue ...
>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
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
nateuni is offline Offline
61 posts
since Aug 2009
Aug 31st, 2009
1

Re: (God damn) POINTERS and passing into functions

Click to Expand / Collapse  Quote originally posted by yellowSnow ...
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
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
nateuni is offline Offline
61 posts
since Aug 2009
Aug 31st, 2009
-1

Re: (God damn) POINTERS and passing into functions

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!
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
nateuni is offline Offline
61 posts
since Aug 2009
Aug 31st, 2009
0

Re: (God damn) POINTERS and passing into functions

@OP : is the God dam a typecast to pointers, because you hate them?
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: understanding 2d char arrays
Next Thread in C Forum Timeline: Conversion in C Language





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC