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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -