Thread: Typedef

  1. #16
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    How about you tell us what errors you're getting?

  2. #17
    Registered User
    Join Date
    Mar 2011
    Posts
    66
    canI request thread closure? I am gonna try to retweak my code but before that


    is typedef StackNode *StackNodePtr the same as struck stackNode *StackNodePtr ??

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by kyel_dai92 View Post
    canI request thread closure?
    Sure... just quit posting and it's as good as closed.

  4. #19
    Registered User
    Join Date
    Mar 2011
    Posts
    66
    but how about my last question? D:

  5. #20
    Registered User
    Join Date
    Jun 2010
    Location
    Michigan, USA
    Posts
    143
    Quote Originally Posted by kyel_dai92 View Post
    is typedef StackNode *StackNodePtr the same as struck stackNode *StackNodePtr ??
    No it is not the same. Have you looked up the typedef keyword in your C reference book as was suggested? If not, why not? If you did, what did you not understand in the description?

  6. #21
    Registered User
    Join Date
    Mar 2011
    Posts
    66
    I looked and read aobut typedef in the c book aren't this the same? I am just asking a question no need to complex answers, straight questions deserves straight answer .

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by kyel_dai92 View Post
    but how about my last question? D:
    Did you look up the typedef keyword as we've been suggesting all along?
    Did you read about what it does?

    Code:
    typedef  int antifargelmeisterism;
    
    antifargelmeisterism misentandanishment;
    misentandanishment is actually an int

    Get it? It's an alias for a type.... It's in the language so you can create situationally appropriate types...

    For example in a communications program I might use ...
    Code:
    Typedef unsigned long int port;
    ... to hold my port numbers. All it does is let me refer to ports instead of unsigned long ints.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 12:36 PM
  4. Please STICKY this- vital to MSVC 6 dev - BASETSD.h
    By VirtualAce in forum Game Programming
    Replies: 11
    Last Post: 03-15-2005, 09:22 AM
  5. build errors migrated from dx9b to dx9c sdk
    By reanimated in forum Game Programming
    Replies: 4
    Last Post: 12-17-2004, 07:35 AM