Search:




User: Password:




Warning: Cannot modify header information - headers already sent by (output started at /home/anime/public_html/banzai/header.php:34) in /home/anime/public_html/banzai/includes/sessions.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/anime/public_html/banzai/header.php:34) in /home/anime/public_html/banzai/includes/sessions.php on line 255
Anime-Source.Com: Forums


Warning: Cannot modify header information - headers already sent by (output started at /home/anime/public_html/banzai/header.php:34) in /home/anime/public_html/banzai/includes/page_header.php on line 499

Warning: Cannot modify header information - headers already sent by (output started at /home/anime/public_html/banzai/header.php:34) in /home/anime/public_html/banzai/includes/page_header.php on line 501

Warning: Cannot modify header information - headers already sent by (output started at /home/anime/public_html/banzai/header.php:34) in /home/anime/public_html/banzai/includes/page_header.php on line 502
Anime-Source.com :: View topic - C programming
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C programming

 
Post new topic   Reply to topic    Anime-Source.com Forum Index -> Tech Area
View previous topic :: View next topic  
Author Message
isamu_sagora
newbie!


Joined: Aug 18, 2004
Posts: 45

PostPosted: Tue Apr 05, 2005 8:02 am    Post subject: C programming Reply with quote

i am having dificulties with this language. is there anyone that can help me with C? pointers are a mess.
thanks in advance
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Lucifer
A-Source Admin
A-Source Admin


Joined: Nov 12, 2004
Posts: 3468
Location: Cocytus

PostPosted: Tue Apr 05, 2005 8:29 am    Post subject: Reply with quote

I only learnt C++ but i think it should be the same.

Pointers are variables that points to another variable. It doesn't hold a value but the address of another variable.

You can view more example from howstuffworks
CLICK HERE FOR MORE INFO

If you are doing an assignment, maybe you can state out the question so the skilled programmers here (i'm not included) can help you?
_________________
What's yours is mine, what's mine is still mine.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Frundock
A-Source Admin
A-Source Admin


Joined: Aug 04, 2002
Posts: 1561
Location: Canada

PostPosted: Tue Apr 05, 2005 9:14 am    Post subject: Reply with quote

a pointer works like this :

int *iPointer;

int iVar=2;


There's two way to access a variable. if you do something like

printf("Here is iVar %d", iVar)

you'll see the value of iVar. 2

But you can also access the "memory address" of the variable. While it serves little purpose with two var, integer more so, it can be pretty important when you try to use dynamic data strucutres.

To see the memory adress of an object, you use &.


printf("Here is iVar %d", &iVar)

This would display something really different, the memory location of iVar.

so iPointer = &iVar would make the pointer "point" to the memory location of iVar. You can then access (read, modify) the value of iVar through iPointer.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Anime-Source.com Forum Index -> Tech Area All times are GMT - 5 Hours
Page 1 of 1

 
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
Our Sponsors

Blog
5/16/13
Nominoichi at Anime North 2013
Conventions

9/30/12
Great Teacher Xeno: FINAL!
GTX: Great Teacher Xeno

6/10/12
Minister Most Sinister
GTX: Great Teacher Xeno

4/13/12
A Special Assignment
GTX: Great Teacher Xeno

4/8/12
Season of Many Changes
GTX: Great Teacher Xeno

3/24/12
GTX: New Evolution
GTX: Great Teacher Xeno

2/24/12
Xeno Has Reached the Top
GTX: Great Teacher Xeno

2/3/12
GTX 2012
GTX: Great Teacher Xeno

12/17/11
GTX: As Told By Facebook
GTX: Great Teacher Xeno

11/21/11
To the Moon
Gaming


Whos Online
There are currently, 120 guest(s) and 9 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Affiliates

Manga Updates
October 10th
Hohzuki Island (NEW!)
Chapters 1-26

August 15th
Freezing
Chapters 30-33

History's Strongest Disciple Kenichi
Chapters 268-393

Ping
Chapters 25-29

Shiki (NEW!)
Chapters 1-22

August 08th
Lucifer and the Biscuit Hammer
Chapters 54-64

Yomeiro Choice
Chapters 27-28


All images and comments are property of their respective owners, all the rest � 2002 by Anime-Source.com.
You can syndicate our news using the file backend.php.


Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Back to Top