|
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 .
|
|
Information
Villain is a regular at the stakes 2/4 - 5/T
I don't have many hands on him about 88,
that's because I mostly play 1/2. He's running
41/28/13 over these hands. (VPIP/PFR/3b)
Hand
2/4
Preflop : Hero is BTN with J A
MP folds , CO raises , Hero...
Started by TH3CLOWN on
, 12 posts
by 6 people.
Answer Snippets (Read the full thread at twoplustwo):
Whether or not he caps pf ever will affect his flop c....
35% fits the profile of someone who would c/r a gutshot.
Of flops....but that would imply he is C/R'ing more than just top pair which at least means you need to see a turn imo.
|
|
F*ck macon speedway and the c*ck sucking owners!!! F*ck macon speedway and the c*ck sucking owners!!! F*ck macon speedway and the c*ck sucking owners!!! F*ck macon speedway and the c*ck sucking owners!!! F*ck macon speedway and the c*ck sucking owners...
Started by Carl_Edwards on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at 4m):
2012 RACE COUNT
Brownstown (IN) Speedway - 1
Hartford Motor Speedway - 1
Illiana Motor Speedway - 1
Kankakee County Speedway - 1
LaSalle (IL) Speedway - 2
Plymouth (IN) Speedway - 2
Shadyhill Speedway - 1 I take it... .
What the heck is this all about? WOW.
|
|
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.
|