Search:

Type: Posts; User: Argyle

Search: Search took 0.00 seconds.

  1. It seems the file I was reading was different...

    It seems the file I was reading was different kind from what I thought it was. I'm sorry I wasted your time.
  2. My bad. I explained the problem badly :p. I don't...

    My bad. I explained the problem badly :p. I don't mind the change in the 'chunk's value. It's just that the CHUNK_MAIN and CHUNK_EDIT cases should execute and not the CHUNK_MAIN and the default case....
  3. Dino, if by non-working example, you mean what it...

    Dino, if by non-working example, you mean what it outputs:
    when the default case is commented it outputs:



    but when default case is uncommented it outputs:



    Now, AFAIK the existance of...
  4. Yes ,that's the problem.

    Yes ,that's the problem.
  5. Switch-case statement jumps to default instead of a case

    For some reason the following code jumps from the first case to the default case :

    while(file.read(chunk,2))
    {
    switch(wordToshort(chunk))
    {
    case CHUNK_MAIN:...
  6. Replies
    4
    Views
    923

    It seems I forgot to post "Stack.cpp", sorry...

    It seems I forgot to post "Stack.cpp", sorry about that.
    Really, all I wanted for the code to do, was for it to compile. That is all.
    But thanks for the help.

    The argyle
  7. Replies
    4
    Views
    923

    Member function not working

    Im kind of lost here; Mingw gives me a "Expected a constructor,destructor or type conversion before '.'token"

    main.cpp

    #include <iostream>
    #include "Stack.h"


    Stack s;
  8. Replies
    6
    Views
    2,291

    Yes, that was the problem, thank ppl :D

    Yes, that was the problem, thank ppl :D
  9. Replies
    6
    Views
    2,291

    main.cpp: #include "includes.h" ...

    main.cpp:



    #include "includes.h"


    SDL_Rect r;

    r.x=16;
  10. Replies
    6
    Views
    2,291

    Trouble with SDL_Rect

    SDL_Rect r;

    r.x=16;//Removing this line clears errors


    produces:"Expected constructor destructor or type conversion before '.' token'.

    MinGW, WinXP
  11. Replies
    3
    Views
    2,943

    Odd, it was an other header file... Why did it...

    Odd, it was an other header file... Why did it show up in that .cpp file.:confused: Thanks for help.
  12. Replies
    3
    Views
    2,943

    Init-declarator?

    I try to compile the following .cpp file, but I get a "expected init-declarator before "enum":
    Windows XP, code::blocks and Mingw

    Setup.cpp:


    #include "Setup.h"
    #include "includes.h"

    enum...
  13. So instead of v.VecLength(v) i should have...

    So instead of v.VecLength(v) i should have v.VecLength?
  14. Oops! :eek: Thanks for pointing that one out!:)

    Oops! :eek: Thanks for pointing that one out!:)
  15. Something funny happening with operator overloading

    The arithmetics of the program are incorrect
    mvector.h


    #include <cmath>
    #ifndef _MVECTOR_H
    #define _MVECTOR_H
    namespace math
    {
    class Vector
  16. Replies
    2
    Views
    1,893

    Yeah I guess I should review my classes 101......

    Yeah I guess I should review my classes 101...
    Thanks for comments.
  17. Replies
    2
    Views
    1,893

    Class member initializations

    My compiler refuses to compile this code because of "ISO c++ forbids 'in-class initialization of non-const static member `ExStyle' ' How can I bypass this? Using Dev-cpp on Windows

    Thanks.:)
    ...
Results 1 to 17 of 17