February 22nd, 2010, 04:44 PM
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.
February 22nd, 2010, 12:20 AM
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...
February 21st, 2010, 03:19 PM
Does this make sense?
#include <iostream>
using namespace std;
void edit(Student *data);
struct Student{
int no;
February 21st, 2010, 12:59 PM
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...
February 7th, 2010, 03:59 AM
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...
February 6th, 2010, 08:17 PM
Say I wanted to do this..
...
Student studentArray[10]; //declaration of Struct array
struct Student studentArray[10]{
int no;
February 5th, 2010, 11:38 PM
How would I access each member?
Student array_of_students[x].no ?
February 5th, 2010, 04:57 PM
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];