|
I use astyle to format my code most of the time, and I love it, but one annoyance is that it can't specify at least a "hint" for max line length. If you have a line of code like:
this->mButtonCancel->setLeftClickProc(boost::bind(&FileListDialog:...
Started by Nick Bastin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I know on *nix there is a binary.
If you google "Beautify C Code" you will find some nice utilities.
|
|
So I was doing some simple C++ exercises and I noticed an interesting feat. Boiled down to bare metal one could try out compiling the following code:
class nice { public: nice() {} }; int main() { nice n; return 0; };
The result is a compilation error...
Started by oleks on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Using namespace std <iostream> namespace test { class nice { public:....
It is similar to trying to name your class printf .
Extern "C" { #include <unistd.h> }
by function nice in libc.
With the global ::nice().
|
|
Hi
I'm a game programmer working in Korea
I started Stackoverflow recently and I found it help me a lot.
also I think communicating with other developers is good way to learnand improve myself
but the Stackoverflow is the only site I know to communicate...
Started by Jace Jung on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi,
Too often people....
Beyond3D.com is another good site (and forum ) frequented by game developers and gaming enthusiasts .
Gamedev.net has a great community of game developers, along with tons of great articles and resources related to game programming .
|
Ask your Facebook Friends
|
Is there any code for a nice notice box (Even a dll would be fine) Like the one kaspersky antivirus shows? Because in my script I use a lot of message box and the end-user start to complain that they need to click okay every time.
Started by Jonathan Shepherd on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe not an actual answer to your question, but if you users complain about the number... .
You can look at this exemple on CodeProject.
I suggest you create a custom control, which inherits from the message box and then you design it as per your liking .
|
|
Var insInvoice = new NpgsqlCommand( @"INSERT INTO invoice_detail( invoice_id, invoice_detail_id, product_id, qty, price, amount) VALUES ( :_invoice_id, :_invoice_detail_id, :_product_id, :_qty, :_price, :_qty * :_price)", c); with(var p = insInvoice.Parameters...
Started by Michael Buen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
});
What's the point of it, to scope the "p" variable?
In that case just create... .
I have done something similar:
var insInvoice = new NpgsqlCommand(...); insInvoice.Parameters.With(p => { p.Add("_invoice_id", NpgsqlDbType.Uuid, 0, "invoice_id"); .. .
|
|
This is in C++.
So, I'm starting from scratch writing a game engine for fun and learning from the ground up. One of the ideas I want to implement is to have game object state (a struct) be double-buffered. For instance, I can have subsystems updating ...
Started by Gary on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Use it for completely....
I wouldn't do anything 'clever' with operator overloading if I were you .
Since the graphic card's swapping will be much faster than yours, you should use theirs whenever possible .
I believe both DirectX and OpenGL support this natively.
|
|
Example: I would like to have the Add method of ICollection of a custom collection class to implement method chaining and fluent languages so I can do this:
randomObject.Add("I").Add("Can").Add("Chain").Add("This").
I can think of a few options but they...
Started by danmine on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
T item) { collection.Add(item); return collection; }
While fluent is nice, I'd be more interested.
|
|
I have Tile s which represent the tiles in a game's 2-dimensional world. The tiles can have walls on any number of their 4 sides. I have something like this at the moment:
interface Tile { boolean isWallAtTop(); boolean isWallAtRight(); boolean isWallAtLeft...
Started by jjujuma on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
A B C D
Bit A indicates a wall on the top, B the right, C the bottom, D.
Stating which side has a wall.
|
|
Lol here.
http://www.truploader.com/view/406151
i think i am going to stay with line style..
CnC please
Started by Sonicmanqaz on
, 5 posts
by 1 people.
Answer Snippets (Read the full thread at fluidanims):
Writer's.
It looked nice and clean, though I'm concerned as to why his head sank into his body...
|
|
Hey there everyone!
I haven't been in this site for a long time. Since then I have just about every key of Michael Burke's whistles- very nice! I record with them and they need to play in tune- which for the most part they do. But in my quest for the ...
Started by guitarman on
, 11 posts
by 5 people.
Answer Snippets (Read the full thread at chiffandfipple):
It looks like a nice whistle, even more-so now after reading your descriptionI've owned three low C....
It looks like a nice whistle, even more-so now after reading your at that Overton low C.
Looking at that Overton low C.
|