i found out i can use
void main()
{
point p[3];
p[1].setp1(1);
cout << "points: " << p[1].getp1() << endl;
Type: Posts; User: eastmus
i found out i can use
void main()
{
point p[3];
p[1].setp1(1);
cout << "points: " << p[1].getp1() << endl;
if u dont put "using namespace std;" on top, then you will have to put "std::" in everything below, or the compiler cant recognize the cout<< and other things.
this is my simple test class, showing 3 points: 1, 2, 3.
These are 3 separate fields.
I want to try to use arrays like p[3]={0,1,2}.
But i fail in getting that to work.
Maybe someone can help...
it would work then with
void DrukStudentGemiddelde(struct student s)
{ /* naam en gebdatum (dd/mm/jjjj) afdrukken */
printf(" %d",s.resultaat);
}
but my point of learning to use struct...
i could answer and give you a nice code to work with, but ive read the "read me first" and you should come up with your own effort first ?
if im wrong, tell me and i'll give you a code to work with
thanks Elysia, but i cant seem to figure out how to target 85 only.
since
DrukStudent(studentrij[1]);
will give
Hello
i have a problem calling the struct class data from inside an array...
error: C2664: 'DrukStudent' : cannot convert parameter 1 from 'int' to 'student'.
struct student
{
char...