Search:

Type: Posts; User: baniakjr

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,518

    hmm thanks i've tried that before but wrongly put...

    hmm thanks i've tried that before but wrongly put * in new part. Now i know:)
    thanks a lot

    edit:It's my school project and i'm unfortunatly not allowed to use vectors.
  2. Replies
    3
    Views
    1,518

    dynamic array of pointers?

    I have a question. Is it possible to create dynamic array of pointers?I need to create array of pointers inside of class and the array will change in size.

    Normaly i would have


    class player...
  3. Replies
    6
    Views
    1,952

    Edit: Thanks for help.I rearranged all includes...

    Edit: Thanks for help.I rearranged all includes and it's working fine now. I was also trying to use in unit class function that was using unit class element, i think that was a problem.
  4. Replies
    6
    Views
    1,952

    no i haven't got it. I've tried to move all...

    no i haven't got it.
    I've tried to move all includes to main.h and only include main.h in all other files.
    but then it come out with some other even stranger errors.
    Damn and yesterday it was all...
  5. Replies
    6
    Views
    1,952

    hmm i correcteed it but i still get the same...

    hmm i correcteed it but i still get the same error. It looks like it didn't initialize class unit and don't recognize it... :(
  6. Replies
    6
    Views
    1,952

    classes, inheritance and include problems

    My problem looks as follows. I've got two classes Unit which is a base class for infantry they're in separate files

    infantry.h

    #ifndef JB_INFANTRY_H_INCL
    #define JB_INFANTRY_H_INCL
    ...
  7. Replies
    6
    Views
    3,250

    I see the point. Thats true. But still i've tried...

    I see the point. Thats true. But still i've tried that in borland C++ builder X and when i tried to enumerat lik this


    enum TerrainType
    {
    Plains=0,
    Forest = 0,
    Hills = -42,
    Swamp =...
  8. Replies
    6
    Views
    3,250

    Hmmm.Ok i'll use int. Funny thing is that borland...

    Hmmm.Ok i'll use int. Funny thing is that borland C++ builder X is compiling it and C++ builder 6 not. I've also found somebooks and tutorial that says it's correct code.That's why i'm puzzeld.
  9. Replies
    6
    Views
    3,250

    enumerated type and lvalue missing

    I've writen some program in borland C++ builder X the want to compile it in builder 6 and VS C++ 2005 and i've got such problem in both compilers i get such error

    "error C2676: binary '++' :...
  10. Replies
    2
    Views
    1,839

    Thanks.You're my hero.I was begining to warry...

    Thanks.You're my hero.I was begining to warry that i'll have to change whol writing reading process. But now it works. Hmmm fun thing is that i was looking on openmodes but didn't manage to find...
  11. Replies
    2
    Views
    1,839

    file overwriting/truncating

    i've got another problem hope that's the last one. I've been searching and trying diffrent think but i don't know what to do.

    I've got some array of classes stored in file


    void Newmap(char...
  12. Replies
    8
    Views
    1,781

    Thanks.Hmm such an obvious mistake.

    Thanks.Hmm such an obvious mistake.
  13. Replies
    8
    Views
    1,781

    Enumeration problem

    i've got such problem.I have enumeration declared in main.h header file and i wont to use it in files name.cpp ans name.h wich have definition and declaration of class name. And when i'm using...
  14. Replies
    6
    Views
    1,545

    Hmmm.thanks that sounds just fine.At the begining...

    Hmmm.thanks that sounds just fine.At the begining i was worry about not taking under consideration the size of Mapsqr when using seekg().Thanks a lot.I'll try it when i'll have some time :)
  15. Replies
    6
    Views
    1,545

    Reading from file.But only part of it.

    Ok i've got some problem.I have function that saves array of class objects to a file using write function from fstream.h



    #include<iostream.h>
    #include<fstream.h>
    #include"Mapsqr.h"

    void...
  16. thanks a lot.Your help was most usefull.Now...

    thanks a lot.Your help was most usefull.Now everything works fine.finaly i used mem allocation and for loop.
  17. Thanks for answers.They're quit helpfull.Now i...

    Thanks for answers.They're quit helpfull.Now i know that i always pass a pointer not an array to function and that i have to make a copy to distinguish them.

    And my second question is.Are there...
  18. Array coping into another array?or function returning array

    My problem looks like that i have class wich have some array and i need to pass it somwhere alse. How to do it? I've tried passing pointer but then when i modify array i get i also modify one in...
  19. Replies
    5
    Views
    2,611

    I didn't count on such quick replay,thanks. ...

    I didn't count on such quick replay,thanks.

    Thanks for link to tutorial i've already start reading it.

    I know windows programing is not easy but i just want to give a try.I've got some basics(i...
  20. Replies
    5
    Views
    2,611

    Simple window program

    Ok i'm my knowleg of c++ is not to big... enough to write simple consol programs. I need help with program that are a normal window in windows(damn,maybe someone will understand that:)my english is...
  21. Replies
    1
    Views
    1,150

    simple graphic (dos/consol)

    I want to write simple game(consol application) and i would like to make some graphic (color squers nothing complicated). Someone told me about graphics.h library,but now i know it's for borland...
Results 1 to 21 of 22