Search:

Type: Posts; User: Link_26

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    728

    Enumeration question

    Hi guys. I try to explain this as best I can. Here is the situation: I have a microprocessor app and programming software for the micro, with identical memory mapping.

    In my programming software,...
  2. Replies
    3
    Views
    1,467

    Yeah, except that still doesn't work. In the...

    Yeah, except that still doesn't work. In the equation x can be between 0 and 100 (part of my assignment), so the result is usually complex, and I don't know how to handle it.


    The complete...
  3. Thread: OpenGL and VC8

    by Link_26
    Replies
    1
    Views
    1,076

    I don't use the compiler (I use ol dev-c++), but...

    I don't use the compiler (I use ol dev-c++), but when I use glut.h, I have to manually link the library. I couldn't just include the header file.

    Also, can't you just go to your compilers...
  4. Replies
    3
    Views
    1,467

    Complex Numbers

    Hi

    I'm having a problem with complex numbers. I have an equation that I must use. However, most of the time the result is complex, and I think I just need the real part. This doesn't work:



    ...
  5. Replies
    5
    Views
    1,072

    lol Anyway, ok, here is some of my code. My...

    lol

    Anyway, ok, here is some of my code.

    My encoder outputting the file size as 4 bytes:




    /////////////get file size and send to decoder///////////////////
  6. Replies
    5
    Views
    1,072

    Advanced File IO

    Hello. I'm having trouble with file io. Hopefully someone can help.

    I don't know if anyone here knows much about huffman or arithmetic compression, but basically, you generate a sequence of bits...
  7. Replies
    0
    Views
    882

    Node switching help

    Hi. I am trying to implement a huffman binary tree for class. Each node has 3 pointers: left, right, and back to parent. I cannot for the life of me figure out why my code won't work for switching...
  8. Replies
    10
    Views
    2,670

    Create true AI

    Create true AI
  9. Replies
    23
    Views
    2,043

    I hope you know that the code won't work in many...

    I hope you know that the code won't work in many cases.
  10. Thread: 2 For-Loops

    by Link_26
    Replies
    5
    Views
    964

    Because 1535 is never less than 21.

    Because 1535 is never less than 21.
  11. Replies
    17
    Views
    2,199

    Your program is perfect in every way.

    Your program is perfect in every way.
  12. Replies
    10
    Views
    940

    They both work. p[i] = *(p+i)

    They both work. p[i] = *(p+i)
  13. Replies
    10
    Views
    940

    You might need to use a double pointer. You need...

    You might need to use a double pointer. You need to do something like this:

    int **p;
    p = new int*[n];
    for(int i = 0; i < n; i++)
    *(p+i) = new int[m];

    Someone might be able to tell you...
  14. Thread: Adding Vectors

    by Link_26
    Replies
    5
    Views
    1,508

    a + b = + =...

    a<x,y,z> + b<A,B,C> = <ax,ay,az> + <bA,bB,bC> = <ax +bA, ay + bB, az + bC>

    err, is that what you wanted?
  15. Replies
    4
    Views
    1,431

    Is this homework?

    Is this homework?
  16. Replies
    6
    Views
    1,719

    Use goto!

    Use goto!
  17. Replies
    9
    Views
    1,087

    The only error I get in the above code is the...

    The only error I get in the above code is the missing semicolon for the cin.get()
  18. Replies
    24
    Views
    5,027

    I got a version of "Learn C++ in 21 days" from...

    I got a version of "Learn C++ in 21 days" from the library before. If I remember correctly, it was pretty thick and went pretty far. Seemed good to me. It just takes way way longer than 21 days.
  19. Replies
    4
    Views
    1,358

    Noob question...What atof() function was the...

    Noob question...What atof() function was the program using since the header wasn't included, or why didn't the compiler complain?


    And gets() ftw :D
  20. Thread: text files

    by Link_26
    Replies
    9
    Views
    1,185

    A book from the 80's i think lol. You better get...

    A book from the 80's i think lol. You better get something recent.
  21. Thread: text files

    by Link_26
    Replies
    9
    Views
    1,185

    Oh...fin and fout are just variable names. Use...

    Oh...fin and fout are just variable names. Use whatever you want. Its just what my book uses. And fin is of type ifstream, which you use to get input, and fout is of type ofstream, which you use for...
  22. Thread: text files

    by Link_26
    Replies
    9
    Views
    1,185

    :P ? You mean my headers?

    :P



    ?

    You mean my headers?
  23. Thread: text files

    by Link_26
    Replies
    9
    Views
    1,185

    I thought maybe I read your post wrong. ...

    I thought maybe I read your post wrong.

    Anyway...


    This is the method I learned, so far.

    Use #include <fstream>

    Declare variables like
  24. Replies
    12
    Views
    14,756

    In your source file, you didn't include the...

    In your source file, you didn't include the opengl header. Without it, i get a bunch of errors too, but with it, your code compiles.

    #include <gl/gl.h>

    That work?
  25. Replies
    12
    Views
    14,756

    I use -lglut32 If you have just glut, use...

    I use -lglut32

    If you have just glut, use -lglut

    Is that what you wanted?
Results 1 to 25 of 52
Page 1 of 3 1 2 3