Search:

Type: Posts; User: dyn4sty22

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,001

    passing pointers to a class function

    ok so i have this



    class Poly{
    private:
    struct node { int exponent;
    double coefficient;
    struct node *next;
    };
  2. Thread: Objects

    by dyn4sty22
    Replies
    4
    Views
    1,082

    i get this error error C2664: 'Poly::addPoly'...

    i get this error

    error C2664: 'Poly::addPoly' : cannot convert parameter 1 from 'Poly *' to 'Poly'
  3. Thread: Objects

    by dyn4sty22
    Replies
    4
    Views
    1,082

    Objects

    I'm having a little trouble with syntax with my program and i need some help.
    Can anyone show me the syntax for calling a function from a class with an object as its paramter and the syntax for the...
  4. Replies
    6
    Views
    1,401

    well, i wrote a previous program where i used a...

    well, i wrote a previous program where i used a linked list of structs to represent a polynomial broken up into its coeffficients and powers and then passed the pointer to the first structs to...
  5. Replies
    6
    Views
    1,401

    Link list of objects

    How would one go about making a link list of objects assuming i already have the class made?
  6. Thread: link list

    by dyn4sty22
    Replies
    5
    Views
    2,644

    ahh, got it, i'm new to C and still confused on...

    ahh, got it, i'm new to C and still confused on where i should and shouldnt put *'s and &'s. thanks everyone for the help

    -Dyn4sty
  7. Thread: link list

    by dyn4sty22
    Replies
    5
    Views
    2,644

    Awesome, thanks guy i got it but i have another...

    Awesome, thanks guy i got it but i have another simple question, how would i pass a pointer(to a struct) to a function??


    struct node
    {
    double coefficient;
    int power;
    struct node *next;...
  8. Thread: link list

    by dyn4sty22
    Replies
    5
    Views
    2,644

    link list

    Ok, so i have a link list of structs.. but in the wrong direction, is there a way to flip the elements in the link list?

    for example

    if have pointer -> 1-> 2 -> 3 ->Null
    but i need it pointer...
  9. Replies
    1
    Views
    921

    Array of structs

    Is it possible to have an array of structs which are link listed?

    -Dyn4sty
  10. Thread: fread

    by dyn4sty22
    Replies
    10
    Views
    1,518

    Perfect!! thanks Dave, you're a life saver!

    Perfect!! thanks Dave, you're a life saver!
  11. Thread: fread

    by dyn4sty22
    Replies
    10
    Views
    1,518

    should i still open it in binary mode? if not, i...

    should i still open it in binary mode? if not, i keep getting 0 for len
  12. Thread: fread

    by dyn4sty22
    Replies
    10
    Views
    1,518

    it store it like this in the output file

    it store it like this in the output file
  13. Thread: fread

    by dyn4sty22
    Replies
    10
    Views
    1,518

    #include #include #include...

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    /*Include this so we can calculate the runtime*/
    #include <time.h>


    /*Declare necessary constants*/
    #define LENGTH 80
    #define MAX...
  14. Thread: fread

    by dyn4sty22
    Replies
    10
    Views
    1,518

    fread

    i'm inputting a file that has a sample of text with multiple lines. i'm using fread to read it into a 1D array that has a max of 5000 characters. The text file will have less than 5000 characters...
  15. Replies
    2
    Views
    785

    nevermind, i just had a wrong number, my bad

    nevermind, i just had a wrong number, my bad
  16. Replies
    2
    Views
    785

    2D array help

    I'm having a problem with a program, i have a 2D array and each row has a streaming string and i'm guessing you cant access the individual elements cause when i try say for example to output...
Results 1 to 16 of 16