ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

typedef در C

 
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming
View previous topic :: View next topic  
Author Message
arash
مدير بخش سي
مدير بخش سي


Joined: 27 Nov 2004
Posts: 1232
Location: www.parsx.com

PostPosted: Tue Sep 27, 2005 3:48 pm    Post subject: typedef در C Reply with quote

با اين دستور مي توانيد يك نام مجازي به نوع داده اي داده و يا نام جديد براي يك نوع از پيش تعريف شده ايجاد كرد . typedef زبان C مشابه type زبان پاسكال مي باشد . شكل كلي اين دستور به صورت زير است :
typedef  نوع داده       نام جديد;

مثال:
typedef int integer;
int k;
integer n;

در اين مثال kوn متغييري از نوع صحيح تعريف شده است .
تذكر Exclamation:
آخر دستور typedef بايد حتما سمي كالون ( ; ) را نوشت .
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming All times are GMT + 3.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