Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Simple Array passing

Simple Array passing

Scheduled Pinned Locked Moved Visual Studio
c++data-structureshelp
3 Posts 3 Posters 15 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ccodebase
    wrote on last edited by
    #1

    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.33535

    so 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

    L V 2 Replies Last reply
    0
    • C ccodebase

      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.33535

      so 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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • C ccodebase

        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.33535

        so 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

        V Offline
        V Offline
        Victor Nijegorodov
        wrote on last edited by
        #3

        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.33535

        And what is your question concerning the Forum: Visual Studio?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups