Results 1 to 6 of 6

Thread: writing to an array in VC++ 6

  1. #1
    t420h
    Guest

    writing to an array in VC++ 6

    how?????

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Writing to what kind of an array? Write what?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    Code:
    //char array to make a string
    char hello[7];
    hello="hello";
    
    //write a number to each
    int numbers[11];
    for(int i=0;i<11;i++){
         numbers[i]=i;
    }
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  4. #4
    t420h
    Guest

    o

    heres what we are suppoed to do....

    have someone enter a phone #, re print whate they typed, but after that, you have to see f there were any letters, if tere were, translate them into numbers, so i have to search the array it was stord in how?

  5. #5
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    well i assume its a int array.

    so you would use a for loop and loop through it, and check if it's a character. if it is, use a if/else or switch/case to check the letter and assign teh right number.

    is this for school? you should have learned how to do it
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  6. #6
    t420h
    Guest

    no

    no.. im tring to figure out diiferent ways to use arrays, i had pascal back in the day, and we did a program like it , and wated to ty it in C++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width