| | |
(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.
>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.
•
•
•
•
>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 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
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
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
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
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
@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
•
•
Join Date: Aug 2009
Posts: 51
Reputation:
Solved Threads: 0
•
•
•
•
>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 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
•
•
Join Date: Aug 2009
Posts: 51
Reputation:
Solved Threads: 0
•
•
•
•
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
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
@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
![]() |
Similar Threads
- C++ Performance Tips (C++)
- cin, cout, matrix, pointers and references :( (C++)
- Function pointers inside classes (C++)
- C++ Object Pointers Problem (C++)
- Passing a Function, function pointer (C++)
- How to see if one string is less than another string (C)
- AP Computer Science Exam (Java)
- Need Help counting Array Length (C++)
Other Threads in the C Forum
- Previous Thread: understanding 2d char arrays
- Next Thread: Conversion in C Language
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks bash binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile creafecopyofanytypeoffileinc createprocess() database dynamic execv fgets file floatingpointvalidation fork function getlogicaldrivestrin givemetehcodez grade gtkwinlinux histogram ide inches include infiniteloop initialization input interest intmain() iso kernel keyboard kilometer km license linked linkedlist linux list looping lowest matrix meter microsoft number oddnumber open opendocumentformat openwebfoundation owf pdf pointer pointers posix power probleminc process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing scheduling segmentationfault send sequential single socket socketprogramming standard strchr string suggestions systemcall test threads turboc unix urboc user variable wab whythiscodecausesegmentationfault win32api windowsapi






