Hey everyone,
I ran into some issues while trying to compile a really straightforward Java program.
JFrame frame = new JFrame("a frame");
frame.add(new JButton("a...
Type: Posts; User: JakeFrederix; Keyword(s):
Hey everyone,
I ran into some issues while trying to compile a really straightforward Java program.
JFrame frame = new JFrame("a frame");
frame.add(new JButton("a...
I happen to love mazes a lot. And minimalism.
Not exactly what I had in mind. From what I understand Gnome is doomed to die soon. I would prefer to change Unity to my taste than to use something that I only enjoy for a limited time.
Also, on...
Is it possible to put the menu and main interface of a program back together again?
I don't like this splitup that Unity does.
first experience with Unity:
I open pidgin instant messenger
I...
Solved! Went into bios.
There was a setting there actually disabling the f-keys.
So annoying.
*bump*
Hi,
recently bought a HP G62-B45EB laptop.
The keyboard isn't quite what I want.
The normal keys are all functioning, but the f1 - f12 are instead used as multimedia keys.
Is there a layout...
It's just that I've been looking at this background and tile-set for a few weeks now.
And I wonder what an artist could make with the concept.
Example of how the game looks with my tiles and background.
I agree, they look decent.
But decent isn't good enough. I'm a perfectionist.
I want people to be able to taste the wood.
Or, someone else's idea on what the tiles should look like.
Doesn't...
I don't know exactly what you have in mind.
But I have managed a basic wooden tile. I'm actually looking for people who can do a better job than me.
So if it's a scanned in tile (and the quality...
And most software-engineers don't write software for free. And yet ...
The artist would be properly credited, that's something already.
And like I said, it's not a 'job'. It's a chance to design...
The way doubles are stored makes it tricky to compare doubles with infinite digits.
In fact, the highest precision can only be reached when using numbers that are a power (or inverse power) of two,...
http://www.cs.scranton.edu/~mccloske/courses/cmps340/hash_ext_examp.html
Declarations go in the .h file.
The code to make the declarations work goes in a .cpp file with the same name.
Unless it's a template class.
Hey everyone,
I'm in the process of designing a game. A scrabble clone.
Still looking for someone to do a decent job on the tiles.
I tried it myself, and I managed an ordinary tile. It's not as...
That's a bit disappointing.
I had expected a more complex solution.
Problem with the studies of software-engineering;
- loads of theory (including pseudo-code) of how algorithms work
- little...
When overloading the operator >> for a class I made, I got an error basically saying that I can not modify the object, because it's a read-only structure.
I've put the classes in a .zip file.
I...
You don't understand what I meant.
The program will know at runtime (before reading the file) what T is supposed to be.
But I want to store the model in binary form. So the read method needs to...
The problem is that when I read the stream in, I have to know the type of template parameter T.
I have separate methods for writing types like int,double, bool,std::string, ...
And when reading...
Back on track then;
Using the modified code (second post), how do I go from there to serializing the model for ints for instance?
Because, from my point of view it just introduced another...
First google-result for "implementation outside header c++";
http://www.learncpp.com/cpp-tutorial/89-class-code-and-header-files/
Article was written in 2007, after the standardization of c++...
In attachment are foo.h, foo.cpp and main.cpp
with foo a template class.
In case of a template class, include both foo.h and foo.cpp in main.cpp
And it will compile.
And I can only assume...
foo.h
#ifndef FOO_H
#define FOO_H
#include <string>
class foo {
I've already graduated you know. So it's not a homework question.
Also, calling g++ *.cpp works perfectly even if you split implementation and declaration.
I'm not exactly new to c++. It's just...