can't seem to find the errors?

Discussion in 'C Programming' started by galerecon, Nov 6, 2012.

  1. galerecon

    galerecon

    Joined:
    Nov 6, 2012
    Messages:
    1
    All I am trying to do is write to file. But I keep getting these errors:
    1>c:\...\lab1.cpp(7): error C2065: 'ofstream' : undeclared identifier
    1>c:\...\lab1.cpp(7): error C2065: 'myWriteFile' : undeclared identifier
    1>c:\...\lab1.cpp(7): error C2182: 'process_payroll' : illegal use of type 'void'
    1>c:\...\lab1.cpp(7): fatal error C1903: unable to recover from previous error(s); stopping compilation

    here is my code:
    pastebin.com/vvUbM1GW

    Can anyone figure out what is wrong with it?
     
    galerecon, Nov 6, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,005
    Mark Goldin
    Jan 17, 2004
  2. ad
    Replies:
    2
    Views:
    879
  3. Wybo Dekker
    Replies:
    1
    Views:
    387
    Yukihiro Matsumoto
    Nov 15, 2005
  4. Xeno Campanoli
    Replies:
    2
    Views:
    223
    Xeno Campanoli
    Sep 13, 2007
  5. David Sainte-claire
    Replies:
    1
    Views:
    110
    yermej
    Nov 23, 2009
Loading...

Share This Page