CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hixidom

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Predefining Object Names Before Initialization

    Thank you very much for all of the responses; they were all very helpful.

    I have read about vectors before but have never really used them, and I've never even heard of lists or maps before. I...
  2. Predefining Object Names Before Initialization

    Hello all.

    First of all, I just want to thank everybody who helps noobs like me on this site. I know we can be a pain sometimes.

    Anyways, my problem is that I'm trying to create a program...
  3. Replies
    1
    Views
    1,208

    M_APM Linker error

    I have a program in which I am using MAPM functions to deal with large numbers. I've written the program and have included m_apm.h but I still get an error, upon compiling, that says [linker...
  4. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    Ok, this is what I've got so far. I'd like to point out that there are roughly half as many lines in this version of the program as there were in the original (136 vs. 267). I couldn't have made so...
  5. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    Thanks guys.
    You've gotten me really excited about the prospect of picking up where I left off in learning C++. Before I post my next reply, I'll have learned and implemented all of the aspects of...
  6. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    Well, I made a few changes. I got rid of a few global variables, I simplified processpix(), I added explanatory notes (which might be written in the wrong format, I'm not sure). I've attached a...
  7. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    Well, here's the revised/improved code. The reason the for() statement was stopping on the third iteration was a few break commands that shouldn't have been there (go figure). The program is...
  8. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    well Lindley, the code you posted is completed new to me, but if it works, then it's exactly what I'm looking for. I'll give it a try.

    Speedo, you're right, I am very sloppy about my format. ...
  9. Replies
    23
    Views
    10,544

    Re: for() statement stops at 3rd interation

    First of all, thank you Memeloo for replying just to let me know that you're too much of an asshole to help me. That's good to know.

    Laserlight, your suggestion is a good one, but I don't think...
  10. Replies
    23
    Views
    10,544

    for() statement stops at 3rd interation

    Hello.
    I'm having a problem with this computer program. Suffice it to say that I have narrowed down the problem to the exact statement that seems to be malfunctioning. Why elementary C++...
  11. Replies
    2
    Views
    1,867

    Re: Trouble with OpenGL tutorial

    I think I'm getting the same errors. I'm pretty sure that I'm linking the library to the project correctly, and I changed the GLUT header to #include<GL/glut.h>, making sure that the glut.h was in...
  12. Replies
    2
    Views
    1,867

    Trouble with OpenGL tutorial

    I'm new to OpenGL. I'm reading the book Interactive Computer Graphics with OpenGL (Angel). As a test of the concepts taught in the book, I tried compiling the first example program, only to find...
  13. Replies
    8
    Views
    3,589

    Re: seekg() not working?

    (I'm amazed when I actually pull it off myself)

    Anyways, you seemed to be stuck on the fact that the following loop runs 16,080 times:

    for ( a = 0; a < (y * w) + x; a++ )
    ...
  14. Replies
    8
    Views
    3,589

    Re: seekg() not working?

    Using lines such as cout<<image.tellg() is the only means of code checking that I am familiar with. Otherwise, I just try to make sure that I set the loop parameters in the program in such a way...
  15. Replies
    8
    Views
    3,589

    Re: seekg() not working?

    Perhaps opening ABC.txt as a binary file will help in other ways, but it still did not solve my problem: image.tellg() still returns -1 every time.

    Regardless, thanks for the suggestion. I did...
  16. Replies
    8
    Views
    3,589

    seekg() not working?

    I don't really know what the cause of this problem is, but I've definitely encountered the same problem before.

    In the code, on line 71, where I've presumed the origin of the problem to be, there...
  17. Replies
    3
    Views
    730

    Re: Function always returns zero

    That did it!
    Thanks a lot.
    Andy
  18. Replies
    3
    Views
    730

    Function always returns zero

    Can anyone tell me why this function always returns zero?

    double func(double n)
    {return (1/6)*(sin(sqrt(
    (pow(n*(a[0]-c[0]),2)+pow(n*(a[1]-c[1]),2)+pow(n*(a[2]-c[2]),2))+
    ...
  19. Replies
    1
    Views
    527

    How to have a program "think ahead"

    Hi all.
    I'm making a chess program (c++). The output of the program is simple: "Your move:" on the player's turn ... "thinking..." (and, of course, a move) on the program's turn.

    My problem is...
  20. Thread: Adf

    by hixidom
    Replies
    3
    Views
    886

    Re: Adf

    Thanks for the links. I guess I'll look around for some appropriate hardware on **** and elsewhere.

    On the other hand, is there a way for me to use my Amiga floppy drive with my PC?

    Andy
  21. Thread: Adf

    by hixidom
    Replies
    3
    Views
    886

    Adf

    Hi all.
    I'm looking for some advice regarding Amiga disk files.
    I have dozens and dozens of old Amiga game disks that I can't use anymore because my Amiga hasn't worked for a long time.

    I want...
  22. Replies
    5
    Views
    739

    Re: Run-time Performance Anomaly?

    First of all, I found the problem!
    Second of all, I'm sorry that I did not post an example program when I first asked for help in this thread. I realize now that doing so would have made finding...
  23. Replies
    5
    Views
    739

    Run-time Performance Anomaly?

    I have a simple for() loop in a program that I am writing. This for() loop is the slow part of the program, so when modifications are made to the length of the loop, the effects are easy to observe....
  24. Thread: code problem

    by hixidom
    Replies
    20
    Views
    2,447

    Re: code problem

    The program finished the output model after running for 20 hours.

    Do you know why it takes so long to run? It doesn't seem like it should take as long as it does.
    Is there a way to make the...
  25. Thread: code problem

    by hixidom
    Replies
    20
    Views
    2,447

    Re: code problem

    Alright!

    Thanks for everyone's help!
    I finished "debugging" the program about an hour ago. It's working perfectly!

    One thing that I lament is how long it takes for the program to run. It's a...
Results 1 to 25 of 36
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured