Call of non-function in function main......??? :/

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mitzi28
    New Member
    • Oct 2011
    • 1

    #1

    Call of non-function in function main......??? :/

    Yeah, as shown in the title, I got that error and i have no idea what to do..
    I have a C program and it works perfectly fine when i made it separately, now, my instructor told us to put all of the programs we did to one program. So when i put that program to my new one, i got that error..
    PLEASE HELP ME :(

    Like for example, in this line,
    Code:
    printf("\n\n\n\t\tEnter Employee's No.: ");scanf("%d",&no);
    Thank you so much in advance <3
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    What exactly changed between when it worked and when it didn't work?

    When you say "put all of the programs we did to one program" do you mean you had several functions in one source file and combined them all into one big function; or do you mean you had several source files and combined them all into one big source file?

    Do you perchance use the same name for both a variable and a function? You could have gotten away with that while the two usages were in different source files.

    Comment

    Working...