Simple Array passing
-
i have a list of numbers that are like the following
01,-0.84415,0.35416
02,-0.64350,0.29412
03,-0.35877,0.25129
04,0.00000,0.23529
05,0.35877,0.25129
06,0.64350,0.29412
07,0.84415,0.35416
08,-0.68573,0.41802
09,-0.49935,0.36853
10,-0.26625,0.33535so i am needing some sort of c++ function that i can pass a Loc "location" variable too so if i pass 04 then it returns 0.00000,0.23529 or then i pass 02 it gives me -0.64350,0.29412 thanks for all your help
-
i have a list of numbers that are like the following
01,-0.84415,0.35416
02,-0.64350,0.29412
03,-0.35877,0.25129
04,0.00000,0.23529
05,0.35877,0.25129
06,0.64350,0.29412
07,0.84415,0.35416
08,-0.68573,0.41802
09,-0.49935,0.36853
10,-0.26625,0.33535so i am needing some sort of c++ function that i can pass a Loc "location" variable too so if i pass 04 then it returns 0.00000,0.23529 or then i pass 02 it gives me -0.64350,0.29412 thanks for all your help
Please stop reposting this same thing. Especially as this is the Visual Studio forum, for problems with the IDE. If you have an actual issue with C++ then use the C++ forum. If you need to learn about C++ features then C++ Standard Library Reference | Microsoft Docs[^] contains all the documentation.
-
i have a list of numbers that are like the following
01,-0.84415,0.35416
02,-0.64350,0.29412
03,-0.35877,0.25129
04,0.00000,0.23529
05,0.35877,0.25129
06,0.64350,0.29412
07,0.84415,0.35416
08,-0.68573,0.41802
09,-0.49935,0.36853
10,-0.26625,0.33535so i am needing some sort of c++ function that i can pass a Loc "location" variable too so if i pass 04 then it returns 0.00000,0.23529 or then i pass 02 it gives me -0.64350,0.29412 thanks for all your help
ccodebase wrote:
i have a list of numbers that are like the following
01,-0.84415,0.35416
02,-0.64350,0.29412
03,-0.35877,0.25129
04,0.00000,0.23529
05,0.35877,0.25129
06,0.64350,0.29412
07,0.84415,0.35416
08,-0.68573,0.41802
09,-0.49935,0.36853
10,-0.26625,0.33535And what is your question concerning the Forum: Visual Studio?