CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

what does this operator do???
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cjusto



Joined: 26 Apr 2006
Posts: 38
Location: Portugal

View user's profile Send private message

what does this operator do???
PostPosted: Thu Jun 01, 2006 3:47 pm     Reply with quote

hi!!
can someone help me with this operator??

"->", this comand (it looks like an arrow pointing right).


i know that is used with arrays, but what is it's real function?

thanks
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: what does this operator do???
PostPosted: Thu Jun 01, 2006 4:00 pm     Reply with quote

cjusto wrote:
"->", this comand (it looks like an arrow pointing right).

i know that is used with arrays, but what is it's real function?


First you have to swear with your tomorrow's lunch that this is not a homework question.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Jun 01, 2006 4:06 pm     Reply with quote

structure pointer operator K&R page 131
cjusto



Joined: 26 Apr 2006
Posts: 38
Location: Portugal

View user's profile Send private message

PostPosted: Thu Jun 01, 2006 4:14 pm     Reply with quote

hi treitmey!

what is K&R?
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Thu Jun 01, 2006 4:33 pm     Reply with quote

Kernighan and Ritchie "The C Programming Language"

This is the first C book many,many C programmers read and is a staple on most others' bookshelves.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Jun 01, 2006 4:33 pm     Reply with quote

A book you should buy.
"The C programming Language" by Kerninghan and Ritchie.
AKA "K&R"
AKA "The bible"
http://www.amazon.com/gp/product/0131103628/104-6100712-2526320?v=glance&n=283155
Read the reviews here. At 270 pages, this is a POWERFULL book.


Last edited by treitmey on Thu Jun 01, 2006 4:44 pm; edited 2 times in total
cjusto



Joined: 26 Apr 2006
Posts: 38
Location: Portugal

View user's profile Send private message

PostPosted: Thu Jun 01, 2006 4:37 pm     Reply with quote

oh. ok. thanks.

i didn't know it.

i will check that, maybe when i finish this project.

thanks anyway
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Thu Jun 01, 2006 4:57 pm     Reply with quote

Quote:
i will check that, maybe when i finish this project.


Here we go again...

*grabs both sides of the monitor, bangs head against the screen a couple of times and sits back to relax*

Ahhhhhh....... much better.

I taught myself to program in 'C' and this was the very first book that I bought. This person is trying to write a program in 'C' and hasn't even thought about learning the very BASIC's of the language.

*resisting the urge to grab the monitor again*
cjusto



Joined: 26 Apr 2006
Posts: 38
Location: Portugal

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 3:49 pm     Reply with quote

Quote:
Here we go again...

*grabs both sides of the monitor, bangs head against the screen a couple of times and sits back to relax*

Ahhhhhh....... much better.

I taught myself to program in 'C' and this was the very first book that I bought. This person is trying to write a program in 'C' and hasn't even thought about learning the very BASIC's of the language.

*resisting the urge to grab the monitor again*


hey rnielsen.

i can understand ur point.
the very basics is a relative thing.
and don't forget, each person has his own method and reallity.
i don't know where u are from, but no doubt that we have different reallities.

if i needed to program to live, i would start by that "very basics book".
as i am developping a school project, time is runing out just from the begining.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 4:14 pm     Reply with quote

I thought school was a place where you were supposed to _learn_ things and not simply whip out projects and then say "Next project!".
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 5:10 pm     Reply with quote

Apparently the REALITY is that they don't have time for books. I must be throwing my money away because I have hundreds (possibly thousands) of dollars worth of them in the bookcases in my office. The method and reality employed by many young people now days is to learn just enough to get by then move on... I just had a professed EE in one of my classes recently that got his degree like that. He didn't have a remote chance of passing in my class because he had NO understanding of theory and what he was really doing. Such is life...
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Jun 06, 2006 5:54 pm     Reply with quote

Keep in mind that not all electrical engineers know or even care to program! This guy might have to take a microcontroller course to satisfy some requirements but might not care to do it for a living. Oh, BTW, I have never read a K&R book nor really any C book except for maybe a text book in school. We had to take a C++ class in school and that's probably the only C book that I have read (and not that thoroughly).
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 6:51 pm     Reply with quote

Yes, but you're smarter than the average student and absorbed the
material better. You're not typical.
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 7:08 pm     Reply with quote

dyeatman wrote:
Apparently the REALITY is that they don't have time for books. I must be throwing my money away because I have hundreds (possibly thousands) of dollars worth of them in the bookcases in my office. The method and reality employed by many young people now days is to learn just enough to get by then move on... I just had a professed EE in one of my classes recently that got his degree like that. He didn't have a remote chance of passing in my class because he had NO understanding of theory and what he was really doing. Such is life...


Had many students like this through the years. Many. They're what make the few good ones so memorable.

What finally drove me to quit teaching was a class full of stoners. Watching these guys was like watching a Cheech and Chong movie. Only sad, not funny. You think trying to teach the disinterested is tough? Try teaching the disinterested AND stoned.
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 9:21 pm     Reply with quote

It appears that there are a few of us diehards that monitor this forum regularly. I don't post any where near as much of many of you do, but I read nearly 75% of the posts and following threads. I too, taught myself C programming, but with the help of a couple of well educated computer science professionals. I wanted to learn to program, and I was allowed the opportunity by clients to pursue it. I must confess, I read the K&R C programming language book from cover to cover (with a few naps in between) before I wrote a single line of code. I didn't absorb most of it, but I knew that I had been exposed to all of the features of C and had some idea of where to find the answers. K&R isn't just the bible of C, these guys created C. If I am not mistaken, they worked at AT&T labs and created the language. Correct me if I am wrong, but wasn't UNIX written in C? Any one who even thinks of learning C MUST have a copy of K&R. It has all (well maybe most) of the answers to this type of question.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group