Click here to Skip to main content
15,900,378 members

Comments by danial khan (Top 14 by date)

danial khan 22-Oct-13 23:06pm View    
i have C++ book i can read that :) ok bye.
danial khan 22-Oct-13 22:54pm View    
i know these all basic mathematics formulas and problem like rise over run....... rise is y and run is X because x is horizontal and y is vertical. if the graph is vertical then it is undefined. BUT THE REASON WAS THAT I just wanted to know how i can write this thing in C++ because i just started c++. if u guys help me i appreciate.
danial khan 22-Oct-13 22:38pm View    
for you it is basic but for me it is not basic because i have just started C++ for the first time one week ago :)
danial khan 22-Oct-13 22:29pm View    
another example for 1 2 3 2 calculates using formula (y2 - y1) / (x2 - x1). comes 0/2 do not print the denominator just print numerator "0".
danial khan 22-Oct-13 22:24pm View    
i mean the value: x1=1 y1=1 x2=1 y2=4 calculate using this formula (y2 - y1) / (x2 - x1). comes 3/0 if 0 is denominator print "undefined".