CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: howardstark

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    8,688

    splitting a string into 2 strings c++

    hey guys i have an array of strings that i need to split into 2 different string.



    string title = " "Rebecca" "Alfred Hitchcock" ";

    so far all the data is in one string called title...
  2. Re: reading into array/2d array from mixed text file..

    Right now all the data is stored as string.. How do I extract? Because 1's and 0's are also stored as lines in string using get line... Whereas they should be stored in 2D array table. Thank you
  3. Re: reading into array/2d array from mixed text file..

    my hw is wayyy different.. im just trying to learn how to read more than one different data types from a file.. until now we only learned reading int..
  4. Re: reading into array/2d array from mixed text file..

    the names are only 3 letters, but the teacher said array should be able to hold up to 60 names.. she gave us a new file.. so now the file has 15 names and table is also 15 x 15 but the table should...
  5. Re: reading into array/2d array from mixed text file..

    yeah there are 2 different arrays.. string names[60] and table[60][60].. but they are mixed up.. how do i make sure.. names get read into string and numbers into table??



    for (int i = 0; i <...
  6. reading into array/2d array from mixed text file..

    I know to read a strings into array and tables.. what is they are mixed up?? strings are just names ( 3 characters) and there are bunch of table.. the max size was set to 60

    ex. text file

    JES...
  7. Re: printing 2 arrays with 10 numbers per line

    they are different because in this one i know the how many elements each array has, in the other thread. i dont know hom many elements each array has but just maximum elements it can hold.
  8. printing 2 arrays with 10 numbers per line

    hey guys i got 2 arrays, how would i print 10 numbers per line, so that would be 5 numbers from each array.

    array1[40];
    array2[40];


    array1 array2// array1 array2// array1 array2 // array1...
  9. Replies
    5
    Views
    4,876

    Re: printing arrays to file. in order

    i would but there are a total of 40 elements in all the arrays together.. so i was wondering is there a quicker way to do with a loop
  10. Replies
    5
    Views
    4,876

    Re: printing arrays to file. in order

    the above format didnt print how i wanted too
    [code]
    //EVEN ODD NEGATIVE
    // 2 3 -2
    // 4 5 -4
    // 6 7 -9

    [code]
  11. Replies
    5
    Views
    4,876

    printing arrays to file. in order

    hey guys i have 3 arrays (even, odd and negative), they are all different sizes, but they maximum elements they can have is 50. how do i write them to a file in this format

    EVEN ODD NEGATIVE
    ...
  12. How to write an array into 3 diff. arrays? odd, even, negative

    question : Place the even lucky numbers in an array called evenList, the odd lucky numbers in an array called oddList, and the negative lucky numbers in an array called negList.

    //So in main main...
Results 1 to 12 of 12





Click Here to Expand Forum to Full Width

Featured