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

Search:

Type: Posts; User: djgirotto

Search: Search took 0.04 seconds.

  1. Re: How do you pass a struct with an array member?

    Unfortunately the project I'm working on has a set requirement which states we must use arrays, don't know anything about vectors at the moment.
  2. Re: How do you pass a struct with an array member?

    I am still unclear as to how I would pass an array of structs to functions. Could anyone provide me with some assistance?

    Also.. if I want to compare user's integer input, if they input a value...
  3. Re: How do you pass a struct with an array member?

    Does this make sense?


    #include <iostream>
    using namespace std;

    void edit(Student *data);

    struct Student{
    int no;
  4. How do you pass a struct with an array member?

    How do you pass a struct with an array member to another function? This is what i have so far.
    People are telling me to use an array container ([] or *) but I have no idea how to implement this in...
  5. Replies
    9
    Views
    1,094

    Re: Array of Structs

    What does the setw(3) do?

    I pretty much want to loop x amount of times and prompt the user for those 3 inputs, store those 3 inputs in a separate struct for x elements of the array. Then be able...
  6. Replies
    9
    Views
    1,094

    Re: Array of Structs

    Say I wanted to do this..



    ...

    Student studentArray[10]; //declaration of Struct array

    struct Student studentArray[10]{
    int no;
  7. Replies
    9
    Views
    1,094

    Re: Array of Structs

    How would I access each member?


    Student array_of_students[x].no ?
  8. Replies
    9
    Views
    1,094

    Array of Structs

    I am looking into creating an array of structs, how would I go about doing that?



    #include <iostream>
    #include <cstring>
    using namespace std;

    void etc(struct Student* harry2);
    int x[2];
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured