Search found 202 matches

Return to advanced search

Re: Java GUI

In Java, graphical user interfaces can use one of several toolkits including Swing, AWT (<--both Swing and AWT are part of the Sun JDK), SWT, QT's Jambi, and so on. Java uses an abstraction layer in order to be cross-platform compatible. Anyway, Swing is lighter than AWT and is therefore also eas...
by nathandelane
on Wed Apr 27, 2011 11:58 am
 
Forum: Programming
Topic: Java GUI
Comments: 11
Views: 1802

Re: Silverlight problem

That is how those types of players work. If you take a look at YouTube it has this same type of behavior; play in full-screen; if you press escape or focus a different program then it returns to original state. It is a programmed limitation and is working as designed. That isn't to say that there is...
by nathandelane
on Mon Feb 28, 2011 9:49 am
 
Forum: Programming
Topic: Silverlight problem
Comments: 1
Views: 752

Is the Value of a Programmer Determined by His Environment?

Now I'm not trying to mislead by the title of this post. So I'm clarifying first what I mean. I was born in 1980. I grew up with micro computers, PCs, the Apple 2 Family series, Commodore and Amiga, and Atari. My first PC operating system was MS-DOS 3.0 on a 286 with 64 Kb RAM and a 33 Mb hard drive...
by nathandelane
on Wed Jan 12, 2011 7:36 pm
 
Forum: Programming
Topic: Is the Value of a Programmer Determined by His Environment?
Comments: 2
Views: 674

Re: How to run a compiled file

Hmm . . . is it a compiler problem? The codes in the example in the book has no added codes in them, yet they seem to be able to be displayed in the console (or whatever the name was, the black window thing), the example uses Borland. In the past Borland has been known to automatically halt executi...
by nathandelane
on Mon Jan 10, 2011 10:49 am
 
Forum: C and C++
Topic: How to run a compiled file
Comments: 11
Views: 2916

Re: Dumb C question.

So first off, C is a compiled language, not a scripting language. This means that in order to run the program you must compile it into an executable. .c files are not inherently executable. Try running this in the same directory as your program file: gcc -o num num.c Then to execute the program ...
by nathandelane
on Sun Jan 09, 2011 1:53 am
 
Forum: C and C++
Topic: Dumb C question.
Comments: 6
Views: 2972

Re: C++ Array Help?

Nah don't worry about it. Anyway I'm glad I could help you out somewhat, even though I still can't find the problem of what's going wrong exactly. Thanks about my blog. I don't have much on there, because I don't have much time. But the things I write are things that are important to me, and that I ...
by nathandelane
on Thu Jan 06, 2011 11:05 am
 
Forum: C and C++
Topic: C++ Array Help?
Comments: 10
Views: 3036

Re: C++ Array Help?

C:\Users\the0nlyb0ss\Downloads\TicTacToe\TicTacToe>g++ -o tictactoe.exe -Xlinker --enable-auto-import main.cpp Board.h Board.cpp Game.h Game.cpp C:\Users\George\AppData\Local\Temp\ccbQyq39.o:Board.cpp:(.text+0x8e1): undefined reference to `...
by nathandelane
on Wed Jan 05, 2011 7:56 pm
 
Forum: C and C++
Topic: C++ Array Help?
Comments: 10
Views: 3036

Re: C++ Array Help?

Yes, basically std::fill_n is like a for loop. It can be used with any collection that is iterable, which if it's a C++ collection it is. The definition requires something that falls into the type "OutputIterator". OutputIterator is more specialized than just an array or collection, like v...
by nathandelane
on Wed Jan 05, 2011 11:55 am
 
Forum: C and C++
Topic: C++ Array Help?
Comments: 10
Views: 3036

Re: C++ Array Help?

Thanks for the quick reply :) An off-topic question about your code, I've never seen this before: std::fill_n(this->_board, Board::BOARD_SIZE, 0); What does that do? You're welcome. And to answer your question. std::fill_n is a function defined in <algorithm>. What it does ...
by nathandelane
on Wed Jan 05, 2011 12:37 am
 
Forum: C and C++
Topic: C++ Array Help?
Comments: 10
Views: 3036

Re: C++ Array Help?

So I tried out an idea based on what you're doing. I know it's not exactly the same code as you, but this code does what you expect it to and places the pieces in the correct slots in the array. So maybe you can give some more details on what you're doing and it'll help us help you. #include <alg...
by nathandelane
on Tue Jan 04, 2011 1:59 pm
 
Forum: C and C++
Topic: C++ Array Help?
Comments: 10
Views: 3036
Next

Return to advanced search