Search:

Type: Posts; User: eastmus

Search: Search took 0.00 seconds.

  1. i found out i can use void main() { ...

    i found out i can use


    void main()
    {
    point p[3];
    p[1].setp1(1);

    cout << "points: " << p[1].getp1() << endl;
  2. Replies
    4
    Views
    941

    if u dont put "using namespace std;" on top, then...

    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.
  3. messing around with classes: how to use arrays?

    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...
  4. Replies
    6
    Views
    3,129

    it would work then with void...

    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...
  5. Replies
    4
    Views
    1,160

    i could answer and give you a nice code to work...

    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
  6. Replies
    6
    Views
    3,129

    thanks Elysia, but i cant seem to figure out how...

    thanks Elysia, but i cant seem to figure out how to target 85 only.
    since



    DrukStudent(studentrij[1]);


    will give
  7. Replies
    6
    Views
    3,129

    calling struct class within array

    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...
Results 1 to 7 of 7