User Profile

Collapse

Profile Sidebar

Collapse
lingjun
lingjun
Last Activity: Mar 18 '11, 10:07 PM
Joined: Mar 18 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sorry. I rewrote the code with some changes. Now the only error message I am getting is:

    testing.c:4: error: syntax error before numeric constant


    My code is:
    Code:
    #include <stdio.h>
    
    
    enum day {sun, mon, tue, wed, thur, fri, sat};
    
    
    typedef enum day Day;
    
    
    Day find_next_day (Day day);
    
    int main(void)
    {
       int error;
    ...
    See more | Go to post

    Leave a comment:


  • lingjun
    started a topic "parameter name omitted" error message?
    in C

    "parameter name omitted" error message?

    Hi,
    I am having problems with this program. I keep on getting the following error messages:


    testing.c: In function `next_month':
    testing.c:25: error: parameter name omitted
    testing.c:27: error: syntax error before "mnth"

    My code is:
    Code:
    #include <stdio.h>
    
    enum month {jan=0, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec};
    
    typedef
    ...
    See more | Go to post

  • How to fix "syntax error before numeric constant " error message?

    Hi,
    I am taking my first programing course in college... and I am completely lost on this assignment. I am not sure what is wrong with my current code. Any help will be appreciate it... thanks!

    I keep on getting the follow error messages when I try to compile it.

    test.c:3: error: syntax error before numeric constant
    test.c: In function `main':
    test.c:18: error: `next_day' undeclared (first use...
    See more | Go to post
No activity results to display
Show More
Working...