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
M

mrspam

@mrspam
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • string arrays in c++
    M mrspam

    Cool, What about if we take it one step further and have this: int main() { string mystring[] = {"ASD","asdf"}; int i; i = myfunc(mystring[]); cout << i; return 1; } int myfunc(string mystring[]) { int i; i = sizeof(mystring) / sizeof(mystring[0]; return i; } I get two different results when using the sizeof() in myfunc and sizeof in main.... Do I need to pass a pointer to the string??

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

  • string arrays in c++
    M mrspam

    Consider the following: string mystring[] = {"Hello","World"}; How do I find how many elements my array of has? If for example I wanted to loop through the array and count the elements that had the letter 'L' or 'l' in them. displaying something like: element 1: 2 element 2: 1 My main focus here is how do I find out the number if elements in a given array. Thanks in advance for your help.

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

  • Don't have an account? Register

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