User Profile

Collapse

Profile Sidebar

Collapse
iovecpsc
iovecpsc
Last Activity: Nov 1 '07, 10:20 PM
Joined: Oct 31 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • iovecpsc
    started a topic Header file help
    in C

    Header file help

    Say I wanted to create a header file for my program. Would the variables in the header be defined globally for the file that it is attached to.
    Code:
     
    //header.h
    
    //#ifndef HEADER_EXAMPLE 
    //#define HEADER_EXAMPLE
    char array[10] ={"hello world"};
    
    //prog.c
    //#endif
    
    #include <stdio.h>
    #include "header.c" //#include <header.c>
    {
    ...
    See more | Go to post

  • iovecpsc
    started a topic Help me understand this code plz
    in C

    Help me understand this code plz

    [code=c]
    #include <stdio.h>



    char *HexToBin[16] =

    { "0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111",

    "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"

    };

    //---------------------------------------------------------------------------...
    See more | Go to post
    Last edited by sicarie; Oct 31 '07, 01:27 PM. Reason: Code tags
No activity results to display
Show More
Working...