Search:

Type: Posts; User: JM1082

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    11,097

    /usr/bin/ld: cannot find -lgmp

    Hi all,

    I'm interested in using the GNU Multiple Precision library so I can work with big numbers however after a successful installation I can't run an example code.

    My code is as follows:
    ...
  2. Replies
    3
    Views
    997

    strcat() problems...

    Hi all,

    My program seems to be giving me an error in the form of a segmentation fault...

    Please see my code below with a comment show the point where program execution fails.

    Please advise!...
  3. No... still not quite right, but I like the way...

    No... still not quite right, but I like the way you've used the kill( pid ) thing! The messages are printing one at a time rather than very quickly, repeatedly until the process change... not far...
  4. No Salem, that's not what I want. But its good...

    No Salem, that's not what I want. But its good to see the pause & alarm are working together!
    The idea is to have the parent print line after line for 5 seconds & pause, then the child print line...
  5. So would you recommend I send the SIGALRM from...

    So would you recommend I send the SIGALRM from the handler?
  6. The program is never meant to stop, just...

    The program is never meant to stop, just continually print whichever process isn't paused! Hence infinite loops!
  7. Advice needed on correct usage of the pause() and alarm() functions...

    Hi all,

    I'm trying to write a program which will give two processes 5 seconds each to write their message to the screen.

    The problem is that the pause function isn't unpausing when the second...
  8. Replies
    2
    Views
    3,425

    Thanks! You fail to see these OBVIOUS things...

    Thanks! You fail to see these OBVIOUS things after too long! ;-)
  9. Replies
    2
    Views
    3,425

    Trouble with fork() & alarm()...

    Hi all,

    After countless hours going over my code I have no idea why it doesn't want to work...

    I'm trying to use fork() to print two messages for 5 seconds each using alarm() to swap the active...
  10. Thanks for your input but after checking YouTube...

    Thanks for your input but after checking YouTube I realized that the double clickings are solved by using a switch statement rather than an if statement.
    I'm still struggling to stop the "out of...
  11. :-( Why does my code register two mouse clicks per click? :-(

    Howdy ya'll,

    When I run the following code & click the screen any number of times I get one undefined mouse click to start with then for each click I get a duplicate one.

    Why is this?


    /*...
  12. Replies
    1
    Views
    6,076

    SFML Audio Problems...

    Hi all,

    My program, audioTest, is intended as a practise so that I can see how ths feature works!

    However, I'm being plagued by errors!

    My code, shown below, should be all I need to play...
  13. Thanks Serapth! Game From Scratch has been...

    Thanks Serapth!

    Game From Scratch has been really helpful! Thanks so much for your advice!!!
  14. After including all of the SFML.lib & SFML-d.lib...

    After including all of the SFML.lib & SFML-d.lib files to the additional dependencies field AND adding all of the SFML.lib & SFML-d.lib files to the program's directory I'm still getting this error:...
  15. After implementing that change I get this error...

    After implementing that change I get this error instead:



    1>------ Build started: Project: pong, Configuration: Debug Win32 ------
    1>pongMain.obj : error LNK2019: unresolved external symbol...
  16. I think the problem may have something to do with...

    I think the problem may have something to do with the project's Linker > Input > Additional dependencies.

    When I add or remove one or both of the sfml-graphics-d.dll & sfml-graphics.dll parameters...
  17. Ooops I didn't realise, I thought binary files...

    Ooops I didn't realise, I thought binary files could only end .bin :-S

    I've copied those files in anyway! ^^
  18. I'm not sure, but I don't think so! I've...

    I'm not sure, but I don't think so! I've literally followed the steps in the tutorial!
  19. I'm using Visual Studio 2010 Express C++ edition,...

    I'm using Visual Studio 2010 Express C++ edition, the SFML tutorial said it's compatible.
  20. )': Visual C++ & SFML compilation problems! :'(

    Hi all,

    After having followed the SFML tutorial on the website ( www.sfml-dev.org ) & successfully running their clock sample I decided to try my luck at compiling one of the sample programs...
  21. Replies
    4
    Views
    768

    User Input checking! Advice needed!

    Does anybody know how to prevent input of integer input to string variables & vice versa?

    If there is not a proper way then any good tips or tricks are also very much appreciated! :^)
  22. Replies
    3
    Views
    1,183

    That worked a treat! Thanks so much!!! :^)

    That worked a treat! Thanks so much!!! :^)
  23. Replies
    3
    Views
    1,183

    Linked list trouble...

    Hi all,

    I'm reading lines of data from a file & storing them into variables (successfully) however when I try to create an object instance with the data & add it to a linked list I get an error.
    ...
  24. Replies
    1
    Views
    2,070

    String/character input with getline

    Hi all,

    I'm able to use getline() in my loadLecturers() function if the text file contains one-word names, however, if I want a forename/surname combination it reads nothing and outputs a blank...
  25. Replies
    2
    Views
    1,402

    Aggregate class returns

    Hi all,

    I've been trying to create a function to display all lecturers in a particular department. The clue given to me by my tutor was to write two versions of this function, one at the...
Results 1 to 25 of 51
Page 1 of 3 1 2 3