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:
...
Type: Posts; User: JM1082
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:
...
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!...
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...
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...
So would you recommend I send the SIGALRM from the handler?
The program is never meant to stop, just continually print whichever process isn't paused! Hence infinite loops!
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...
Thanks! You fail to see these OBVIOUS things after too long! ;-)
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...
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...
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?
/*...
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...
Thanks Serapth!
Game From Scratch has been really helpful! Thanks so much for your advice!!!
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:...
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...
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...
Ooops I didn't realise, I thought binary files could only end .bin :-S
I've copied those files in anyway! ^^
I'm not sure, but I don't think so! I've literally followed the steps in the tutorial!
I'm using Visual Studio 2010 Express C++ edition, the SFML tutorial said it's compatible.
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...
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! :^)
That worked a treat! Thanks so much!!! :^)
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.
...
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...
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...