User Profile

Collapse

Profile Sidebar

Collapse
steele20
steele20
Last Activity: Oct 15 '06, 11:01 AM
Joined: Sep 1 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • steele20
    started a topic Stack error
    in C

    Stack error

    hello I am getting this strange error

    Linking...
    Cpp2.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Stack::push(cha r const &)" (?push@Stack@@Q AE_NABD@Z)
    Debug/Cpp2.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.


    I am not really sure why


    My stack.ccp is this

    /*************** *************** *************** *************** **************...
    See more | Go to post

  • steele20
    started a topic simple question!!!
    in C

    simple question!!!

    I want to make it so I can keep calling randomnumber() and generate numbers between 0 and 2, but I can only make it so it calls it once then prints the same number 3 times. Any clue on how I can fix my code to keep calling randomnumber() ?


    please take a look

    class vacuumcleaner
    {
    public:

    vacuumcleaner() ;
    void randomnumber(in t *number);
    private:

    };...
    See more | Go to post

  • steele20
    started a topic passing
    in C

    passing

    Hello, I got a main with


    void main()
    {
    int i =0;
    int finalarray[30];
    inputfile( finalarray, &i);
    }

    and I want to pass finalarray to class vacuumcleaner, not sure how to do this because I keep getting errors. Wouldn't it be something like.

    void main()
    {
    int i =0;
    int finalarray[30];
    inputfile( finalarray,...
    See more | Go to post

  • steele20
    replied to No another Text File =]
    in C
    also if I use

    char line[100];
    fgets(line, 100, inFile);


    Doesn't this apply only for the first line-

    10 20 3
    See more | Go to post

    Leave a comment:


  • steele20
    replied to No another Text File =]
    in C
    hmm, not sure how to tokenize it though. I'm a bit dumb =\
    See more | Go to post

    Leave a comment:


  • steele20
    started a topic No another Text File =]
    in C

    No another Text File =]

    I have a problem, Im reading numbers from a text file like this

    10 20 3

    x1 y1

    x2 y2

    and so on, x and y are values and theres no limit but will probably not be more than 5 or so.

    What I want to do is fill an array with 10 at the first spot, 20 at the second spot, 3 at the third spot, and so on and disgregard the white spaces and new lines since im reading one character at a time....
    See more | Go to post
    Last edited by Niheel; Sep 1 '06, 05:16 PM.
No activity results to display
Show More
Working...