Search:
Type: Posts; User: TheLinuxDuck
Search:
Search took 0.16 seconds.
-
goon12:
In my opinion, fgets is the best thing for buffered user input. The problem with using it comes into play when the users input is as long as or longer than the char * to which the...
-
Because conio.h is a DOS header.
The problem is that input is buffered, which means that you can press keys until you're blue in the face (or the buffer fills), but until you hit enter, those...
-
Not to be rude, but a simple search through this forum will show that this type of question has been asked, and answered, many times. Just search for "unbuffered input" and you'll get a whole slew...
-
I found this with a little bit of surfing.. it doesn't sound complete, but possibly a place to start?
http://www.nongnu.org/jcurzez/
And another:
http://sourceforge.net/projects/javacurses/
...
-
Here are some links for java tutorials:
http://java.sun.com/docs/books/tutorial/
http://www.ibiblio.org/javafaq/javatutorial.html
http://sepwww.stanford.edu/sep/josman/oop/oop1.htm
There's...
-
The first thing you're talking about is an array.. an array just a collection of like-variables into one easy-to-access place.
For example:
#!/usr/bin/env python
list = [ "Bananas",...
-
That would probably explain the difficulties I had. (=
Thanks for the heads up!
-
Energon:
You helped me plenty by proving that it is the compiler..
I was thinking maybe it was the way that the gdi32 library was being used, but I eliminated it from the loop, and it's...
-
I don't really know where else to go for help, because I feel more comfortable with you guys than I would in a place where I don't know anyone... the taboo is this: I need some windows programming...
-
from what I've been able to gather, echo won't handle ansi codes.. you'll have to use the bash verison of printf (man 1 printf). I've never been able to get echo to work with ansi escape codes.. ...
-
Try this out:
#!/bin/bash
FILE="/usr/bin/gs"
SIZE=`ls -l $FILE | tr -s ' ' | cut -f 5 -d ' '`
echo "Size of '$FILE' is $SIZE"
if [ "$SIZE" -ge "1024000" ]; then
-
kmj informed me that when a lighting source is used, it turns off object color.
That would explain it for sure.. and, also, it looks like the use of a glMaterial* function is required for the...
-
I don't know of any direct ways to do this, but the way I would probably do it would be to put all the images into a data file of some sort. This would allow you to format the datafile exactly as...
-
I've tried to adjust the alpha of the object's color, via
glColor4f(temp, 1.0f - temp, 0.0f, 0.5f);
(as opposed to 3f, which only specifies rgb) but it doesn't seem to be having any...
-
I've been toying with openGL going through NeHe's openGl tutorials (http://nehe.gamedev.net/tutorials/lesson.asp?l=01), and doing my own stuff with it as well. Anyhow, my dilemma is this:
If I...
-
-e is a file test conditional to test for the existense of the file/dir. If something exists of that name, then the -e conditional will return true. Just in case you aren't familiar with them,...
-
I would suggest that the code first changes into the directory given, and then issues a `pwd`, so that a full path will be returned:
#!/bin/bash
if [ "x$1" == "x" ]; then
echo...
-
The reason I didn't used strchr is because I didn't want to include the string header. I wasn't using anything else from it, so I figured there is no need to include it, especially when this...
-
Here is my version that does not use switch/case. It uses an array to store the counts. A string is given of acceptable characters, the grades, called accept. Another array for the counts, called...
-
Try assiging the pointer as:
adder_nf = &get_function;
When I did it like that, I didn't get any warnings.
I'm guessing, but I think that doing the assignment as:
-
Why don't you go ahead and post the code. It seems to me that reading from a socket would allow you to grab pieces in chunks, so you can monitor the size...
-
JvsJ:
Another qool trick to use is when you need to determine the uppercase letter, just and it by 223. That will make sure that the letter is always uppercase.. in your example, the code...
-
No problem! I hope that you're able to solve the problem... I know how frustrating it is to be stuck on something and not know where to go. (=
-
http://www.tronche.com/gui/x/
Try that. (=
-
Although ncurses will work for the color stuff, that's an awfully big library to implement just for colors.
If it's a console app, use ansi escape sequences. They work fast quick and easy. Here's...
|
|