lldb error Xcode c++ -
int xint(int a, int b, int c){ double xintercept; int cc = -c; xintercept = cc/a; return xintercept; } int yint(int a, int b, int c){ double yintercept; int cc = -c; //this line// yintercept = cc/a; return yintercept; } that line highlighted in green. have same code previously(on 3rd line) , not have problems running
there's wrong here. declaration of
`int cc = -c;` means you're declaring variable non-existing variable(-c) , give error. try change variable defined, c , should rid of error.
p.s: function like
`xintercept = cc/a;` is not defined in 2nd function. should create function yintercept, because otherwise declared not used.
Comments
Post a Comment