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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

necy36

@necy36
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Access array data
    N necy36

    Yes, that's correct.

    C / C++ / MFC data-structures help question

  • Access array data
    N necy36

    I tried using []. Will I have to use it for each element of the array?

    C / C++ / MFC data-structures help question

  • Access array data
    N necy36

    Original code looks like this: if (local->decode) { swt[0] = 0; swt[1] = 1; swt[2] = 1; swt[3] = 1; up to [15] } locals->temp = 0; for (mode_index = 0; mode_index < 16; mode_index++) { if (swt[mode_index] == 1) { locals->temp += (1 << mode_index); } } ==================================== What I am attempting to do looks like this where I tried *swt and swt[0], swt[1], swt[2], etc...: nom3as = nim3as if (nom3as == 0) nom3ac = 0; else nom3as |= 0x00002000; nom3ac = swt;

    C / C++ / MFC data-structures help question

  • Access array data
    N necy36

    A thumbwheel switch (swt) has been assigned a 16 element array to determine which number is selected. How would I access that data? When I try *swt, I recieved error messages and warnings. When I use swt[0-16], I get zeroes as the switch values.

    C / C++ / MFC data-structures help question
  • Login

  • Don't have an account? Register

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