Menu

user created libs source code

2002-09-18
2012-09-26
  • Nobody/Anonymous

    .h file-

    #ifndef math_h
    //right here ^^ it says unterminating if statement
    void quad(double a, double b, double c)
    void right(double s1, double s2, double hyp)
    void random(int hi, int low)
    void midpoint(int a, int b, int c, int d)
    void cube(int x)
    #define math_h
    #endif

    and then in my mymath.cpp file, I include "mymath.h"
    so its really two errors, linking and that unterminating error.

     
    • Nobody/Anonymous

      Include pastes the header into your cpp file. That unterminating if statement could be in that cpp file, as your header seems fine to me.

      rpeter

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.