-
May 5th, 2012, 10:28 PM
#1
New Member
loop calculation
everyone who can help me, i want create loop for my project load data from text file and calculate.
example: in txt file
-----------------------------------------------------
point angle distance
1 100 20 30 200
2 100 39 40 199
3 100 40 50 211
4 102 45 54 20
5 104 59 13 30
6 103 46 12 40
7 16 30 12 10
8 104 25 13 30
9 210 45 12 133
10 352 40 40 233
---------------------------------------------------------
and the result show
---------------------------------------------------
point n e
1 ? ?
2 ? ?
3 ? ?
4 ? ?
5 ? ?
6 ? ?
7 ? ?
8 ? ?
9 ? ?
10 ? ?
--------------------------------------------------
formula
n=distance cos angle
e=distance sin angle
---------------------------------------------------
please give me some code how to solve it... thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules