Search:

Type: Posts; User: +Azazel+

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. [RTYPE] Server / Client Game synchronization

    Hello everyone,

    As part of a University project, I'm developing a RTYPE-like game. Although, we are pretty much free to do it as we like, there are Platform and Library constraints. For example,...
  2. Replies
    2
    Views
    1,815

    Writing a server in c++

    Hello everyone!

    Well, I'm currently writing a VOIP server in c++; and recently I've ran into a problem.

    I'm having trouble thinking the 'c++ way'. What do I mean by that?

    Its hard to...
  3. Replies
    0
    Views
    1,124

    Virtual Functions in DLL.

    Hey guys,

    I have a DLL in which I declare and export a class. The problem is that this class inherits a base class that is not in the DLL. And as well as that, it implements virtual functions that...
  4. Replies
    1
    Views
    1,777

    Using stack of stl with custom container.

    Hey everyone!

    I have written my own kind-of-custom-version of the stack container in the STL. The iterators seem to be working and the basic push/pop/size I did.

    Now there is one thing that...
  5. Replies
    11
    Views
    1,523

    Alright, and in this case why does: ...

    Alright, and in this case why does:

    compare("string1", "string2");

    call the compare (const T& a, const T& b) and not the:

    compare<char *>(char* const & a, char* const & b).

    string1 is a...
  6. Replies
    11
    Views
    1,523

    Const pointers/references

    Hello everyone!

    I have this interesting problem. Here is my code:



    template <class T>
    int compare (const T& a, const T& b)
    {
    if (a == b)
  7. Replies
    19
    Views
    3,272

    Protected / Private Variables accessable.

    Yop guys,

    I have this bizzare (to me) question. I have a simple class:


    class Koala
    {

    public:
  8. Replies
    9
    Views
    2,933

    Not sure if this is what you need, but when my...

    Not sure if this is what you need, but when my group and I were rewriting the command "top" this is what we used to see what processes are running/cpu they take/ram/etc.



    #include...
  9. Thread: remove a file

    by +Azazel+
    Replies
    6
    Views
    1,567

    If you are on Unix use int unlink(const...

    If you are on Unix use


    int unlink(const char *path);
  10. Replies
    4
    Views
    2,657

    To create my shell I used, the termcap library....

    To create my shell I used, the termcap library. Its standart for all terminals, and not to hard to work with.

    http://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html
  11. Replies
    5
    Views
    2,611

    while (x = 1) You probably meant to say: ...

    while (x = 1)


    You probably meant to say:



    while (x == 1)
  12. If you ever need to compare a fixed-length of...

    If you ever need to compare a fixed-length of characters in a string, you can use strncmp(); Its the same as strcmp but it takes a third argument, which is the number of characters to compare.
  13. Replies
    12
    Views
    38,341

    I think I know what you mean, but I dont think...

    I think I know what you mean, but I dont think you could do it as you want it. You could use "|" to seperate the cols and "--" to seperate the rows but the rows would be abit far from each other.
    ...
  14. Replies
    1
    Views
    1,066

    Abit of Python-to-C help.

    Hey guys,

    Im writing a sudoku game following this article:
    http://norvig.com/sudoku.html

    Im getting close, but Im having a problem with the "search" function.
    Its:


    def search(values):
  15. Replies
    8
    Views
    1,226

    Yep, I know that. I have already set the terminal...

    Yep, I know that. I have already set the terminal into non-canonical mode + I know how to utilise Termcap. All Im really worried about is getting that line which the user will be modifying.
  16. Replies
    8
    Views
    1,226

    I know I know, but I still want to do it my way....

    I know I know, but I still want to do it my way. I mean in the end its "my" project so I might as well redo everything. (+ you learn more, I think )

    But thanks for the suggestion nevertheless ;)
  17. Replies
    8
    Views
    1,226

    yea, well you see the thing is: for it to...

    yea, well you see the thing is:

    for it to appear as the user types it, after each my_getchar I do a putchar of that character. Afterwards the user modifies the line, does some inserts or...
  18. Replies
    8
    Views
    1,226

    Aha I see. Yea I found some stuff on...

    Aha I see. Yea I found some stuff on inserting/deleting characters with Termcap. I was wondering how would I keep track of the line that was typed? So that I can parse it afterwards.

    edit: I also...
  19. Replies
    8
    Views
    1,226

    MyShell [line-editing]

    Hello guys,

    Im almost finished with writing my own shell, but I have just one thing to finish off. Currently to get the line that the user types, I do a read(). But I want the user to be able to...
  20. Thread: My shell

    by +Azazel+
    Replies
    3
    Views
    1,895

    My shell

    Hello guys!

    I am writing my own shell, and while the basics are complete I came upon a problem.

    At the current moment Im trying to implement multiple Pipes and redirections in my command line....
  21. Thread: Float problem

    by +Azazel+
    Replies
    23
    Views
    3,262

    Float problem

    Hey guys! I think I must be going crazy...



    int main()
    {
    float test = 48 / 512;
    printf("%f", test);
    return (0);
    }
  22. Replies
    3
    Views
    1,455

    Sorry for bothering, I found the mistake. It was...

    Sorry for bothering, I found the mistake. It was here:

    vars->env[i] = &environ[i][0];

    As far as I am guessing I was assigning the memory address of environ to vars->env so when I was freeing...
  23. Replies
    3
    Views
    1,455

    Freeing a char**

    Hello guys! I have a problem with freeing allocated memory.

    What I have is a structure called "vars" in which I have a char **env.

    This env will contain all the environment variables of the...
  24. Replies
    4
    Views
    1,756

    Mathematics book.

    Hello,

    Im looking for a book that very well explains the concepts of mathematics in Graphics. Stuff like matrices, vectors, and how they are used in graphics. Also things like, ray-casting and...
  25. Replies
    9
    Views
    1,531

    Include depending on system.

    Hey guys.

    I seem to have a small problem.
    I want to make a condition in the c preprocessor, that if it is a specific system I need to do something.

    I have FreeBSD and SunOS. I need it to do:
    ...
Results 1 to 25 of 72
Page 1 of 3 1 2 3