id
string
question_id
int64
chunk_index
int32
embedding_text
string
dense_tokens
int32
sparse_tokens
int32
languages
list
tags
list
payload_json
string
dense
list
sparse_indices
list
sparse_values
list
bffa1375-a127-5d16-9937-b4f90f46a558
25
0
Title: How to use the C socket API in C++ on z/OS I'm having issues getting the C sockets API to work properly in C++ on z/OS. Although I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined. Am I missing something obvious, or is this related to the fact that being on z...
355
416
[ "c", "c++" ]
[ "c++", "c", "sockets", "mainframe", "zos" ]
{"accepted_answer_id":1443907,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T12:13:50.207000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2025-12-16T13:40:20.297000+00:00","last_edit_date":"2023-06-01T11:20:00.663000+0...
[ -0.0139617919921875, -0.019775390625, -0.0238494873046875, -0.0006551742553710938, 0.00623321533203125, -0.0159454345703125, 0.0123443603515625, 0.034271240234375, 0.005092620849609375, -0.0219268798828125, -0.0254058837890625, 0.034027099609375, 0.028167724609375, 0.0008726119995117188, ...
[ 14, 18, 23, 64, 97, 98, 100, 112, 126, 127, 138, 221, 313, 420, 441, 454, 468, 568, 647, 670, 954, 959, 991, 1286, 1340, 1733, 2485, 3190, 3871, 4488, 4527, 5201, 5659, 5962, 6713, 6954, 7285, 7413, 7464, 8035, 8368, 8647, 9351, 9...
[ 0.072265625, 0.01708984375, 0.026123046875, 0.15625, 0.1572265625, 0.0400390625, 0.0211181640625, 0.154296875, 0.095703125, 0.0888671875, 0.010986328125, 0.11328125, 0.1181640625, 0.0966796875, 0.046630859375, 0.02294921875, 0.0203857421875, 0.0634765625, 0.111328125, 0.0878906...
921bab26-813e-587e-aca5-93b59aefe98b
264
0
Title: BerkeleyDB Concurrency What's the optimal level of concurrency that the C++ implementation of BerkeleyDB can reasonably support? How many threads can I have hammering away at the DB before throughput starts to suffer because of resource contention? I've read the manual and know how to set the number of l...
127
145
[ "c++" ]
[ "c++", "concurrency", "database-performance", "berkeley-db" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2025-03-17T15:59:47.747000+00:00","creation_date":"2008-08-01T23:28:51.577000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["c++"],"last_activity_date":"2023-06-01T16:20:55.347000+00:00","last_edit_date":"2023-...
[ 0.006755828857421875, 0.0072021484375, -0.017730712890625, 0.0030956268310546875, 0.02142333984375, 0.00269317626953125, -0.022735595703125, 0.01535797119140625, 0.04998779296875, -0.005329132080078125, -0.037872314453125, 0.028564453125, 0.01202392578125, 0.0188140869140625, 0.031677246...
[ 7, 33, 70, 99, 106, 110, 136, 158, 186, 313, 335, 350, 438, 831, 982, 1314, 1657, 1672, 1884, 2076, 2408, 2773, 3714, 3884, 4293, 4295, 5423, 5941, 7077, 8060, 8108, 8305, 8781, 9191, 11249, 12301, 12638, 13267, 13810, 14012, 16065, 1...
[ 0.01220703125, 0.126953125, 0.0169677734375, 0.008056640625, 0.05810546875, 0.0078125, 0.0238037109375, 0.01806640625, 0.00390625, 0.05078125, 0.1162109375, 0.1591796875, 0.0419921875, 0.053955078125, 0.1875, 0.0927734375, 0.0986328125, 0.03271484375, 0.025390625, 0.126953125, ...
7a9204ab-6eb7-5670-ae0d-b65692f446cf
330
0
Title: Should I use nested classes in this case? I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Then I have workhorse classes that do the video decoding and video encod...
211
236
[ "c++" ]
[ "c++", "class", "oop", "inner-classes" ]
{"accepted_answer_id":332,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T02:51:36.470000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2025-05-30T20:54:00.187000+00:00","last_edit_date":"2023-06-01T11:31:49.070000+00:00","...
[ -0.0005164146423339844, 0.0153350830078125, -0.00820159912109375, -0.005855560302734375, 0.0318603515625, -0.01052093505859375, 0.00998687744140625, 0.037567138671875, 0.0098114013671875, -0.0030765533447265625, -0.03399658203125, 0.042816162109375, 0.01129150390625, -0.00998687744140625, ...
[ 7, 8, 22, 23, 53, 71, 87, 110, 184, 313, 587, 903, 959, 1202, 1631, 1632, 1884, 1957, 2856, 3835, 4127, 4488, 4527, 5201, 5351, 5665, 5922, 7225, 7279, 8512, 11301, 11814, 12620, 12877, 16454, 17164, 17368, 18507, 20697, 23282, 23755, ...
[ 0.020263671875, 0.1181640625, 0.001953125, 0.012451171875, 0.001953125, 0.2021484375, 0.0068359375, 0.002197265625, 0.1494140625, 0.062255859375, 0.130859375, 0.06005859375, 0.052734375, 0.140625, 0.031494140625, 0.02099609375, 0.0771484375, 0.0166015625, 0.037353515625, 0.1005...
9002b7fa-da3d-5fa9-b28f-717752fa06cb
601
0
Title: Robust Random Number Generation I'm looking for a performant, reasonably robust RNG using no special hardware. It can use mathematical methods (Mersenne Twister, etc), it can "collect entropy" from the machine, whatever. On Linux/etc we have a drand48() which generates 48 random bits. I'd like a similar functio...
168
190
[ "c#", "c++" ]
[ "c#", "c++", "random", "mersenne-twister" ]
{"accepted_answer_id":602,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2012-09-11T00:41:28.240000+00:00","creation_date":"2008-08-03T02:05:59.620000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#","c++"],"last_activity_date":"2023-06-01T11:36:18.937000+00:00","last_edit_date":"20...
[ 0.037506103515625, 0.006778717041015625, -0.0251922607421875, 0.039886474609375, 0.033447265625, -0.043701171875, -0.06494140625, 0.0038814544677734375, 0.0292510986328125, -0.026031494140625, -0.0269927978515625, 0.01540374755859375, 0.032257080078125, 0.02197265625, 0.03271484375, 0....
[ 10, 38, 86, 100, 104, 110, 111, 132, 306, 313, 627, 707, 765, 831, 959, 1015, 1295, 1515, 1650, 1884, 2452, 2789, 2806, 3815, 4527, 4572, 4785, 4904, 5361, 5608, 6493, 7432, 8066, 8110, 8160, 9285, 11192, 12353, 16487, 17368, 17777, 1...
[ 0.042236328125, 0.00341796875, 0.1474609375, 0.09423828125, 0.0201416015625, 0.054443359375, 0.06884765625, 0.076171875, 0.12890625, 0.0556640625, 0.1328125, 0.0150146484375, 0.004150390625, 0.07080078125, 0.0029296875, 0.1025390625, 0.05859375, 0.1416015625, 0.010498046875, 0....
29bc316d-adec-596f-b9bf-c4b31eb87b23
609
0
Title: Build for Windows NT 4.0 using Visual Studio 2005? An MFC application that I'm trying to migrate uses afxext.h, which causes _AFXDLL to get set, which causes this error if I set /MT: Please use the /MD switch for _AFXDLL builds My research to date indicates that it is impossible to build an application ...
121
114
[ "c++" ]
[ "c++", "visual-studio", "compatibility", "windows-nt" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T02:48:43.497000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-01T11:39:20.903000+00:00","last_edit_date":"2023-06-01T11:39:20.903000+00:00",...
[ 0.0028438568115234375, -0.0167999267578125, 0.0239410400390625, -0.0008935928344726562, -0.0002624988555908203, 0.0227508544921875, -0.0012359619140625, 0.045989990234375, -0.0025463104248046875, -0.01251220703125, -0.0312042236328125, 0.0238189697265625, 0.025848388671875, 0.0039901733398...
[ 47, 83, 100, 127, 248, 261, 441, 3773, 4078, 4488, 4527, 4878, 5423, 17368, 18499, 19882, 22968, 23708, 27529, 28247, 29062, 29568, 30607, 31577, 35652, 37223, 37290, 38415, 39666, 40401, 44644, 45367, 65779, 67688, 69201, 71924, 73372, 92837...
[ 0.0009765625, 0.04052734375, 0.0751953125, 0.119140625, 0.072265625, 0.1005859375, 0.01318359375, 0.072265625, 0.2216796875, 0.002197265625, 0.038818359375, 0.09228515625, 0.10498046875, 0.078125, 0.1376953125, 0.002197265625, 0.2119140625, 0.2060546875, 0.1240234375, 0.1201171...
dcffee47-0c5d-5f99-a87a-30d9276335a0
1,041
0
Title: Easy-to-Use Regular Expression Support in C++? I'm looking for a robust, easy-to-use, regular expression evaluator for native C++, either platform-independent or Windows-specific. Requirements: Can't use Boost or ACE regex libraries (unfortunately) Can't use .NET Regex (or any managed code) The main r...
82
104
[ "c++" ]
[ "c++", "regex", "open-source" ]
{"accepted_answer_id":17198991,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":"2016-05-16T01:37:15.330000+00:00","creation_date":"2008-08-04T05:50:00.337000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2023-06-01T11:44:47.847000+00:00","last_edit_date":"2...
[ 0.028839111328125, -0.005161285400390625, 0.0024471282958984375, 0.0003559589385986328, 0.0290679931640625, -0.041046142578125, -0.01239776611328125, 0.043426513671875, 0.0121002197265625, -0.0217132568359375, -0.045806884765625, 0.0268096923828125, 0.037261962890625, -0.000110745429992675...
[ 6, 10, 18, 23, 24, 42, 100, 184, 188, 313, 674, 748, 1062, 1830, 3181, 3355, 3773, 4032, 4171, 4527, 4935, 5201, 5608, 6835, 9803, 11678, 13651, 16487, 17777, 18151, 20324, 23468, 25129, 35773, 37223, 47881, 48962, 51684, 58832, 60627, ...
[ 0.02978515625, 0.044921875, 0.004150390625, 0.060546875, 0.08984375, 0.0888671875, 0.0634765625, 0.06298828125, 0.049560546875, 0.078125, 0.006103515625, 0.201171875, 0.1162109375, 0.07666015625, 0.0732421875, 0.1396484375, 0.1123046875, 0.146484375, 0.0205078125, 0.04272460937...
63a2d735-21e2-5cab-b89f-feddc50135d4
1,069
0
Title: Heap corruption under Win32; how to locate? I'm working on a multithreaded C++ application that is corrupting the heap. The usual tools to locate this corruption seem to be inapplicable. Old builds (18 months old) of the source code exhibit the same behavior as the most recent release, so this has been around f...
907
1,004
[ "c++" ]
[ "c++", "windows", "multithreading", "debugging", "memory" ]
{"accepted_answer_id":1073,"answer_count":15,"chunk_count":2,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T07:30:01.727000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-01T11:53:40.623000+00:00","last_edit_date":"2023-06-01T11:53:40.623000+00:00",...
[ 0.035491943359375, -0.0037403106689453125, 0.0175018310546875, 0.002262115478515625, 0.0299224853515625, 0.01318359375, -0.027557373046875, 0.001064300537109375, 0.036895751953125, -0.01690673828125, -0.005619049072265625, 0.016204833984375, 0.0014562606811523438, 0.01117706298828125, 0....
[ 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 23, 25, 27, 33, 39, 47, 53, 62, 64, 67, 70, 71, 74, 83, 87, 90, 98, 99, 100, 107, 110, 111, 115, 116, 131, 136, 142, 144, 146, 166, 186, 188, 191, 214, 221, 237,...
[ 0.013671875, 0.014892578125, 0.0142822265625, 0.1171875, 0.013671875, 0.013671875, 0.012939453125, 0.012451171875, 0.01318359375, 0.012939453125, 0.013427734375, 0.0140380859375, 0.013427734375, 0.01318359375, 0.013427734375, 0.024658203125, 0.013916015625, 0.02490234375, 0.01416...
b2d9632d-238a-5632-9d70-560d99268bbe
1,069
1
Title: Heap corruption under Win32; how to locate? , Code Generation category in VS 6.0 project settings)? No, I'm not, and I'll spend a couple of hours tomorrow going through the workspace (58 projects in it) and checking they're all compiling and linking with the appropriate flags. Update: This took 30 seconds...
113
124
[ "c++" ]
[ "c++", "windows", "multithreading", "debugging", "memory" ]
{"accepted_answer_id":1073,"answer_count":15,"chunk_count":2,"chunk_index":1,"closed_date":null,"creation_date":"2008-08-04T07:30:01.727000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-01T11:53:40.623000+00:00","last_edit_date":"2023-06-01T11:53:40.623000+00:00",...
[ 0.0218963623046875, -0.0092926025390625, 0.0091705322265625, 0.00988006591796875, 0.020111083984375, 0.0135498046875, -0.0100555419921875, 0.035491943359375, 0.0155029296875, -0.0159759521484375, -0.01425933837890625, 0.0169219970703125, 0.00952911376953125, -0.01000213623046875, 0.01367...
[ 7, 15, 18, 23, 39, 67, 70, 87, 136, 438, 442, 450, 496, 756, 765, 959, 1181, 1379, 1529, 1830, 1836, 2234, 2289, 2301, 2389, 2631, 3126, 3293, 3642, 4488, 6460, 7108, 7413, 7730, 8305, 9969, 10057, 13452, 17686, 21974, 24189, 24941, ...
[ 0.017578125, 0.004638671875, 0.1083984375, 0.026123046875, 0.09228515625, 0.08984375, 0.005126953125, 0.031494140625, 0.006591796875, 0.0849609375, 0.033203125, 0.0009765625, 0.1484375, 0.0927734375, 0.07470703125, 0.1083984375, 0.03515625, 0.109375, 0.1875, 0.1318359375, 0.0...
616cb3e5-26b8-56f3-8702-b8e31321b5e8
1,104
0
Title: Ensuring that Exceptions are always caught Exceptions in C++ don't need to be caught (no compile time errors) by the calling function. So it's up to the developer's judgment whether to catch them using try/catch (unlike in Java). Is there a way one can ensure that the exceptions thrown are always caught using...
80
90
[ "c++" ]
[ "c++", "exception", "try-catch", "exception-safety" ]
{"accepted_answer_id":1109,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T10:01:37.927000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-01T11:58:56.330000+00:00","last_edit_date":"2023-06-01T11:58:56.330000+00:00","...
[ 0.0236663818359375, 0.0158538818359375, 0.0110015869140625, -0.0013017654418945312, 0.040924072265625, -0.0275726318359375, 0.00739288330078125, 0.047576904296875, -0.006832122802734375, 0.006626129150390625, -0.0188140869140625, 0.006862640380859375, -0.016571044921875, 0.0071868896484375...
[ 7, 16, 18, 23, 47, 64, 206, 313, 357, 450, 621, 1257, 1340, 1733, 3871, 3917, 4460, 5062, 9790, 9969, 11343, 17368, 17514, 18499, 32354, 37223, 41925, 48962, 53089, 63284, 104250, 105556, 106001, 131527, 156892, 159029, 218288, 240713 ]
[ 0.068359375, 0.00048828125, 0.03857421875, 0.049072265625, 0.02197265625, 0.0546875, 0.13671875, 0.08984375, 0.037841796875, 0.0177001953125, 0.01513671875, 0.054931640625, 0.053955078125, 0.0458984375, 0.05859375, 0.03125, 0.1484375, 0.0301513671875, 0.197265625, 0.06982421875...
9c2329b7-afba-5042-969e-19b21eb740c4
1,241
0
Title: Asynchronous multi-direction server-client communication over the same open socket? I have a client-server app where the client is on a Windows Mobile 6 device, written in C++ and the server is on full Windows and written in C#. Originally, I only needed it to send messages from the client to the server, with...
248
272
[ "c#", "c++" ]
[ "c#", "c++", "sockets" ]
{"accepted_answer_id":1275,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T13:52:25.090000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2023-06-01T12:01:40.347000+00:00","last_edit_date":"2023-06-01T12:01:40.347000+00:...
[ -0.0322265625, 0.00550079345703125, -0.005001068115234375, 0.01441192626953125, -0.01476287841796875, -0.033416748046875, -0.0085296630859375, 0.020233154296875, 0.02587890625, 0.00882720947265625, -0.022125244140625, 0.02093505859375, 0.049652099609375, 0.00823211669921875, -0.001191139...
[ 9, 23, 70, 100, 118, 221, 305, 373, 645, 756, 936, 1733, 1884, 2053, 2499, 2685, 3773, 3917, 4027, 4393, 4420, 4527, 4734, 4904, 5117, 5423, 5701, 6024, 8705, 9325, 9803, 10723, 10821, 12654, 13736, 14192, 15700, 17368, 17569, 18234, 18...
[ 0.012939453125, 0.002685546875, 0.000244140625, 0.0791015625, 0.1181640625, 0.0869140625, 0.1337890625, 0.039794921875, 0.035400390625, 0.045166015625, 0.1240234375, 0.1044921875, 0.0087890625, 0.08642578125, 0.0556640625, 0.00048828125, 0.083984375, 0.06201171875, 0.1513671875, ...
8446a72d-86bf-5e95-91fd-bd9c1daf1256
1,982
0
Title: CPU throttling in C++ I was just wondering if there is an elegant way to set the maximum CPU load for a particular thread doing intensive calculations. Right now I have located the most time-consuming loop in the thread (it does only compression) and use GetTickCount() and Sleep() with hardcoded values. It ma...
141
159
[ "c++" ]
[ "c++", "performance", "cpu", "throttling" ]
{"accepted_answer_id":47086,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T07:11:08.427000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-01T12:05:45.943000+00:00","last_edit_date":"2023-06-01T12:05:45.943000+00:00",...
[ -0.00533294677734375, 0.0175933837890625, 0.00727081298828125, 0.0216827392578125, 0.036590576171875, -0.027557373046875, -0.0196990966796875, 0.0006117820739746094, 0.0506591796875, -0.031890869140625, -0.01201629638671875, 0.0328369140625, 0.01641845703125, -0.0172271728515625, 0.04455...
[ 23, 47, 70, 75, 100, 132, 136, 214, 313, 316, 375, 450, 618, 678, 959, 1286, 1733, 2069, 2187, 2684, 3917, 4527, 4734, 5036, 5256, 5423, 5675, 6392, 7941, 9071, 9077, 12447, 14012, 14155, 14602, 14922, 15440, 17311, 18923, 20779, 24233,...
[ 0.0048828125, 0.016357421875, 0.01904296875, 0.0185546875, 0.0189208984375, 0.076171875, 0.06103515625, 0.047119140625, 0.043701171875, 0.1044921875, 0.05859375, 0.00439453125, 0.08544921875, 0.015625, 0.03955078125, 0.00537109375, 0.0908203125, 0.10546875, 0.043701171875, 0.10...
2a12436a-7185-5317-af76-e5f1d3d030b7
2,256
0
Title: Mapping Stream data to data structures in C# Is there a way of mapping data collected on a stream or array to a data structure or vice-versa? In C++ this would simply be a matter of casting a pointer to the stream as a data type I want to use (or vice-versa for the reverse). e.g in C++: Mystruct * pMyStrct ...
153
167
[ "c#", "c++" ]
[ "c#", "c++", "data-structures" ]
{"accepted_answer_id":2490,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T13:11:14.223000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2024-01-09T10:53:56.100000+00:00","last_edit_date":"2024-01-09T10:53:56.100000+00:...
[ 0.0055694580078125, 0.02227783203125, -0.0159149169921875, 0.0231170654296875, 0.01137542724609375, -0.03326416015625, -0.01220703125, 0.0172119140625, 0.03985595703125, 0.0240478515625, -0.01568603515625, -0.007663726806640625, -0.0098419189453125, -0.053070068359375, 0.0384521484375, ...
[ 7, 10, 17, 18, 23, 47, 51, 53, 56, 83, 98, 100, 111, 184, 237, 277, 282, 291, 297, 304, 313, 360, 418, 519, 661, 707, 714, 903, 911, 915, 1230, 1601, 1810, 2053, 2071, 2203, 2646, 2685, 2806, 2982, 3444, 3917, 4527, 4904, 6275, ...
[ 0.072265625, 0.08056640625, 0.06298828125, 0.032470703125, 0.045654296875, 0.1904296875, 0.0272216796875, 0.052734375, 0.0986328125, 0.00244140625, 0.06298828125, 0.0147705078125, 0.041015625, 0.06103515625, 0.03955078125, 0.04150390625, 0.064453125, 0.2197265625, 0.006103515625,...
37548d73-c6f5-56e9-be1c-ed11c741055d
2,756
0
Title: Lightweight IDE for Linux Even though I have a robust and fast computer (Pentium Dual Core 2.0 with 2Gb RAM), I'm always searching for lightweight software to have on it, so it runs fast even when many apps are up and running simultaneously. On the last few weeks I've been migrating gradually to Linux and wan...
102
111
[ "c++", "php" ]
[ "php", "c++", "linux", "ide" ]
{"accepted_answer_id":2762,"answer_count":15,"chunk_count":1,"chunk_index":0,"closed_date":"2011-11-12T13:39:05.227000+00:00","creation_date":"2008-08-05T19:57:11.827000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++","php"],"last_activity_date":"2019-10-13T21:37:41.407000+00:00","last_edit_date":...
[ 0.037811279296875, 0.0050811767578125, -0.0032062530517578125, 0.005023956298828125, 0.028594970703125, -0.0163116455078125, 0.015960693359375, 0.01045989990234375, 0.0274200439453125, -0.0482177734375, -0.043243408203125, 0.0243377685546875, 0.04681396484375, 0.0517578125, 0.03591918945...
[ 6, 10, 12, 47, 87, 98, 100, 116, 136, 313, 678, 683, 765, 1257, 1528, 1916, 3444, 3853, 4092, 4271, 4568, 5941, 6305, 8110, 10846, 10975, 11343, 13909, 14373, 16655, 18151, 19010, 20600, 21208, 21721, 22729, 26959, 29908, 30948, 31267, ...
[ 0.044677734375, 0.007080078125, 0.004150390625, 0.111328125, 0.0201416015625, 0.08984375, 0.1142578125, 0.053466796875, 0.1103515625, 0.06689453125, 0.006103515625, 0.012939453125, 0.0947265625, 0.04443359375, 0.171875, 0.018798828125, 0.09423828125, 0.0238037109375, 0.1474609375...
0154c3d7-c605-5e97-b80b-12d95e6bf1a3
3,049
0
Title: How do I configure and communicate with a serial port? I need to send and receive data over serial connections (RS-232 and RS-422). How do I set up and communicate with such a connection? How do I figure out what the configuration settings (e.g. baud rate) should be and how do I set them? In particular, I a...
114
123
[ "c++", "java" ]
[ "java", "c++", "windows", "unix" ]
{"accepted_answer_id":3054,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":"2018-09-26T14:00:05.530000+00:00","creation_date":"2008-08-06T03:19:19.470000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++","java"],"last_activity_date":"2024-01-09T10:56:57.947000+00:00","last_edit_date"...
[ -0.0235137939453125, 0.01910400390625, -0.039154052734375, 0.00026488304138183594, -0.03509521484375, -0.046783447265625, -0.0012235641479492188, -0.0012083053588867188, 0.017669677734375, 0.0273284912109375, -0.047515869140625, 0.020172119140625, 0.0278167724609375, -0.012176513671875, ...
[ 10, 23, 54, 64, 67, 87, 136, 289, 313, 449, 645, 678, 903, 992, 1257, 1264, 2053, 2856, 3642, 3773, 3871, 4084, 5423, 5608, 6044, 11249, 11469, 11565, 13036, 15396, 16487, 17311, 17368, 18912, 25379, 26366, 30524, 33946, 34515, 35686, 3...
[ 0.024169921875, 0.0078125, 0.060546875, 0.008544921875, 0.09375, 0.0859375, 0.09130859375, 0.0283203125, 0.0260009765625, 0.032470703125, 0.0771484375, 0.17578125, 0.005126953125, 0.059814453125, 0.119140625, 0.019287109375, 0.103515625, 0.00439453125, 0.01171875, 0.08984375, ...
4f0eefcc-a4bc-5686-81df-eed12bd7ed8a
3,150
0
Title: How to set up unit testing for Visual Studio C++ I'm having trouble figuring out how to get the testing framework set up and usable in Visual Studio 2008 for C++ presumably with the built-in unit testing suite. Any links or tutorials would be appreciated.
60
63
[ "c++" ]
[ "c++", "unit-testing", "testing", "visual-studio-2008", "frameworks" ]
{"accepted_answer_id":35963,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":"2025-06-23T14:17:12.810000+00:00","creation_date":"2008-08-06T07:57:50.017000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2024-01-09T11:00:37.397000+00:00","last_edit_date":"2024...
[ 0.0157470703125, 0.0181427001953125, -0.006622314453125, -0.01241302490234375, 0.00531005859375, -0.017059326171875, 0.007457733154296875, 0.027923583984375, 0.005519866943359375, -0.0098419189453125, -0.021240234375, 0.0139617919921875, 0.0272064208984375, 0.0258941650390625, 0.03173828...
[ 23, 47, 100, 313, 1257, 1821, 2021, 2046, 2886, 3642, 5423, 11249, 14947, 22317, 22968, 25072, 26747, 37223, 57143, 63134, 73372, 77947, 88303, 134234, 170846 ]
[ 0.0216064453125, 0.02978515625, 0.05126953125, 0.037109375, 0.10302734375, 0.053955078125, 0.185546875, 0.01708984375, 0.0654296875, 0.01220703125, 0.1162109375, 0.039306640625, 0.08154296875, 0.04736328125, 0.1435546875, 0.185546875, 0.009765625, 0.232421875, 0.1123046875, 0.0...
6ebe812e-359a-5526-b273-31a41cd73837
3,230
0
Title: How do you pack a visual studio c++ project for release? I'm wondering how to make a release build that includes all necessary DLL files into the .exe so the program can be run on a non-development machine without having to install the Microsoft redistributable on the target machine. Without doing this you ge...
80
85
[ "c++" ]
[ "c++", "visual-studio", "build" ]
{"accepted_answer_id":10141,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T09:49:27.467000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-01-09T11:04:17.663000+00:00","last_edit_date":"2024-01-09T11:04:17.663000+00:00",...
[ 0.0019702911376953125, 0.005603790283203125, 0.00640106201171875, -0.02264404296875, 0.01363372802734375, -0.01316070556640625, 0.00586700439453125, 0.046234130859375, 0.00495147705078125, 0.00495147705078125, -0.0243072509765625, 0.0292816162109375, 0.0251312255859375, 0.0108489990234375,...
[ 5, 47, 54, 98, 100, 186, 221, 351, 391, 398, 456, 501, 756, 959, 1528, 3249, 3642, 3934, 7244, 11249, 11675, 12275, 13452, 15490, 18499, 19441, 20600, 21176, 22819, 23708, 26008, 26785, 30388, 36279, 37223, 38415, 43824, 45367, 46480, 544...
[ 0.08984375, 0.000244140625, 0.03173828125, 0.03271484375, 0.07861328125, 0.025146484375, 0.0048828125, 0.099609375, 0.050048828125, 0.03271484375, 0.0712890625, 0.052734375, 0.033935546875, 0.10498046875, 0.1201171875, 0.056640625, 0.068359375, 0.06494140625, 0.111328125, 0.088...
7177f76e-04fd-5b74-bfc1-00b04b480ba1
3,231
0
Title: C/C++ library for reading MIDI signals from a USB MIDI device I want to write C/C++ programs that take input from a MIDI device. The MIDI device connects to my PC using a USB connector. I'm looking for a (C/C++ implemented) library that I can use to read the MIDI signals from the MIDI device through the USB...
126
145
[ "c", "c++" ]
[ "c++", "c", "signal-processing", "midi", "dev-c++" ]
{"accepted_answer_id":842632,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T09:51:06.153000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2024-11-05T04:13:03.637000+00:00","last_edit_date":"2024-01-09T11:08:53.630000+00...
[ 0.01739501953125, -0.0019350051879882812, 0.004077911376953125, -0.00452423095703125, -0.0042877197265625, -0.035491943359375, -0.023468017578125, 0.0223846435546875, 0.037872314453125, 0.023101806640625, -0.0343017578125, 0.022979736328125, 0.032623291015625, -0.01190948486328125, 0.014...
[ 7, 9, 47, 64, 70, 100, 276, 313, 441, 748, 831, 1294, 1295, 2046, 2053, 3444, 3773, 4527, 5646, 6107, 6863, 8305, 10273, 11469, 12301, 16454, 16487, 17368, 17723, 18151, 24145, 26073, 29479, 32562, 33022, 35773, 36497, 37067, 37223, 40317...
[ 0.028076171875, 0.05078125, 0.033447265625, 0.1640625, 0.0189208984375, 0.053955078125, 0.16015625, 0.1181640625, 0.1064453125, 0.003662109375, 0.01708984375, 0.1455078125, 0.1103515625, 0.064453125, 0.111328125, 0.091796875, 0.0869140625, 0.0771484375, 0.072265625, 0.12890625,...
3ecf6a6f-08de-52ad-bea3-a1ed3d124bca
4,306
0
Title: What is the best way to create a sparse array in C++? I am working on a project that requires the manipulation of enormous matrices, specifically pyramidal summation for a copula calculation. In short, I need to keep track of a relatively small number of values (usually a value of 1, and in rare cases more th...
202
220
[ "c++" ]
[ "c++", "oop", "data-structures", "hash", "maps" ]
{"accepted_answer_id":4311,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T02:29:58.180000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-01-09T11:11:33.983000+00:00","last_edit_date":"2024-01-09T11:11:33.983000+00:00",...
[ 0.02325439453125, -0.005138397216796875, 0.0105743408203125, -0.0015048980712890625, 0.0089263916015625, -0.018096923828125, -0.024200439453125, -0.0011816024780273438, 0.01491546630859375, -0.0119781494140625, -0.02032470703125, 0.0199737548828125, -0.00274658203125, -0.016326904296875, ...
[ 18, 23, 53, 62, 106, 184, 275, 289, 313, 351, 425, 552, 1884, 2394, 2965, 3871, 3917, 4343, 4488, 4734, 5426, 5809, 5983, 6032, 6635, 7722, 9232, 10298, 10846, 11522, 13452, 13695, 14012, 15520, 18507, 19336, 19879, 20697, 25343, 26242, ...
[ 0.0654296875, 0.005615234375, 0.1923828125, 0.03515625, 0.01806640625, 0.2314453125, 0.0198974609375, 0.06298828125, 0.04736328125, 0.03759765625, 0.0198974609375, 0.02392578125, 0.0263671875, 0.0966796875, 0.111328125, 0.0107421875, 0.053466796875, 0.12890625, 0.064453125, 0.0...
b572cb4c-6e3a-5a90-800c-89bdb97d27f5
5,727
0
Title: What are the barriers to understanding pointers and what can be done to overcome them? Why are pointers such a leading factor of confusion for many new, and even old, college-level students in C or C++? Are there any tools or thought processes that helped you understand how pointers work at the variable, functi...
115
125
[ "c", "c++" ]
[ "c++", "c", "pointers" ]
{"accepted_answer_id":5754,"answer_count":28,"chunk_count":1,"chunk_index":0,"closed_date":"2014-02-08T22:14:29.270000+00:00","creation_date":"2008-08-08T06:17:51.543000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c","c++"],"last_activity_date":"2024-01-09T11:13:24.500000+00:00","last_edit_date":"2...
[ 0.0309600830078125, -0.003810882568359375, 0.005580902099609375, -0.005344390869140625, 0.031890869140625, -0.008331298828125, -0.01435089111328125, 0.01104736328125, 0.005641937255859375, 0.0223236083984375, -0.04443359375, 0.0288238525390625, -0.00576019287109375, 0.00021409988403320312,...
[ 4, 7, 10, 47, 70, 87, 99, 100, 111, 313, 442, 621, 645, 707, 831, 1314, 2367, 2856, 3525, 3642, 4127, 4163, 4488, 4865, 5062, 5941, 6044, 6275, 8966, 9433, 10332, 15490, 16940, 17366, 17569, 19095, 23755, 25921, 28219, 31461, 32354, 3...
[ 0.01123046875, 0.1103515625, 0.004150390625, 0.09130859375, 0.03271484375, 0.055419921875, 0.0126953125, 0.0189208984375, 0.054931640625, 0.1201171875, 0.0849609375, 0.018310546875, 0.0595703125, 0.022216796875, 0.0252685546875, 0.220703125, 0.02685546875, 0.016845703125, 0.02221...
e081dd54-9767-5204-989e-9b88b6477de6
5,892
0
Title: Link issues (VC6) I've opened an old workspace that is a library and its test harness. It used to work fine but now doesn't and older versions of the code don't work either with the same errors. I've tried recreating the project and that causes the same errors too. Nothing seems out of order in project settings...
495
599
[ "c++" ]
[ "c++", "visual-c++", "linker", "visual-c++-6" ]
{"accepted_answer_id":5903,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T13:13:08.920000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-01-09T11:16:40.603000+00:00","last_edit_date":"2024-01-09T11:16:40.603000+00:00","...
[ 0.0300140380859375, -0.025360107421875, 0.0159149169921875, 0.00702667236328125, 0.0243988037109375, 0.0025424957275390625, 0.0174560546875, 0.046173095703125, 0.0247650146484375, -0.006816864013671875, -0.01297760009765625, 0.022369384765625, 0.01148223876953125, 0.0291900634765625, 0.0...
[ 18, 23, 51, 56, 71, 83, 99, 106, 107, 116, 126, 133, 170, 182, 186, 262, 271, 272, 339, 388, 402, 416, 450, 581, 645, 724, 757, 831, 856, 903, 1284, 1294, 1305, 1363, 1549, 1662, 1810, 2684, 2729, 2806, 2831, 2967, 3034, 3059, 3...
[ 0.044189453125, 0.008544921875, 0.0126953125, 0.1337890625, 0.103515625, 0.0189208984375, 0.002197265625, 0.01123046875, 0.0155029296875, 0.0302734375, 0.08740234375, 0.140625, 0.107421875, 0.1015625, 0.009765625, 0.0234375, 0.0240478515625, 0.001953125, 0.0791015625, 0.0164794...
962d9e74-f427-5860-b7e5-0515b77f4f93
6,915
0
Title: How do you lazily construct a singleton object thread-safely? Is there a way to implement a singleton object in C++ that is: Lazily constructed in a thread-safe manner (two threads might simultaneously be the first user of the singleton - it should still only be constructed once). Doesn't rely on static va...
174
208
[ "c++" ]
[ "c++", "multithreading", "thread-safety", "singleton", "lazy-initialization" ]
{"accepted_answer_id":6955,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":"2024-01-09T11:43:26.100000+00:00","creation_date":"2008-08-09T21:16:29.193000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2024-01-09T11:42:14.633000+00:00","last_edit_date":"2024-0...
[ 0.03558349609375, 0.033660888671875, 0.0211639404296875, 0.01129913330078125, 0.048553466796875, 0.0011425018310546875, -0.0171966552734375, 0.018157958984375, -0.01154327392578125, -0.017913818359375, -0.0129241943359375, -0.0026454925537109375, -0.01947021484375, -0.01123809814453125, ...
[ 9, 21, 23, 118, 239, 297, 313, 456, 538, 708, 842, 943, 1507, 1528, 1543, 2773, 3917, 4527, 4734, 5117, 5608, 7464, 8108, 11001, 11249, 11814, 12336, 13648, 18151, 21771, 24145, 24371, 25251, 28970, 29479, 29569, 36746, 37223, 38937, 4600...
[ 0.0223388671875, 0.1259765625, 0.04248046875, 0.048095703125, 0.138671875, 0.02880859375, 0.0478515625, 0.0048828125, 0.1083984375, 0.150390625, 0.107421875, 0.009521484375, 0.203125, 0.08642578125, 0.04052734375, 0.07861328125, 0.0751953125, 0.0732421875, 0.02392578125, 0.0776...
180eb4e5-30c6-5040-b287-69e1ba727992
7,209
0
Title: Alpha blending sprites in Nintendo DS Homebrew I'm trying to alpha blend sprites and backgrounds with devkitPro (including libnds, libarm, etc). Does anyone know how to do this?
45
51
[ "c", "c++" ]
[ "c++", "c", "nintendo-ds" ]
{"accepted_answer_id":119880,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-10T14:49:10.723000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2011-09-19T07:27:45.883000+00:00","last_edit_date":"2008-10-22T10:26:12.143000+00...
[ 0.029937744140625, 0.0171051025390625, 0.0095062255859375, -0.034698486328125, 0.018890380859375, -0.004039764404296875, -0.033966064453125, 0.006504058837890625, 0.018646240234375, -0.00016427040100097656, -0.012237548828125, 0.021270751953125, 0.01983642578125, -0.03350830078125, 0.011...
[ 23, 39, 54, 136, 144, 214, 400, 678, 903, 1299, 1636, 2005, 2208, 3642, 3714, 9488, 10752, 14612, 25474, 31577, 33245, 40988, 41869, 70616, 76569, 76615, 143006, 171759 ]
[ 0.029296875, 0.083984375, 0.0279541015625, 0.0341796875, 0.10498046875, 0.0849609375, 0.0184326171875, 0.0341796875, 0.016845703125, 0.053955078125, 0.1171875, 0.0439453125, 0.08251953125, 0.03466796875, 0.0380859375, 0.1533203125, 0.1591796875, 0.2080078125, 0.061279296875, 0....
31d861c7-3e77-557f-8686-cbc7fc87c40e
7,489
0
Title: How do I make a GUI? I've made many different seperate parts of a GUI system for the Nintendo DS, like buttons and textboxes and select boxes, but I need a way of containing these classes in one Gui class, so that I can draw everything to the screen all at once, and check all the buttons at once to check if any...
206
230
[ "c++" ]
[ "c++", "user-interface" ]
{"accepted_answer_id":13384,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T02:50:09.113000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-12-17T03:51:26.807000+00:00","last_edit_date":"2016-02-07T18:07:20.857000+00:00",...
[ 0.0211181640625, 0.03338623046875, -0.006500244140625, 0.001796722412109375, 0.0215911865234375, -0.027191162109375, 0.00292205810546875, -0.002758026123046875, 0.0086517333984375, 0.01413726806640625, -0.0189666748046875, 0.035797119140625, 0.0187225341796875, -0.02850341796875, 0.00811...
[ 5, 10, 13, 18, 23, 47, 54, 70, 87, 136, 158, 271, 313, 532, 661, 756, 831, 1507, 1632, 2292, 2965, 3142, 3249, 3444, 3447, 3835, 3871, 3917, 3934, 4288, 5426, 5584, 5808, 5941, 6097, 6528, 7108, 7228, 7986, 8789, 10846, 11249, 11728...
[ 0.014892578125, 0.06298828125, 0.0264892578125, 0.045166015625, 0.06689453125, 0.040771484375, 0.05859375, 0.0107421875, 0.06396484375, 0.039794921875, 0.0235595703125, 0.08447265625, 0.0303955078125, 0.035888671875, 0.009033203125, 0.06787109375, 0.009033203125, 0.0869140625, 0....
90d8ae32-3e00-5a8d-a9da-135ecfa79675
7,525
0
Title: Of Memory Management, Heap Corruption, and C++ So, I need some help. I am working on a project in C++. However, I think I have somehow managed to corrupt my heap. This is based on the fact that I added an std::string to a class and assigning it a value from another std::string: std::string hello = "Hello, wor...
381
424
[ "c++" ]
[ "c++", "memory", "stack", "heap-memory" ]
{"accepted_answer_id":7695,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T04:52:50.800000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2021-06-13T11:53:11.710000+00:00","last_edit_date":"2021-06-13T11:53:11.710000+00:00",...
[ 0.05841064453125, 0.00409698486328125, 0.00569915771484375, 0.0012989044189453125, 0.0296783447265625, -0.0026569366455078125, -0.0199432373046875, 0.0135345458984375, 0.0212554931640625, 0.0024929046630859375, -0.0169830322265625, 0.01543426513671875, -0.0187530517578125, -0.0070953369140...
[ 12, 23, 39, 47, 71, 98, 115, 214, 272, 313, 397, 481, 645, 678, 759, 764, 1257, 1363, 1529, 1815, 2631, 2676, 2967, 3060, 3502, 3871, 4092, 4358, 4382, 4488, 4904, 5351, 5426, 5631, 5885, 6138, 6619, 7108, 7279, 7413, 8999, 9167, 10...
[ 0.037841796875, 0.039306640625, 0.05517578125, 0.041259765625, 0.138671875, 0.002685546875, 0.08837890625, 0.06005859375, 0.034912109375, 0.068359375, 0.05615234375, 0.09521484375, 0.03369140625, 0.03076171875, 0.0634765625, 0.18359375, 0.039306640625, 0.08203125, 0.154296875, ...
1eff3ed6-c917-5bb3-96e4-33480121f7e8
7,614
0
Title: Testing a function that throws on failure What is the best way of testing a function that throws on failure? Or testing a function that is fairly immune to failure? For instance; I have a I/O Completion Port class that throws in the constructor if it can't initialise the port correctly. This uses the Win32 fu...
247
274
[ "c++" ]
[ "c++", "unit-testing", "tdd" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T08:36:39.460000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2020-05-14T05:36:22.617000+00:00","last_edit_date":"2018-03-13T17:20:41.433000+00:00",...
[ 0.00797271728515625, 0.0236968994140625, 0.0107269287109375, 0.0107269287109375, 0.03424072265625, -0.01512908935546875, 0.006099700927734375, 0.030731201171875, -0.0025501251220703125, -0.00949859619140625, -0.01629638671875, 0.01290130615234375, -0.01096343994140625, 0.01166534423828125,...
[ 7, 13, 23, 31, 64, 67, 70, 98, 133, 214, 351, 416, 450, 452, 568, 645, 670, 748, 757, 831, 836, 1221, 1264, 2965, 3034, 3075, 3642, 3917, 4527, 4989, 5303, 5423, 6460, 8305, 8306, 8647, 8781, 11469, 11814, 13791, 14437, 17569, 17582...
[ 0.07275390625, 0.035400390625, 0.002197265625, 0.078125, 0.1484375, 0.18359375, 0.021484375, 0.10595703125, 0.0947265625, 0.0299072265625, 0.002685546875, 0.10400390625, 0.02978515625, 0.01416015625, 0.048095703125, 0.004638671875, 0.08154296875, 0.0751953125, 0.1103515625, 0.0...
2ef1a2f8-07cb-5222-9ba4-730959e73947
7,664
0
Title: Windows C++: How can I redirect stderr for calls to fprintf? I am wrapping existing C++ code from a BSD project in our own custom wrapper and I want to integrate it to our code with as few changes as possible. This code uses fprintf to print to stderr in order to log / report errors. I want to redirect this t...
221
250
[ "c++" ]
[ "c++", "windows", "http-redirect" ]
{"accepted_answer_id":7669,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T10:38:51.570000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2018-03-13T17:20:09.077000+00:00","last_edit_date":"2018-03-13T17:20:09.077000+00:00","...
[ -0.00276947021484375, -0.01690673828125, 0.0167999267578125, 0.01244354248046875, 0.01363372802734375, -0.03216552734375, -0.00982666015625, 0.01690673828125, 0.0312042236328125, 0.0190582275390625, 0.004497528076171875, 0.027862548828125, 0.0263214111328125, -0.01375579833984375, 0.0279...
[ 7, 42, 47, 87, 100, 115, 133, 221, 254, 313, 420, 456, 820, 831, 903, 959, 992, 1238, 1264, 1295, 3444, 3564, 3642, 3687, 3773, 4084, 4488, 4527, 5701, 6138, 9433, 10002, 10366, 10461, 10846, 11249, 11435, 11782, 12620, 12684, 12983, ...
[ 0.0198974609375, 0.197265625, 0.123046875, 0.001953125, 0.01416015625, 0.0771484375, 0.0810546875, 0.02490234375, 0.01318359375, 0.0306396484375, 0.1748046875, 0.1181640625, 0.0712890625, 0.04248046875, 0.001220703125, 0.0263671875, 0.0546875, 0.07958984375, 0.08544921875, 0.08...
8230d80d-968c-517d-af77-6640bd0a4c30
7,880
0
Title: How do you open a file in C++? I want to open a file for reading, the C++ way. I need to be able to do it for: text files, which would involve some sort of read line function. binary files, which would provide a way to read raw data into a char* buffer.
71
71
[ "c++" ]
[ "c++", "file", "io" ]
{"accepted_answer_id":7886,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T15:50:51.660000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2021-07-10T10:56:40.290000+00:00","last_edit_date":"2015-12-14T12:43:57.793000+00:00","...
[ -0.0079803466796875, -0.004550933837890625, 0.00323486328125, -0.0125274658203125, 0.004253387451171875, -0.029083251953125, -0.0116424560546875, 0.0236358642578125, 0.001995086669921875, 0.00629425048828125, -0.025177001953125, 0.002231597900390625, 0.0338134765625, -0.042327880859375, ...
[ 10, 23, 47, 54, 70, 87, 100, 313, 373, 398, 1639, 2053, 2394, 2806, 3444, 3871, 3917, 3934, 6635, 7986, 9803, 11249, 11435, 12301, 13315, 16454, 18234, 19048, 21441, 22691, 32354, 37223, 48962, 49649, 83687, 102158 ]
[ 0.052490234375, 0.1171875, 0.05322265625, 0.072265625, 0.001220703125, 0.04052734375, 0.0947265625, 0.130859375, 0.04345703125, 0.0712890625, 0.0634765625, 0.08154296875, 0.1162109375, 0.00634765625, 0.1044921875, 0.06591796875, 0.1044921875, 0.025634765625, 0.1015625, 0.121093...
e1c99c5a-577c-511c-9eb0-56fa6efb41ad
8,263
0
Title: I can't get my debugger to stop breaking on first-chance exceptions I'm using Visual C++ 2003 to debug a program remotely via TCP/IP. I had set the Win32 exception c00000005, "Access violation," to break into the debugger when thrown. Then, I set it back to "Use parent setting." The setting for the parent, Wi...
142
151
[ "c++" ]
[ "c++", "visual-studio", "debugging", "visual-studio-2003", "first-chance-exception" ]
{"accepted_answer_id":8347,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T21:51:06.813000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2018-03-13T17:28:22.313000+00:00","last_edit_date":"2018-03-13T17:28:22.313000+00:00","...
[ 0.0129241943359375, 0.0024852752685546875, -0.0028285980224609375, -0.0248870849609375, 0.01446533203125, -0.0067291259765625, -0.004077911376953125, 0.049285888671875, 0.0239410400390625, 0.006221771240234375, -0.033111572265625, 0.01715087890625, 0.0285797119140625, 0.0009598731994628906...
[ 8, 18, 19, 47, 83, 87, 98, 100, 163, 184, 206, 313, 442, 759, 831, 903, 978, 1062, 1528, 1733, 1884, 2046, 2633, 3229, 3934, 4420, 5117, 5423, 6052, 6460, 7154, 7279, 8194, 10931, 11249, 12638, 13695, 17368, 17514, 17686, 17854, 18158...
[ 0.1416015625, 0.05126953125, 0.00048828125, 0.037841796875, 0.01611328125, 0.00244140625, 0.058837890625, 0.07666015625, 0.0252685546875, 0.0458984375, 0.12109375, 0.0380859375, 0.03466796875, 0.01513671875, 0.04052734375, 0.06103515625, 0.197265625, 0.0439453125, 0.0986328125, ...
9e73675f-0440-5a16-986a-b038d897a128
8,443
0
Title: MSVC6: Breakpoint stops program Using Microsoft Visual Studio 98, Microsoft Visual C++ 6.0 SP6 When running under the debugger, there's only one problem. If I pause the program and resume, everything's fine. The problem? When I hit a breakpoint, my program stops. But not in a good way; execution halts, I'm ...
269
280
[ "c++" ]
[ "c++", "windows", "debugging", "visual-c++", "visual-c++-6" ]
{"accepted_answer_id":null,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-12T04:00:13.467000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-04-15T17:53:51.233000+00:00","last_edit_date":"2017-04-15T17:53:51.233000+00:00",...
[ 0.021820068359375, -0.01300048828125, 0.01276397705078125, -0.019561767578125, 0.0251617431640625, 0.027069091796875, -0.0005369186401367188, 0.04388427734375, 0.01317596435546875, -0.01251983642578125, -0.0217132568359375, 0.014129638671875, 0.0157470703125, 0.004619598388671875, 0.0011...
[ 7, 8, 10, 51, 70, 83, 313, 345, 456, 617, 645, 756, 831, 910, 959, 978, 1379, 1528, 1632, 1957, 2021, 2289, 2967, 3164, 3525, 3714, 4000, 4078, 4127, 4358, 4488, 4734, 5885, 5962, 6057, 6107, 6275, 7108, 7244, 7279, 10176, 11782, 12...
[ 0.0888671875, 0.138671875, 0.06103515625, 0.060546875, 0.0078125, 0.00146484375, 0.024658203125, 0.009033203125, 0.0267333984375, 0.0966796875, 0.0908203125, 0.043212890625, 0.000244140625, 0.1767578125, 0.0216064453125, 0.1640625, 0.119140625, 0.1591796875, 0.0546875, 0.068359...
e8a93ec7-03c9-5d9a-b489-1b3730ba3f85
8,451
0
Title: Secure Memory Allocator in C++ I want to create an allocator which provides memory with the following attributes: cannot be paged to disk. is incredibly hard to access through an attached debugger The idea is that this will contain sensitive information (like licence information) which should be inacces...
93
99
[ "c++" ]
[ "c++", "security", "memory", "ram-scraping" ]
{"accepted_answer_id":8486,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-12T04:18:09.873000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-07-06T18:31:16.817000+00:00","last_edit_date":"2024-07-06T18:31:16.817000+00:00","...
[ 0.019866943359375, 0.0294952392578125, -0.003910064697265625, -0.0007748603820800781, 0.025390625, -0.007160186767578125, -0.040435791015625, 0.0161285400390625, 0.0267181396484375, -0.0249176025390625, -0.054656982421875, 0.00490570068359375, 0.035614013671875, -0.00487518310546875, 0.0...
[ 8, 23, 47, 83, 87, 136, 142, 186, 297, 313, 408, 678, 748, 884, 903, 978, 1118, 1221, 1290, 2070, 2967, 3129, 3444, 4034, 4127, 4677, 5062, 5608, 6528, 7941, 8305, 17203, 21407, 24286, 25188, 25632, 28236, 28282, 28338, 37223, 38937, ...
[ 0.103515625, 0.087890625, 0.08447265625, 0.039794921875, 0.02294921875, 0.05322265625, 0.01611328125, 0.0274658203125, 0.0849609375, 0.076171875, 0.1787109375, 0.050048828125, 0.1337890625, 0.103515625, 0.00146484375, 0.12890625, 0.013671875, 0.005615234375, 0.177734375, 0.2001...
8ecbdc75-8dcc-58d9-a0d7-469c9984d25b
8,896
0
Title: Can I get Memcached running on a Windows (x64) 64bit environment? Does anyone know IF, WHEN or HOW I can get Memcached running on a Windows 64bit environment? I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC solution with SQL Server DB, the OS is ei...
788
798
[ "c#", "c++" ]
[ "c#", "c++", "windows", "64-bit", "memcached" ]
{"accepted_answer_id":2356710,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-12T14:37:28.703000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2019-12-12T17:44:53.040000+00:00","last_edit_date":"2019-12-12T17:44:53.040000...
[ -0.0014705657958984375, -0.0115203857421875, -0.00748443603515625, 0.00778961181640625, 0.0158843994140625, -0.01971435546875, -0.036468505859375, 0.0274658203125, 0.0290679931640625, -0.0157012939453125, -0.037200927734375, 0.0157623291015625, 0.0291900634765625, 0.003326416015625, 0.07...
[ 4, 6, 7, 9, 10, 15, 16, 18, 20, 23, 25, 39, 40, 47, 54, 58, 64, 67, 70, 83, 87, 98, 99, 100, 107, 111, 136, 138, 142, 186, 196, 214, 221, 237, 247, 249, 272, 297, 302, 313, 329, 357, 375, 398, 425, 442, 450, 456, 497, ...
[ 0.008056640625, 0.0078125, 0.008056640625, 0.006591796875, 0.008544921875, 0.0078125, 0.0078125, 0.00830078125, 0.007080078125, 0.008544921875, 0.008056640625, 0.0087890625, 0.008544921875, 0.02197265625, 0.008056640625, 0.0078125, 0.006591796875, 0.007080078125, 0.008056640625, ...
b8072724-1313-5780-af41-8794fa4be010
9,321
0
Title: How do you create a static class? How do you create a static class in C++? I should be able to do something like: cout << "bit 5 is " << BitParser::getBitAt(buffer, 5) << endl; Assuming I created the BitParser class. What would the BitParser class definition look like?
76
83
[ "c++" ]
[ "c++", "class", "oop", "static-classes" ]
{"accepted_answer_id":9328,"answer_count":15,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-12T23:35:00.613000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-09-26T08:30:34.533000+00:00","last_edit_date":"2023-09-26T08:30:34.533000+00:00",...
[ 0.001430511474609375, 0.0224151611328125, 0.0287017822265625, 0.0183868408203125, 0.03155517578125, -0.029296875, -0.01541900634765625, 0.0246734619140625, -0.020751953125, -0.00853729248046875, -0.0462646484375, 0.0185089111328125, 0.0190887451171875, -0.024200439453125, 0.0150070190429...
[ 10, 22, 23, 54, 56, 83, 190, 217, 313, 398, 552, 571, 1003, 1884, 2189, 3137, 3794, 5608, 11249, 18507, 19048, 20469, 21162, 27774, 28282, 28636, 28848, 37223, 75935, 80934, 123759, 201939 ]
[ 0.0634765625, 0.0233154296875, 0.0693359375, 0.053955078125, 0.0498046875, 0.06884765625, 0.14453125, 0.04296875, 0.06396484375, 0.044677734375, 0.048583984375, 0.0009765625, 0.134765625, 0.001708984375, 0.1376953125, 0.1572265625, 0.005859375, 0.04052734375, 0.0966796875, 0.28...
996d7d8d-8577-5c98-9e8d-c5113f536a0c
9,589
0
Title: Is there a good tool for Makefile generation? I'm looking for a tool which can generate a Makefile for a C/C++ project for different compilers (GCC, Microsoft Visual C++, C++Builder, etc.) and different platforms (Windows, Linux, and Mac).
59
68
[ "c", "c++" ]
[ "c++", "c", "cross-platform", "makefile" ]
{"accepted_answer_id":12064,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":"2014-05-12T03:27:43.800000+00:00","creation_date":"2008-08-13T08:47:36.363000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c","c++"],"last_activity_date":"2022-06-27T21:15:13.653000+00:00","last_edit_date":"...
[ 0.0066680908203125, -0.015106201171875, -0.0021839141845703125, 0.016998291015625, 0.0233612060546875, -0.027618408203125, 0.0182952880859375, 0.0172271728515625, 0.004100799560546875, 0.0062255859375, -0.03399658203125, 0.04058837890625, 0.04437255859375, -0.00640106201171875, 0.0309143...
[ 10, 56, 64, 100, 313, 441, 724, 831, 2071, 2685, 3129, 4127, 4727, 7244, 9969, 12921, 13452, 13651, 13709, 16487, 26176, 29822, 29908, 34759, 37223, 43342, 48962, 55516, 58093, 73372, 121137, 139392 ]
[ 0.06884765625, 0.05224609375, 0.07421875, 0.078125, 0.08203125, 0.04833984375, 0.00390625, 0.0751953125, 0.01416015625, 0.03515625, 0.004638671875, 0.1337890625, 0.07568359375, 0.04931640625, 0.12109375, 0.1005859375, 0.11328125, 0.11328125, 0.10595703125, 0.07763671875, 0.20...
cad7f606-e49e-5422-9e2e-db0cb4fb3d03
9,629
0
Title: Playing wave file ends immediately (C++, Windows) I have got the following situation. On a machine there is a Fritz ISDN card. There is a process that is responsible for playing a certain wave file on this device's wave out (ISDN connection is made at startup and made persistent). The scenario is easy, whenever...
272
312
[ "c++" ]
[ "c++", "windows", "waveout" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T10:04:40.610000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2018-03-13T17:16:57.783000+00:00","last_edit_date":"2018-03-13T17:16:57.783000+00:00",...
[ 0.0037479400634765625, -0.007762908935546875, 0.0132904052734375, -0.01788330078125, 0.0291595458984375, 0.00420379638671875, -0.01299285888671875, 0.013641357421875, -0.01123046875, -0.010406494140625, -0.01140594482421875, 0.0278778076171875, 0.0352783203125, -0.044921875, -0.027526855...
[ 7, 132, 177, 259, 272, 384, 397, 454, 594, 959, 1284, 1456, 1733, 1810, 3509, 3564, 3714, 3773, 3853, 4332, 4568, 7103, 7225, 7228, 9433, 9956, 10846, 11015, 11301, 11356, 11435, 11782, 12620, 13312, 13315, 13438, 13648, 15744, 16648, 184...
[ 0.0167236328125, 0.0556640625, 0.01318359375, 0.19140625, 0.1650390625, 0.0220947265625, 0.087890625, 0.046630859375, 0.140625, 0.0634765625, 0.041259765625, 0.080078125, 0.0228271484375, 0.1591796875, 0.146484375, 0.146484375, 0.0203857421875, 0.095703125, 0.00390625, 0.054199...
da575ad5-e559-59b7-9f35-b4ac2b58e599
9,667
0
Title: Validating a Win32 Window Handle Given a handle of type HWND is it possible to confirm that the handle represents a real window?
32
35
[ "c++" ]
[ "c++", "windows", "winapi" ]
{"accepted_answer_id":9670,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T11:42:13.860000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2018-03-13T17:16:31.253000+00:00","last_edit_date":"2018-03-13T17:16:31.253000+00:00","...
[ 0.043182373046875, -0.005603790283203125, 0.00489044189453125, 0.0147857666015625, 0.0020580291748046875, 0.01186370849609375, -0.0103759765625, 0.0128173828125, 0.00995635986328125, -0.0205078125, -0.02337646484375, 0.020751953125, 0.022308349609375, -0.014251708984375, 0.02337646484375...
[ 7, 10, 47, 83, 111, 133, 450, 572, 1456, 2773, 6460, 7722, 10639, 10644, 17686, 25013, 25447, 33636, 34831, 39563, 48962, 56464, 76896, 77878, 176501 ]
[ 0.057861328125, 0.041015625, 0.056884765625, 0.0257568359375, 0.03515625, 0.142578125, 0.013427734375, 0.111328125, 0.1162109375, 0.205078125, 0.208984375, 0.1533203125, 0.1953125, 0.1435546875, 0.09033203125, 0.24609375, 0.17578125, 0.22265625, 0.26953125, 0.2109375, 0.03808...
6554b103-eefa-5abf-b9d4-1dfe4e75587f
9,938
0
Title: Generic iterator I am trying to find a generic way of accessing a set of containers. I have a standard vector and list in addition to another custom list. The custom list defines an iterator; class Iterator: public std::iterator<std::forward_iterator_tag, T> { // ... } Iterator begin() { return (It...
213
263
[ "c++" ]
[ "c++", "generics", "iteration", "containers" ]
{"accepted_answer_id":9972,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T15:22:47.847000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2008-09-24T15:44:41.220000+00:00","last_edit_date":null,"question_id":9938,"score":34,"...
[ -0.007598876953125, 0.00531005859375, 0.0084228515625, 0.0130615234375, 0.01324462890625, -0.008056640625, -0.00848388671875, 0.0230712890625, 0.03271484375, 0.009765625, -0.017333984375, 0.0303955078125, 0.00164794921875, -0.0206298828125, -0.012451171875, 0.03125, 0.0103759765625, ...
[ 7, 17, 31, 54, 71, 74, 87, 97, 111, 113, 132, 136, 173, 214, 271, 272, 384, 568, 645, 720, 756, 1022, 1771, 1884, 2472, 2806, 2967, 3564, 3835, 3917, 4288, 4597, 5303, 5423, 5570, 5701, 6138, 6562, 6820, 6936, 7413, 8560, 9572, 98...
[ 0.051025390625, 0.1201171875, 0.1611328125, 0.006103515625, 0.1298828125, 0.0213623046875, 0.107421875, 0.10546875, 0.0205078125, 0.123046875, 0.0191650390625, 0.05712890625, 0.14453125, 0.0888671875, 0.0859375, 0.140625, 0.10400390625, 0.010009765625, 0.0693359375, 0.259765625...
347ca048-6977-526e-b65a-e3619e9e831a
10,059
0
Title: Removing icon from Windows title bars without ditching close button or system menu? I'm developing an MFC application and I've recently been searching for a good method to remove the icon from a Windows title bar, but retain the close button. The two obvious candidate solutions are turning off the system menu s...
114
123
[ "c++" ]
[ "c++", "windows", "user-interface", "mfc" ]
{"accepted_answer_id":10555,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T16:42:40.570000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-04-11T17:22:24.877000+00:00","last_edit_date":"2016-12-20T08:45:23.103000+00:00",...
[ 0.032318115234375, -0.0011205673217773438, 0.01593017578125, 0.018524169921875, 0.0123291015625, -0.00814056396484375, -0.004718780517578125, 0.02996826171875, -0.01427459716796875, -0.01209259033203125, -0.0281982421875, 0.039154052734375, 0.0304412841796875, -0.0100860595703125, 0.0349...
[ 73, 276, 432, 853, 1284, 1295, 1909, 2886, 3678, 3773, 4127, 5426, 5570, 5773, 6496, 8026, 12601, 15490, 20623, 20903, 25469, 27529, 38415, 44759, 47989, 48962, 51347, 55300, 55516, 76896, 77679, 86685, 87388, 90978, 112033, 123309, 132283, 1...
[ 0.0167236328125, 0.00537109375, 0.126953125, 0.055908203125, 0.0078125, 0.0888671875, 0.19140625, 0.0341796875, 0.0234375, 0.1611328125, 0.0189208984375, 0.0703125, 0.0693359375, 0.07275390625, 0.00390625, 0.142578125, 0.052734375, 0.013916015625, 0.171875, 0.15234375, 0.0432...
a5a1d000-3a2b-59ba-bc8d-b899f5cd9714
10,880
0
Title: Any good advice on using emacs for C++ project? I'm looking for a good article on using emacs as C/C++ IDE. Something like Steve Yegge's "Effective emacs".
43
53
[ "c++" ]
[ "c++", "emacs" ]
{"accepted_answer_id":10890,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2016-12-20T09:40:41.947000+00:00","creation_date":"2008-08-14T10:42:59.627000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2016-06-09T00:30:34.420000+00:00","last_edit_date":null,"...
[ 0.01418304443359375, -0.0029430389404296875, 0.012420654296875, 0.005619049072265625, 0.0250701904296875, -0.0276641845703125, -0.0169525146484375, 0.053924560546875, 0.01153564453125, -0.0164794921875, -0.0263671875, 0.025543212890625, 0.044036865234375, 0.00982666015625, 0.035552978515...
[ 7, 64, 98, 100, 237, 313, 352, 441, 2263, 4127, 4902, 5582, 11246, 13452, 16487, 17368, 23359, 36497, 37223, 41550, 48962, 67660, 100034 ]
[ 0.224609375, 0.0693359375, 0.031005859375, 0.0791015625, 0.1015625, 0.115234375, 0.162109375, 0.057373046875, 0.2216796875, 0.07177734375, 0.115234375, 0.06787109375, 0.11328125, 0.1181640625, 0.03564453125, 0.1416015625, 0.166015625, 0.234375, 0.27734375, 0.103515625, 0.0019...
09afdf2b-3f41-5043-8c72-c7924bbb7edf
10,901
0
Title: Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms? My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is old...
385
407
[ "c#", "c++" ]
[ "c#", "c++", "winforms", "mfc", "user-interface" ]
{"accepted_answer_id":11004,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T11:26:02.733000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2009-02-25T22:41:07.390000+00:00","last_edit_date":"2008-08-17T02:00:20.867000+00...
[ 0.02593994140625, -0.0228118896484375, -0.0171661376953125, 0.00801849365234375, 0.0011119842529296875, 0.003398895263671875, 0.01027679443359375, 0.033599853515625, 0.0241851806640625, -0.0004680156707763672, -0.036834716796875, 0.010406494140625, 0.02581787109375, -0.002349853515625, 0...
[ 4, 5, 6, 7, 8, 10, 13, 15, 16, 18, 20, 23, 25, 31, 32, 38, 39, 47, 53, 62, 64, 70, 71, 83, 87, 90, 98, 100, 107, 111, 136, 142, 163, 186, 206, 214, 221, 237, 276, 289, 297, 313, 390, 442, 450, 502, 525, 538, 581, 601, ...
[ 0.0284423828125, 0.01953125, 0.0286865234375, 0.1748046875, 0.06884765625, 0.0281982421875, 0.027099609375, 0.0269775390625, 0.02734375, 0.0228271484375, 0.0009765625, 0.0279541015625, 0.0274658203125, 0.027587890625, 0.008544921875, 0.00244140625, 0.02392578125, 0.0274658203125, ...
c00fbeb9-0087-5279-ba8d-4c97e76261f1
10,985
0
Title: How to prevent an object being created on the heap? Does anyone know how I can, in platform-independent C++ code prevent an object from being created on the heap? That is, for a class "Foo", I want to prevent users from doing this: Foo *ptr = new Foo; and only allow them to do this: Foo myfooObject; Doe...
89
96
[ "c++" ]
[ "c++", "stack", "heap-memory" ]
{"accepted_answer_id":11299,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T13:19:08.073000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-11-27T20:57:18.567000+00:00","last_edit_date":"2021-06-13T11:53:26.187000+00:00",...
[ 0.0208892822265625, 0.022674560546875, 0.01898193359375, 0.007190704345703125, 0.01611328125, -0.01390838623046875, 0.00067138671875, 0.041534423828125, 0.00799560546875, -0.02935791015625, -0.020294189453125, -0.014739990234375, -0.0006227493286132812, -0.0249481201171875, 0.01247406005...
[ 23, 31, 42, 47, 54, 70, 87, 98, 142, 313, 661, 759, 764, 831, 903, 1295, 2631, 2856, 3444, 3525, 3584, 3642, 3714, 4734, 5024, 6328, 8035, 9572, 11249, 13651, 18151, 18507, 20594, 25647, 27591, 35672, 36746, 37223, 46471, 48962, 56282, ...
[ 0.001220703125, 0.1650390625, 0.126953125, 0.0654296875, 0.08251953125, 0.03369140625, 0.006591796875, 0.140625, 0.004150390625, 0.0654296875, 0.060546875, 0.111328125, 0.185546875, 0.064453125, 0.051513671875, 0.1318359375, 0.197265625, 0.00244140625, 0.03515625, 0.06591796875...
6de41648-f81f-5a54-8847-2a5541b2dee4
11,060
0
Title: How should I unit test a code-generator? This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and see if anyone had any interesting suggestions. I have developed a code-generator that takes our python interface to our C++ code (generated via SWIG) and generates code need...
276
300
[ "c++", "python" ]
[ "c++", "python", "unit-testing", "code-generation", "swig" ]
{"accepted_answer_id":11074,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T13:59:21.533000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","python"],"last_activity_date":"2015-07-20T04:10:25.057000+00:00","last_edit_date":"2008-08-23T19:52:34.19300...
[ -0.0138702392578125, 0.00640106201171875, 0.0161895751953125, 0.00580596923828125, 0.0309600830078125, -0.051910400390625, 0.0210723876953125, 0.013397216796875, 0.0201263427734375, 0.005001068115234375, -0.0284576416015625, 0.0240478515625, 0.01012420654296875, 0.032135009765625, 0.0182...
[ 23, 54, 56, 87, 104, 186, 237, 384, 493, 876, 1284, 1286, 1290, 1829, 2046, 2069, 2285, 2811, 2967, 3034, 3444, 3917, 4002, 4785, 5351, 5608, 6713, 7730, 9803, 10336, 11249, 11675, 12008, 12301, 12638, 14037, 17198, 17368, 17991, 18151, ...
[ 0.0498046875, 0.012451171875, 0.02587890625, 0.001220703125, 0.06201171875, 0.05712890625, 0.0185546875, 0.0478515625, 0.1220703125, 0.041259765625, 0.0177001953125, 0.01318359375, 0.1591796875, 0.0164794921875, 0.004638671875, 0.03369140625, 0.0230712890625, 0.1123046875, 0.1162...
6fc4e8ea-5a9f-5fe3-b8ab-75de472d7cd2
11,127
0
Title: In C++/Windows how do I get the network name of the computer I'm on? In a C++ Windows (XP and NT, if it makes a difference) application I'm working on, I need to get the network name associated with the computer the code is executing on, so that I can convert local filenames from C:\filename.ext to \\network_na...
136
156
[ "c++" ]
[ "c++", "windows-xp", "network-programming", "windows-nt" ]
{"accepted_answer_id":11132,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T14:37:27.120000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2015-10-08T07:04:58.477000+00:00","last_edit_date":"2008-08-25T18:10:47.523000+00:00",...
[ 0.0177154541015625, -0.054656982421875, -0.0167694091796875, 0.00281524658203125, -0.008331298828125, 0.0018911361694335938, -0.01190948486328125, 0.02099609375, -0.003108978271484375, -0.01366424560546875, -0.02545166015625, 0.0101470947265625, 0.04388427734375, -0.0287322998046875, 0.0...
[ 12, 18, 39, 47, 54, 64, 70, 87, 98, 111, 126, 186, 289, 313, 360, 441, 601, 678, 724, 1179, 1295, 2046, 3355, 3642, 3773, 3871, 4000, 4369, 4488, 9351, 11435, 11627, 13909, 18151, 18244, 20697, 22648, 24447, 29822, 32354, 33120, 37223...
[ 0.059814453125, 0.1318359375, 0.0264892578125, 0.07177734375, 0.0185546875, 0.024169921875, 0.0771484375, 0.031494140625, 0.0966796875, 0.0634765625, 0.1005859375, 0.009033203125, 0.00830078125, 0.05078125, 0.06689453125, 0.076171875, 0.06591796875, 0.0458984375, 0.10400390625, ...
1c35f928-8601-50e9-9bb4-5175d39f35e4
11,405
0
Title: GCC issue: using a member of a base class that depends on a template argument The following code doesn't compile with gcc, but does with Visual Studio: template <typename T> class A { public: T foo; }; template <typename T> class B: public A <T> { public: void bar() { cout << foo << endl; } }; I ge...
187
208
[ "c++" ]
[ "c++", "templates", "base-class", "class-members", "name-lookup" ]
{"accepted_answer_id":11414,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T17:39:46.520000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-03-18T19:06:13.300000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00",...
[ 0.0076751708984375, 0.0022296905517578125, 0.00115966796875, -0.017364501953125, 0.0237884521484375, -0.024505615234375, 0.0024089813232421875, 0.0333251953125, -0.005771636962890625, 0.01016998291015625, 0.002498626708984375, 0.038299560546875, 0.01380157470703125, -0.0086822509765625, ...
[ 7, 18, 22, 23, 31, 62, 98, 238, 313, 335, 384, 509, 527, 532, 552, 618, 678, 903, 959, 965, 1003, 1299, 1340, 1909, 2292, 3034, 3584, 3647, 3688, 3835, 5608, 5775, 6366, 7190, 9969, 10750, 11627, 13709, 15549, 17368, 18151, 18499, 1...
[ 0.011962890625, 0.048095703125, 0.0703125, 0.048828125, 0.15625, 0.04443359375, 0.012939453125, 0.1279296875, 0.0216064453125, 0.10009765625, 0.0986328125, 0.030517578125, 0.078125, 0.03759765625, 0.05419921875, 0.043212890625, 0.06103515625, 0.1259765625, 0.095703125, 0.108398...
d9f68524-9b79-54c0-9d65-fdbc63aa485c
11,491
0
Title: String To Lower/Upper in C++ What is the best way people have found to do String to Lower case / Upper case in C++? The issue is complicated by the fact that C++ isn't an English only programming language. Is there a good multilingual method?
60
69
[ "c++" ]
[ "c++", "string", "unicode" ]
{"accepted_answer_id":11502,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T18:49:47.703000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2021-01-26T19:49:36.873000+00:00","last_edit_date":"2014-04-14T17:47:47.870000+00:00"...
[ 0.0252838134765625, -0.0182342529296875, -0.00811767578125, -0.00543975830078125, 0.020111083984375, -0.038116455078125, -0.0204620361328125, -0.013702392578125, 0.0101165771484375, 0.01235198974609375, -0.005115509033203125, 0.0096435546875, 0.0172882080078125, -0.0240020751953125, 0.04...
[ 18, 23, 47, 54, 56, 64, 214, 248, 297, 313, 717, 765, 1062, 2965, 3395, 3917, 4127, 4734, 6024, 7225, 8079, 14037, 14941, 23351, 26655, 31089, 37223, 46876, 48962, 55300, 56037, 56112, 61187, 65279, 96704 ]
[ 0.0009765625, 0.052490234375, 0.1767578125, 0.057373046875, 0.203125, 0.060791015625, 0.1376953125, 0.0556640625, 0.0177001953125, 0.09033203125, 0.1748046875, 0.017578125, 0.10400390625, 0.10498046875, 0.025390625, 0.06640625, 0.044189453125, 0.026123046875, 0.054443359375, 0....
d40ea6b5-c914-5900-98a6-ff1a7e809d9f
11,562
0
Title: How to overload std::swap() std::swap() is used by many std containers (such as std::list and std::vector) during sorting and even assignment. But the std implementation of swap() is very generalized and rather inefficient for custom types. Thus efficiency can be gained by overloading std::swap() with a cus...
92
127
[ "c++" ]
[ "c++", "performance", "optimization", "stl", "c++-faq" ]
{"accepted_answer_id":2684544,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T19:24:17.260000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2021-10-12T12:56:04.737000+00:00","last_edit_date":"2013-03-22T18:30:07.997000+00:00...
[ 0.045440673828125, 0.0040740966796875, 0.031646728515625, 0.0205841064453125, 0.041412353515625, -0.0225982666015625, -0.0100555419921875, 0.0276031494140625, 0.022125244140625, 0.005859375, 0.01016998291015625, 0.0225982666015625, -0.0010480880737304688, -0.0006504058837890625, 0.031646...
[ 7, 12, 47, 71, 132, 214, 254, 272, 634, 645, 831, 3642, 4537, 4552, 5941, 6138, 6562, 10644, 11249, 11814, 12096, 18770, 20271, 21647, 24500, 29458, 29479, 43257, 45964, 48962, 52895, 63033, 95486, 114122, 116419, 202317, 208124, 227066 ]
[ 0.0830078125, 0.03271484375, 0.044921875, 0.1328125, 0.1396484375, 0.029296875, 0.1953125, 0.1044921875, 0.2119140625, 0.1318359375, 0.015380859375, 0.0400390625, 0.08203125, 0.03662109375, 0.034423828125, 0.1796875, 0.09228515625, 0.193359375, 0.08447265625, 0.1142578125, 0....
4675d9bc-ca1e-507c-bc25-0f10e4a9712f
11,635
0
Title: Case-insensitive string comparison in C++ What is the best way of doing case-insensitive string comparison in C++ without transforming a string to all uppercase or all lowercase? Please indicate whether the methods are Unicode-friendly and how portable they are.
53
61
[ "c++" ]
[ "c++", "string" ]
{"accepted_answer_id":315463,"answer_count":30,"chunk_count":1,"chunk_index":0,"closed_date":"2018-04-26T23:41:47.210000+00:00","creation_date":"2008-08-14T20:01:28.497000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2025-09-23T12:23:42.327000+00:00","last_edit_date":"201...
[ 0.0146331787109375, -0.02581787109375, -0.00675201416015625, -0.00145721435546875, 0.0253448486328125, -0.0180816650390625, -0.01082611083984375, -0.01558685302734375, 0.002765655517578125, -0.0190277099609375, -0.027008056640625, 0.0121307373046875, 0.0204620361328125, -0.0016355514526367...
[ 9, 13, 23, 47, 56, 70, 73, 111, 313, 756, 1407, 2965, 3917, 7225, 15490, 20594, 27198, 37223, 43731, 48962, 58437, 79315, 92319, 117414, 150624, 168627, 176302, 193701, 219778, 225490 ]
[ 0.0152587890625, 0.107421875, 0.0419921875, 0.01708984375, 0.009765625, 0.00732421875, 0.107421875, 0.000244140625, 0.05322265625, 0.0146484375, 0.044189453125, 0.095703125, 0.047607421875, 0.1845703125, 0.0927734375, 0.0771484375, 0.11328125, 0.263671875, 0.19140625, 0.0068359...
6df84ef6-20c1-5154-8ddd-49f41b54689f
11,854
0
Title: Inheritance and Polymorphism - Ease of use vs Purity In a project our team is using object lists to perform mass operations on sets of data that should all be processed in a similar way. In particular, different objects would ideally act the same, which would be very easily achieved with polymorphism. The probl...
269
302
[ "c++" ]
[ "c++", "inheritance", "oop", "polymorphism" ]
{"accepted_answer_id":11935,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T01:00:47.690000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2010-01-18T21:29:48.753000+00:00","last_edit_date":"2008-09-21T07:38:09.493000+00:00"...
[ 0.019500732421875, 0.0230255126953125, -0.002643585205078125, 0.016571044921875, 0.050506591796875, 0.0093994140625, 0.02197265625, 0.012451171875, 0.041595458984375, -0.0089874267578125, -0.043701171875, 0.044158935546875, -0.021026611328125, -0.0286712646484375, -0.00963592529296875, ...
[ 10, 23, 28, 70, 83, 90, 100, 111, 136, 217, 241, 248, 313, 360, 377, 519, 538, 678, 756, 765, 831, 959, 1556, 1829, 1884, 2053, 2481, 2806, 2967, 3229, 3334, 3445, 3501, 3647, 4527, 4552, 4734, 5303, 5351, 5423, 5608, 5701, 5809, ...
[ 0.02392578125, 0.1484375, 0.028076171875, 0.0218505859375, 0.1298828125, 0.0126953125, 0.0257568359375, 0.09765625, 0.035888671875, 0.1640625, 0.06591796875, 0.010009765625, 0.020263671875, 0.09619140625, 0.1162109375, 0.1220703125, 0.10400390625, 0.0166015625, 0.020751953125, ...
577545f4-fe43-522a-8e74-735490aa9aa6
12,319
0
Title: _wfopen equivalent under Mac OS X I'm looking to the equivalent of Windows _wfopen() under Mac OS X. Any idea? I need this in order to port a Windows library that uses wchar* for its File interface. As this is intended to be a cross-platform library, I am unable to rely on how the client application will get ...
86
96
[ "c++" ]
[ "c++", "winapi", "macos", "porting", "fopen" ]
{"accepted_answer_id":265407,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T14:59:11.653000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2013-12-27T11:46:16.403000+00:00","last_edit_date":"2008-10-02T12:42:08.927000+00:00"...
[ -0.00959014892578125, -0.042816162109375, -0.0150909423828125, -0.006084442138671875, 0.00994110107421875, 0.01169586181640625, 0.0159149169921875, 0.01322174072265625, -0.004619598388671875, -0.01520538330078125, -0.00959014892578125, 0.01456451416015625, 0.0390625, -0.035552978515625, ...
[ 101, 132, 148, 434, 538, 903, 1193, 1294, 1379, 1639, 2278, 2886, 3584, 3773, 3871, 4527, 4727, 6528, 9254, 11435, 11469, 11787, 16487, 23282, 35773, 38415, 41421, 42724, 48962, 60875, 101758, 172121, 179140, 183234 ]
[ 0.0849609375, 0.07958984375, 0.1318359375, 0.1474609375, 0.028076171875, 0.0184326171875, 0.16015625, 0.06787109375, 0.123046875, 0.1201171875, 0.283203125, 0.03271484375, 0.185546875, 0.1767578125, 0.0712890625, 0.0245361328125, 0.1416015625, 0.052490234375, 0.2177734375, 0.11...
8b039cb7-fbdb-5a8c-96f4-54556a3fa81b
12,332
0
Title: In a C/C++ program, how does the system (Windows, Linux, and Mac OS X) call the main() function? I am looking for a more technical explanation than the OS calls the function. Is there a website or book?
54
56
[ "c", "c++" ]
[ "c++", "c", "program-entry-point" ]
{"accepted_answer_id":12408,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T15:08:48.560000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2022-06-27T21:38:25.447000+00:00","last_edit_date":"2022-06-27T21:01:59.750000+00:...
[ -0.005245208740234375, 0.00044035911560058594, -0.00536346435546875, -0.0262908935546875, 0.01202392578125, -0.0220489501953125, 0.00586700439453125, 0.0030498504638671875, 0.0020923614501953125, -0.01444244384765625, -0.037017822265625, 0.0174407958984375, 0.0245208740234375, -0.016860961...
[ 4, 7, 16, 64, 70, 132, 313, 441, 1193, 1286, 1528, 3501, 3642, 4165, 4727, 5201, 5426, 11782, 11787, 12877, 14602, 16487, 29908, 32354, 37223, 43342, 48962, 121392, 187136 ]
[ 0.009765625, 0.0703125, 0.034912109375, 0.0849609375, 0.0189208984375, 0.1806640625, 0.072265625, 0.0277099609375, 0.0869140625, 0.039306640625, 0.1357421875, 0.0458984375, 0.103515625, 0.07275390625, 0.06982421875, 0.2265625, 0.169921875, 0.177734375, 0.189453125, 0.0947265625...
33fa378d-20c8-57b9-9cd6-69cb08dd7394
12,594
0
Title: Windows/C++: How do I determine the share name associated with a shared drive? Let's say I have a drive such as C:\, and I want to find out if it's shared and what it's share name (e.g. C$) is. To find out if it's shared, I can use NetShareCheck. How do I then map the drive to its share name? I thought that...
118
124
[ "c++" ]
[ "c++", "windows", "network-programming", "share" ]
{"accepted_answer_id":12599,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T18:45:36.190000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2020-05-29T13:11:00.800000+00:00","last_edit_date":"2020-05-29T13:07:25.990000+00:00",...
[ 0.0078125, -0.059356689453125, -0.00447845458984375, 0.0106353759765625, -0.0006346702575683594, 0.021148681640625, -0.0282440185546875, 0.00018775463104248047, -0.015869140625, -0.028717041015625, -0.03076171875, 0.004627227783203125, 0.0146636962890625, -0.036041259765625, 0.0281219482...
[ 12, 47, 54, 70, 83, 87, 126, 136, 237, 313, 441, 442, 678, 724, 765, 959, 1810, 2174, 2367, 3444, 3773, 4000, 4369, 4527, 6863, 7413, 9351, 10086, 11249, 12008, 17569, 22288, 22648, 33342, 37223, 41872, 48962, 51776, 69042, 83324, 93147...
[ 0.1298828125, 0.1357421875, 0.046142578125, 0.0361328125, 0.048583984375, 0.052978515625, 0.0859375, 0.0146484375, 0.009765625, 0.087890625, 0.021484375, 0.0712890625, 0.062255859375, 0.06201171875, 0.0172119140625, 0.0174560546875, 0.1103515625, 0.1083984375, 0.0233154296875, ...
0ef0df63-91ce-5bd0-90a2-f8faca1f11cb
12,633
0
Title: What is the easiest way to parse an INI File in C++? I'm trying to parse an INI file using C++. Any tips on what is the best way to achieve this? Should I use the Windows API tools for INI file processing (with which I am totally unfamiliar), an open-source solution or attempt to parse it manually?
74
84
[ "c++" ]
[ "c++", "winapi", "ini", "fileparse" ]
{"accepted_answer_id":12677,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":"2021-09-27T19:58:56.100000+00:00","creation_date":"2008-08-15T19:31:01.747000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2021-04-08T21:49:23.793000+00:00","last_edit_date":null,...
[ -0.001842498779296875, -0.0123748779296875, -0.001613616943359375, -0.01776123046875, 0.0211944580078125, -0.01361846923828125, 0.005329132080078125, 0.0291290283203125, -0.006778717041015625, -0.0241546630859375, -0.0433349609375, 0.024993896484375, 0.024993896484375, -0.0357666015625, ...
[ 23, 28, 47, 70, 83, 184, 214, 313, 366, 525, 1544, 2965, 3773, 3917, 4527, 4865, 6305, 9433, 9803, 11435, 17368, 23009, 29806, 31577, 37223, 42724, 48962, 60427, 61687, 69211, 69307, 72977, 81887, 99085, 112668, 151117 ]
[ 0.083984375, 0.05419921875, 0.06396484375, 0.045166015625, 0.017822265625, 0.166015625, 0.031005859375, 0.0908203125, 0.17578125, 0.12109375, 0.1591796875, 0.10107421875, 0.1328125, 0.087890625, 0.05224609375, 0.03125, 0.1171875, 0.052978515625, 0.06298828125, 0.203125, 0.074...
0c2d047d-3b6b-551a-af42-71014ed98ab9
12,716
0
Title: Problems with #import of .NET out-of-proc server In C++ program, I am trying to #import TLB of .NET out-of-proc server. I get errors like: z:\server.tlh(111) : error C2146: syntax error : missing ';' before identifier 'GetType' z:\server.tlh(111) : error C2501: '_TypePtr' : missing storage-class or type...
324
353
[ "c#", "c++" ]
[ "c#", "c++", "com", "interop" ]
{"accepted_answer_id":12751,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T20:40:11.980000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2020-04-11T19:21:54.590000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00...
[ 0.000046193599700927734, -0.0204315185546875, 0.00848388671875, 0.0036144256591796875, 0.018768310546875, -0.006992340087890625, 0.0162506103515625, 0.0276031494140625, 0.0218658447265625, 0.00824737548828125, -0.0244903564453125, -0.005077362060546875, -0.00322723388671875, -0.01105499267...
[ 5, 18, 97, 111, 126, 132, 170, 238, 310, 313, 468, 571, 617, 683, 707, 831, 841, 959, 995, 1340, 1528, 1810, 1884, 2053, 2256, 2357, 3117, 3454, 3559, 3564, 3647, 4390, 4448, 4989, 5612, 6002, 6305, 6495, 6936, 7763, 8108, 9185, 927...
[ 0.019775390625, 0.0390625, 0.06640625, 0.0791015625, 0.0498046875, 0.009521484375, 0.046875, 0.06494140625, 0.05126953125, 0.039306640625, 0.022216796875, 0.22265625, 0.126953125, 0.044677734375, 0.003662109375, 0.0235595703125, 0.1865234375, 0.00634765625, 0.0264892578125, 0.0...
2d378027-7478-5e17-9ee4-1906be8d6fa5
13,128
0
Title: How can I combine several C/C++ libraries into one? I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libr...
79
95
[ "c", "c++" ]
[ "c++", "c", "archive" ]
{"accepted_answer_id":13140,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-16T13:46:01.987000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2022-06-27T21:36:28.233000+00:00","last_edit_date":"2022-06-27T21:16:51.863000+00:...
[ 0.03375244140625, 0.005397796630859375, 0.018646240234375, 0.0035991668701171875, 0.0243072509765625, 0.006282806396484375, -0.0083770751953125, 0.043670654296875, -0.0040435791015625, -0.0030975341796875, -0.01410675048828125, 0.0306854248046875, 0.0246734619140625, -0.0217132568359375, ...
[ 5, 11, 39, 64, 87, 111, 169, 313, 375, 441, 450, 592, 831, 964, 1294, 1492, 1632, 1884, 2071, 2856, 3126, 3934, 4527, 5612, 5646, 7722, 10002, 10484, 11001, 11249, 13452, 25474, 35773, 37223, 40368, 48962, 70163, 128468, 136659, 144573, ...
[ 0.1123046875, 0.1591796875, 0.008056640625, 0.130859375, 0.05517578125, 0.01953125, 0.10009765625, 0.115234375, 0.1171875, 0.07080078125, 0.006103515625, 0.0283203125, 0.095703125, 0.1748046875, 0.1962890625, 0.09375, 0.1787109375, 0.08203125, 0.0361328125, 0.01904296875, 0.1...
94c96de7-391e-5939-8bf6-f11f05cbe110
13,473
0
Title: How does one rank an array (sort) by value? *With a twist* I would like to sort an array in ascending order using C/C++. The outcome is an array containing element indexes. Each index is corespondent to the element location in the sorted array. Example Input: 1, 3, 4, 9, 6 Output: 1, 2, 3, 5, 4 Edit: I a...
375
388
[ "c", "c++" ]
[ "c++", "c", "arrays", "sorting" ]
{"accepted_answer_id":13481,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-17T02:13:55.533000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2018-09-23T06:29:31.897000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:...
[ 0.018035888671875, 0.002506256103515625, 0.01465606689453125, 0.0110931396484375, 0.032501220703125, -0.0015125274658203125, -0.00106048583984375, -0.0187530517578125, 0.0089569091796875, -0.0101470947265625, 0.0194549560546875, 0.028594970703125, 0.006259918212890625, -0.0121002197265625,...
[ 14, 16, 17, 18, 23, 47, 53, 64, 67, 90, 106, 111, 116, 138, 170, 190, 201, 214, 305, 313, 360, 390, 441, 449, 483, 757, 997, 1314, 1340, 1632, 1647, 1884, 2292, 2967, 4288, 4358, 4426, 5117, 5416, 6275, 7077, 7092, 7311, 7614, 9...
[ 0.0166015625, 0.05712890625, 0.091796875, 0.0400390625, 0.050537109375, 0.0260009765625, 0.1611328125, 0.08203125, 0.056640625, 0.046142578125, 0.05908203125, 0.0185546875, 0.020751953125, 0.1162109375, 0.0791015625, 0.0947265625, 0.1181640625, 0.07666015625, 0.1044921875, 0.08...
79f9bce1-c899-537d-8a1b-15a87f8b6ff0
13,607
0
Title: GUI system development resources? Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is 3DBuzz.com's C++/OpenGL VTMs (Video Training Modules). While they are very good, they cover a large area of graphics programming, so only s...
258
277
[ "c++" ]
[ "c++", "user-interface", "playstation-portable" ]
{"accepted_answer_id":13618,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":"2017-01-11T18:05:41.603000+00:00","creation_date":"2008-08-17T12:50:15+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2016-12-20T08:58:34.400000+00:00","last_edit_date":"2017-05-23T1...
[ 0.0190582275390625, 0.0223388671875, 0.0184478759765625, 0.0080108642578125, 0.00971221923828125, -0.0246429443359375, -0.0038547515869140625, 0.0253753662109375, -0.0091094970703125, 0.00394439697265625, -0.0210113525390625, 0.03521728515625, 0.026947021484375, 0.004795074462890625, 0.0...
[ 7, 10, 18, 23, 34, 54, 64, 87, 100, 138, 277, 310, 313, 441, 449, 568, 959, 1632, 1810, 2256, 2396, 3173, 3249, 3444, 4127, 4527, 4552, 5368, 5426, 5526, 6626, 9851, 10111, 10644, 11814, 12601, 13651, 13894, 16128, 18151, 22365, 25073...
[ 0.038818359375, 0.0947265625, 0.0146484375, 0.0546875, 0.0191650390625, 0.0810546875, 0.04931640625, 0.06396484375, 0.03857421875, 0.08349609375, 0.1005859375, 0.0751953125, 0.0732421875, 0.012451171875, 0.06494140625, 0.1728515625, 0.0260009765625, 0.006591796875, 0.030639648437...
a5ead44f-0be9-5c41-b4ac-a197022bed62
13,806
0
Title: Any Windows APIs to get file handles besides createfile and openfile? I am trying to snoop on a log file that an application is writing to. I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tri...
129
140
[ "c++" ]
[ "c++", "windows", "logfile" ]
{"accepted_answer_id":13870,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-17T18:27:08.473000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2022-09-06T12:04:15.020000+00:00","last_edit_date":"2022-09-06T12:04:15.020000+00:00",...
[ -0.0019359588623046875, -0.025970458984375, -0.00399017333984375, 0.0092315673828125, 0.0190582275390625, -0.0141754150390625, 0.007415771484375, 0.006641387939453125, 0.00461578369140625, -0.01441192626953125, -0.0291900634765625, -0.00467681884765625, 0.0215606689453125, -0.0390625, -0...
[ 7, 8, 10, 31, 47, 70, 87, 98, 100, 102, 136, 444, 678, 959, 988, 1294, 1295, 2046, 2146, 2856, 3522, 3773, 3789, 4994, 6626, 8108, 8306, 9803, 10366, 11435, 11782, 12684, 28282, 28541, 28889, 29822, 30338, 31577, 32562, 34831, 35773, ...
[ 0.109375, 0.1123046875, 0.060546875, 0.1572265625, 0.0732421875, 0.00244140625, 0.01611328125, 0.1064453125, 0.06884765625, 0.0400390625, 0.039306640625, 0.0146484375, 0.08447265625, 0.0230712890625, 0.032470703125, 0.0048828125, 0.01025390625, 0.09130859375, 0.1748046875, 0.04...
99ff2a9f-3a24-57e9-8737-d9879319eba4
14,126
0
Title: How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order?
48
58
[ "c++" ]
[ "c++", "boost-graph" ]
{"accepted_answer_id":14127,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T03:15:35.987000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-09-01T06:07:57.483000+00:00","last_edit_date":"2009-07-11T19:17:49.180000+00:00",...
[ 0.00616455078125, 0.00969696044921875, -0.00748443603515625, -0.01508331298828125, 0.006107330322265625, -0.00580596923828125, -0.0243072509765625, 0.004940032958984375, -0.002948760986328125, 0.004459381103515625, 0.0012273788452148438, 0.0005536079406738281, 0.036163330078125, -0.0108947...
[ 13, 23, 51, 136, 294, 297, 313, 5117, 11249, 12989, 28282, 33938, 37223, 37317, 38997, 41382, 48962, 80581, 168867, 179519 ]
[ 0.0625, 0.003662109375, 0.09619140625, 0.0048828125, 0.1220703125, 0.01318359375, 0.0478515625, 0.072265625, 0.060546875, 0.1591796875, 0.130859375, 0.1826171875, 0.26953125, 0.1396484375, 0.1259765625, 0.2314453125, 0.03515625, 0.1796875, 0.1650390625, 0.275390625 ]
5ea7c6e2-273b-5624-ba46-9006054f8dc9
14,165
0
Title: Strange C++ errors with code that has min()/max() calls I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers.
44
56
[ "c", "c++" ]
[ "c++", "c", "windows", "c-preprocessor" ]
{"accepted_answer_id":14169,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T04:13:34.920000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2025-04-26T02:06:00.263000+00:00","last_edit_date":"2025-04-26T02:06:00.263000+00:...
[ 0.0188751220703125, -0.01044464111328125, -0.01568603515625, -0.01409912109375, 0.0526123046875, -0.016632080078125, 0.001644134521484375, 0.0083160400390625, 0.009796142578125, 0.01180267333984375, -0.0119781494140625, 0.034698486328125, 0.0084381103515625, -0.002315521240234375, 0.0136...
[ 7, 64, 132, 313, 678, 707, 881, 1556, 3229, 9969, 11782, 17368, 18151, 18389, 18499, 24084, 34759, 37223, 48962, 73372, 86681, 114453, 187791 ]
[ 0.045166015625, 0.1142578125, 0.08984375, 0.0869140625, 0.048583984375, 0.0849609375, 0.23046875, 0.05322265625, 0.012939453125, 0.07568359375, 0.16015625, 0.005859375, 0.1728515625, 0.189453125, 0.1826171875, 0.173828125, 0.07080078125, 0.263671875, 0.033447265625, 0.161132812...
efcc961d-ceb8-5069-99ab-e81c004743e7
14,271
0
Title: Boost warnings with VC++ 9 When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds: Warning about the Wp64 setting. Warning about the compiler version. How can I turn off these warni...
87
86
[ "c++" ]
[ "c++", "visual-studio", "boost", "warnings" ]
{"accepted_answer_id":14272,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T07:20:19.940000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2009-01-15T05:29:05.007000+00:00","last_edit_date":"2009-01-15T05:29:05.007000+00:00",...
[ -0.002780914306640625, 0.004634857177734375, -0.00705718994140625, 0.0177001953125, 0.0232086181640625, -0.016387939453125, -0.00696563720703125, 0.042327880859375, -0.0029296875, 0.001285552978515625, -0.0210418701171875, 0.034454345703125, 0.05023193359375, 0.0004036426544189453, 0.032...
[ 116, 254, 313, 483, 592, 601, 678, 1294, 1314, 1631, 2021, 5550, 5773, 5915, 6097, 6609, 6977, 8562, 9969, 11389, 11814, 13307, 15504, 22968, 25129, 31251, 34759, 35773, 37223, 44965, 53550, 56349, 64010, 73372, 116313, 139392, 179519, 202019...
[ 0.02783203125, 0.058837890625, 0.009033203125, 0.2080078125, 0.068359375, 0.05029296875, 0.07275390625, 0.002685546875, 0.1064453125, 0.1728515625, 0.16015625, 0.1396484375, 0.1494140625, 0.057373046875, 0.0107421875, 0.06982421875, 0.1357421875, 0.08935546875, 0.12109375, 0.11...
f75d665f-61f5-5106-bf37-e509643f6561
14,491
0
Title: How can an MFC application terminate itself? What is the proper way for an MFC application to cleanly close itself?
28
30
[ "c++" ]
[ "c++", "visual-c++", "mfc" ]
{"accepted_answer_id":8768957,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T12:04:06.233000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2016-01-05T15:38:04.167000+00:00","last_edit_date":"2008-09-16T11:11:48.923000+00:00...
[ 0.0311737060546875, 0.00263214111328125, 0.024871826171875, 0.0197601318359375, 0.0182037353515625, -0.01666259765625, 0.0007586479187011719, 0.01107025146484375, -0.0009593963623046875, -0.032135009765625, -0.032135009765625, 0.002826690673828125, 0.0277252197265625, -0.0146942138671875, ...
[ 13, 47, 70, 276, 538, 831, 3917, 11249, 20903, 27529, 27798, 38415, 46622, 48962, 68034, 121011 ]
[ 0.1435546875, 0.036865234375, 0.04150390625, 0.0869140625, 0.0849609375, 0.0791015625, 0.064453125, 0.07958984375, 0.1962890625, 0.2294921875, 0.0830078125, 0.2216796875, 0.16796875, 0.03759765625, 0.1630859375, 0.2138671875 ]
5ebca575-660e-5f96-895e-e97a877c7f8f
15,240
0
Title: How do you create a debug only function that takes a variable argument list? Like printf() I'd like to make a debug logging function with the same parameters as printf. But one that can be removed by the pre-processor during optimized builds. For example: Debug_Print("Warning: value %d > 3!\n", value); I'...
100
119
[ "c", "c++" ]
[ "c++", "c", "c-preprocessor" ]
{"accepted_answer_id":15269,"answer_count":14,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T21:22:20.753000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2023-02-19T05:19:33.373000+00:00","last_edit_date":"2016-01-30T19:20:59.977000+00...
[ 0.009918212890625, -0.03753662109375, 0.006885528564453125, 0.0028934478759765625, 0.020538330078125, -0.03302001953125, 0.00412750244140625, 0.031341552734375, 0.005550384521484375, 0.0168609619140625, -0.00795745849609375, 0.033721923828125, 0.02587890625, -0.020660400390625, 0.0065917...
[ 7, 8, 18, 19, 38, 71, 132, 138, 238, 262, 420, 459, 479, 592, 748, 959, 977, 1326, 1745, 1884, 3249, 4734, 5303, 5701, 8060, 10750, 11249, 13651, 15572, 16757, 18403, 18852, 19882, 20271, 22109, 28282, 28412, 29367, 32354, 34292, 36659,...
[ 0.00341796875, 0.1845703125, 0.072265625, 0.002197265625, 0.05517578125, 0.033447265625, 0.028564453125, 0.1162109375, 0.0751953125, 0.171875, 0.1875, 0.1142578125, 0.0927734375, 0.080078125, 0.011474609375, 0.0286865234375, 0.048583984375, 0.000244140625, 0.005126953125, 0.071...
20da1033-d5f1-5e1f-b9eb-0022256d4659
15,254
0
Title: Can placement new for arrays be used in a portable way? Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass in (5.3.4, note 12 in the standard seems to confirm that th...
408
466
[ "c++" ]
[ "c++", "arrays", "portability", "overhead" ]
{"accepted_answer_id":15343,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T21:33:35.863000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-08-27T12:43:38.677000+00:00","last_edit_date":"2024-08-27T12:43:38.677000+00:00",...
[ 0.0121002197265625, 0.0133514404296875, 0.0304107666015625, 0.03363037109375, 0.0277862548828125, -0.0012369155883789062, -0.01055145263671875, 0.03314208984375, 0.0263519287109375, -0.014129638671875, -0.016937255859375, 0.0134124755859375, -0.00011783838272094727, -0.0289764404296875, ...
[ 23, 51, 53, 56, 62, 100, 127, 132, 237, 254, 262, 284, 373, 390, 427, 645, 674, 738, 757, 764, 915, 959, 1065, 1295, 1830, 1957, 2053, 2631, 2967, 3249, 3525, 3687, 3835, 3917, 3934, 4171, 4343, 4420, 4527, 4568, 4778, 5117, 5201, ...
[ 0.09375, 0.0147705078125, 0.0888671875, 0.099609375, 0.06591796875, 0.0751953125, 0.06787109375, 0.014404296875, 0.0107421875, 0.0289306640625, 0.0732421875, 0.0625, 0.091796875, 0.06591796875, 0.05517578125, 0.0859375, 0.1572265625, 0.003662109375, 0.1083984375, 0.1181640625, ...
2b3c3a30-494f-5e40-8c83-e52127a140ca
15,398
0
Title: DLL plugin that creates a parented window doesn't handle messages correctly I'm creating a plugin framework, where my application loads a series of plugin DLL's, then creates a new window and pass this new window's handle to the plugin. The plugin can, then, use this handle to create their own GUI. Everything...
196
214
[ "c++" ]
[ "c++", "windows", "plugins", "c++builder", "vcl" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T23:56:34.127000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2014-06-10T14:08:56.760000+00:00","last_edit_date":"2014-06-10T14:08:56.760000+00:00",...
[ 0.0347900390625, -0.01346588134765625, 0.018829345703125, 0.008819580078125, 0.053375244140625, -0.0269317626953125, 0.006793975830078125, 0.028717041015625, -0.0021457672119140625, -0.0216827392578125, -0.018585205078125, 0.041961669921875, 0.0256195068359375, 0.004291534423828125, -0.0...
[ 18, 47, 56, 297, 310, 313, 391, 454, 1760, 2967, 3525, 3714, 3773, 3789, 5122, 6460, 7422, 10002, 10644, 11728, 13223, 20697, 22027, 22799, 23708, 24234, 26008, 26785, 27211, 27875, 28282, 34831, 37486, 38415, 48962, 49129, 54825, 69993, 72...
[ 0.037353515625, 0.034912109375, 0.08984375, 0.0791015625, 0.045166015625, 0.0009765625, 0.024169921875, 0.0078125, 0.1298828125, 0.0869140625, 0.003662109375, 0.0164794921875, 0.1474609375, 0.008544921875, 0.03515625, 0.138671875, 0.059814453125, 0.008544921875, 0.09765625, 0.1...
4c940bf9-f207-5af0-9b0d-908b37a37b77
15,635
0
Title: Using Visual Studio to develop for C++ for Unix Does anyone have battle stories to share trying to use Visual Studio to develop applications for Unix? And I'm not talking using .NET with a Mono or Wine virtual platform running beneath. Our company has about 20 developers all running Windows XP/Vista and devel...
448
483
[ "c++" ]
[ "c++", "visual-studio", "unix", "development-environment" ]
{"accepted_answer_id":null,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T03:16:05.737000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2014-09-14T04:29:36.033000+00:00","last_edit_date":"2008-08-25T05:12:29.300000+00:00"...
[ -0.0226593017578125, -0.03399658203125, -0.009735107421875, 0.0010404586791992188, 0.018646240234375, -0.007289886474609375, 0.0103912353515625, 0.026092529296875, 0.01457977294921875, 0.0011587142944335938, -0.0179443359375, 0.03399658203125, 0.044158935546875, 0.027618408203125, 0.0146...
[ 4, 5, 6, 7, 9, 10, 13, 15, 17, 18, 20, 23, 25, 39, 47, 58, 62, 67, 70, 71, 81, 83, 87, 90, 91, 98, 100, 107, 111, 127, 136, 164, 186, 214, 237, 238, 272, 297, 304, 313, 345, 387, 450, 496, 509, 527, 538, 581, 582, 619,...
[ 0.003662109375, 0.0029296875, 0.003173828125, 0.003173828125, 0.003173828125, 0.00390625, 0.00341796875, 0.00341796875, 0.000244140625, 0.001708984375, 0.002685546875, 0.004150390625, 0.0029296875, 0.00341796875, 0.0419921875, 0.00341796875, 0.0712890625, 0.003173828125, 0.003417...
caeb969a-f41e-557f-ba86-9431986fd9e5
16,167
0
Title: Good refactoring support for C++ The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support. I have seen Refactor! and am currently trying it out, but maybe one of you guys know a better tool or plugin? ...
177
191
[ "c++" ]
[ "c++", "visual-studio", "refactoring" ]
{"accepted_answer_id":16182,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":"2012-08-07T17:52:10.867000+00:00","creation_date":"2008-08-19T13:39:29.673000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2009-07-31T00:46:51.620000+00:00","last_edit_date":"2008-...
[ 0.0081939697265625, -0.00789642333984375, 0.029083251953125, -0.00353240966796875, 0.033477783203125, 0.003383636474609375, 0.0005192756652832031, 0.03704833984375, 0.0191192626953125, 0.0005936622619628906, -0.0265960693359375, 0.020660400390625, 0.0187530517578125, 0.004810333251953125, ...
[ 4, 6, 7, 10, 16, 18, 25, 38, 47, 70, 83, 87, 99, 100, 111, 136, 163, 214, 272, 297, 313, 456, 678, 707, 853, 959, 1193, 1257, 1284, 1542, 1632, 1926, 2046, 2633, 3714, 4127, 4488, 4904, 5036, 5180, 5636, 5895, 6069, 6183, 6626, ...
[ 0.022216796875, 0.0208740234375, 0.0223388671875, 0.021728515625, 0.0208740234375, 0.0218505859375, 0.0224609375, 0.0888671875, 0.0213623046875, 0.0223388671875, 0.022705078125, 0.0087890625, 0.0211181640625, 0.0595703125, 0.0166015625, 0.02099609375, 0.052734375, 0.1015625, 0.02...
1231fc53-951d-56dd-aaa5-d915cc7b8ad4
17,117
0
Title: C++ std::tr2 for VS2005 Is Boost the only way for VS2005 users experience TR2? Also is there a idiot proof way of downloading only the TR2 related packages? I was looking at the boost installer provided by BoostPro Consulting. If I select the options for all the threading options with all the packages for MSV...
282
294
[ "c++" ]
[ "c++", "boost", "visual-studio-2005", "c++-tr2" ]
{"accepted_answer_id":19609,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T22:35:25.830000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2019-07-01T13:04:59.147000+00:00","last_edit_date":"2019-07-01T13:04:59.147000+00:00",...
[ 0.0160369873046875, -0.017791748046875, 0.01387786865234375, 0.0027217864990234375, -0.0008783340454101562, -0.020843505859375, -0.00836944580078125, 0.03912353515625, -0.00485992431640625, -0.009429931640625, -0.020263671875, 0.004741668701171875, 0.056671142578125, 0.0268096923828125, ...
[ 71, 162, 214, 304, 313, 335, 509, 1019, 1430, 1733, 2886, 3714, 3871, 3917, 4448, 4734, 4989, 5303, 5915, 6138, 7026, 7413, 8359, 8668, 9795, 9969, 10752, 11389, 12233, 12301, 13416, 14107, 15212, 15970, 16265, 16610, 16981, 18499, 18645, ...
[ 0.119140625, 0.0205078125, 0.03076171875, 0.205078125, 0.02880859375, 0.000244140625, 0.007568359375, 0.16796875, 0.056884765625, 0.00830078125, 0.0439453125, 0.0257568359375, 0.123046875, 0.042724609375, 0.212890625, 0.015380859375, 0.010986328125, 0.00732421875, 0.03466796875, ...
b37939da-fdb3-5a52-8ce2-0b26fedd7a0e
17,181
0
Title: Test Cases VS ASSERTION statement In my most C++ project I heavily used ASSERTION statement as following: int doWonderfulThings(const int* fantasticData) { ASSERT(fantasticData); if(!fantasticData) return -1; // ,,, return WOW_VALUE; } But TDD community seems like to enjoy doing some...
224
272
[ "c++" ]
[ "c++", "tdd", "defensive-programming" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T23:19:18.377000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2013-08-27T21:01:59.080000+00:00","last_edit_date":null,"question_id":17181,"score":9,...
[ -0.0030918121337890625, 0.01000213623046875, 0.008758544921875, 0.0149688720703125, 0.038330078125, -0.003875732421875, 0.008697509765625, 0.024261474609375, 0.00905609130859375, 0.0091094970703125, -0.0160980224609375, 0.0312347412109375, 0.022125244140625, 0.01343536376953125, 0.011596...
[ 7, 18, 23, 31, 38, 54, 237, 313, 384, 618, 678, 866, 919, 1456, 1614, 1632, 1639, 1884, 2174, 2389, 2408, 2499, 2684, 3257, 4552, 5115, 5117, 5180, 5941, 6483, 6528, 6897, 7768, 7844, 8647, 10975, 11522, 11814, 12501, 13452, 14255, 14...
[ 0.044921875, 0.13671875, 0.1015625, 0.123046875, 0.056640625, 0.1259765625, 0.00634765625, 0.05224609375, 0.1318359375, 0.0859375, 0.107421875, 0.004638671875, 0.050537109375, 0.0908203125, 0.023681640625, 0.00732421875, 0.07421875, 0.03662109375, 0.10107421875, 0.04931640625, ...
4dd86b95-daf5-59a5-869c-331bc45c6d21
17,228
0
Title: What tools do you use to develop C++ applications on Linux? I develop C++ applications in a Linux environment. The tools I use every day include Eclipse with the CDT plugin, gdb and valgrind. What tools do other people use? Is there anything out there for Linux that rivals the slickness of Microsoft Visual Stu...
71
73
[ "c++" ]
[ "c++", "linux", "eclipse", "gdb", "valgrind" ]
{"accepted_answer_id":null,"answer_count":24,"chunk_count":1,"chunk_index":0,"closed_date":"2012-09-17T10:46:16.110000+00:00","creation_date":"2008-08-19T23:49:40.287000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["c++"],"last_activity_date":"2015-11-22T21:20:51.050000+00:00","last_edit_date":null,...
[ 0.0292510986328125, -0.00939178466796875, -0.0007729530334472656, -0.00885772705078125, 0.038299560546875, -0.005413055419921875, 0.00662994384765625, 0.0233154296875, 0.0224761962890625, -0.0170135498046875, -0.0323486328125, 0.042327880859375, 0.0273590087890625, 0.02996826171875, 0.04...
[ 23, 54, 87, 91, 98, 100, 313, 398, 618, 678, 706, 2685, 3395, 3502, 3789, 4527, 4865, 5155, 7244, 7432, 7915, 11907, 22968, 23937, 26698, 29908, 37223, 43876, 48073, 65998, 66965, 69993, 72977, 73372, 85493, 86685, 129919, 234962 ]
[ 0.032470703125, 0.01708984375, 0.0167236328125, 0.0162353515625, 0.080078125, 0.02099609375, 0.0810546875, 0.0361328125, 0.1298828125, 0.03564453125, 0.03857421875, 0.04736328125, 0.0291748046875, 0.115234375, 0.0283203125, 0.1298828125, 0.033935546875, 0.0908203125, 0.0617675781...
b42d9857-468d-5046-af4f-47916fcb4e0f
17,299
0
Title: How can I sort an array of double pointers based on the values they point to? I am trying to build a function in C/C++ to sort an array and replace each value with its "score" or rank. It takes in a double pointer array to an array of ints, and sorts the double pointers based on the dereferenced value of the in...
300
319
[ "c", "c++" ]
[ "c++", "c", "arrays", "pointers", "reference" ]
{"accepted_answer_id":17312,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T01:44:58.323000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2017-01-23T22:54:01.290000+00:00","last_edit_date":"2017-01-23T22:54:01.290000+00:...
[ 0.0108184814453125, 0.00919342041015625, 0.0085906982421875, 0.0011415481567382812, 0.031982421875, 0.0018625259399414062, 0.00592041015625, -0.01496124267578125, -0.01195526123046875, -0.00799560546875, 0.0164642333984375, 0.0183868408203125, -0.0085906982421875, -0.0106353759765625, -0...
[ 8, 14, 17, 18, 23, 47, 53, 56, 64, 70, 87, 98, 100, 106, 110, 111, 170, 313, 441, 449, 707, 757, 765, 831, 892, 933, 1230, 1314, 1647, 1836, 2292, 4488, 5423, 6275, 7092, 7565, 7614, 8110, 9842, 10298, 10384, 11249, 12096, 12638, ...
[ 0.091796875, 0.0673828125, 0.107421875, 0.06103515625, 0.046875, 0.1474609375, 0.109375, 0.0859375, 0.103515625, 0.0267333984375, 0.0203857421875, 0.0869140625, 0.040771484375, 0.0654296875, 0.01171875, 0.0145263671875, 0.0869140625, 0.080078125, 0.031494140625, 0.019775390625,...
a5ad2f9d-61e8-5d9b-9f62-003b085665fb
17,333
0
Title: How do you compare float and double while accounting for precision loss? What would be the most efficient way to compare two double or two float values? Simply doing this is not correct: bool CompareDoubles1 (double A, double B) { return A == B; } But something like: bool CompareDoubles2 (double A,...
122
134
[ "c++" ]
[ "c++", "algorithm", "optimization", "floating-point" ]
{"accepted_answer_id":null,"answer_count":32,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T02:09:33.647000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2026-02-03T17:51:16.207000+00:00","last_edit_date":"2023-09-18T06:20:59.770000+00:00"...
[ 0.046966552734375, -0.016937255859375, -0.004177093505859375, 0.01407623291015625, 0.04180908203125, -0.01197052001953125, -0.0233612060546875, 0.00560760498046875, -0.00016248226165771484, -0.016357421875, 0.0092315673828125, 0.03131103515625, -0.0030670166015625, 0.002613067626953125, ...
[ 9, 13, 34, 47, 56, 62, 67, 100, 136, 257, 304, 335, 418, 509, 707, 959, 1230, 1830, 1884, 2661, 2684, 2806, 3714, 3917, 4426, 6626, 6872, 8331, 9433, 11249, 13566, 15426, 18775, 20594, 21555, 21917, 22619, 26785, 30646, 37397, 41929, ...
[ 0.0068359375, 0.068359375, 0.1279296875, 0.057373046875, 0.0732421875, 0.032470703125, 0.07470703125, 0.003662109375, 0.037353515625, 0.140625, 0.1005859375, 0.0732421875, 0.02490234375, 0.076171875, 0.0181884765625, 0.058837890625, 0.0400390625, 0.07177734375, 0.0205078125, 0....
a6d2c252-ba88-5999-b0f7-24cb8f6c30c8
17,434
0
Title: When should you use 'friend' in C++? I have been reading through the C++ FAQ and was curious about the friend declaration. I personally have never used it, however I am interested in exploring the language. What is a good example of using friend? Reading the FAQ a bit longer I like the idea of the << >> o...
112
117
[ "c++" ]
[ "c++", "oop", "encapsulation", "friend" ]
{"accepted_answer_id":17443,"answer_count":31,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T05:29:32.793000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2022-12-02T06:49:45.073000+00:00","last_edit_date":"2017-06-15T18:54:27.863000+00:00"...
[ 0.0189666748046875, 0.00495147705078125, 0.005764007568359375, 0.00888824462890625, 0.044189453125, -0.029296875, -0.01236724853515625, 0.0099639892578125, 0.00684356689453125, 0.00591278076171875, -0.0214996337890625, 0.0156097412109375, -0.0074462890625, -0.020294189453125, 0.030136108...
[ 7, 22, 23, 180, 237, 313, 645, 1363, 1884, 4127, 4527, 5608, 6396, 6528, 7432, 8306, 11814, 14847, 15644, 17368, 20880, 21635, 24765, 27781, 28032, 34391, 36356, 37223, 39933, 46876, 48962, 52064, 56473, 60892, 61112, 63033, 72403, 81113, 8...
[ 0.00634765625, 0.031982421875, 0.0625, 0.0595703125, 0.005126953125, 0.1064453125, 0.095703125, 0.0169677734375, 0.0830078125, 0.02880859375, 0.107421875, 0.048828125, 0.08984375, 0.0238037109375, 0.03125, 0.015869140625, 0.05419921875, 0.1025390625, 0.107421875, 0.0888671875, ...
59bc96f4-560e-520e-a55e-e7147edb405c
17,483
0
Title: Is there a way to prevent a method from being overridden in subclasses? Is anyone aware of a language feature or technique in C++ to prevent a child class from over riding a particular method in the parent class? class Base { public: bool someGuaranteedResult() { return true; } }; class Child : public Ba...
139
162
[ "c++" ]
[ "c++", "overriding", "metrowerks" ]
{"accepted_answer_id":17486,"answer_count":14,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T06:50:32.910000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-07-26T18:35:15.660000+00:00","last_edit_date":"2013-06-05T07:50:02.870000+00:00"...
[ 0.01178741455078125, 0.01503753662109375, 0.02923583984375, -0.0024318695068359375, 0.049285888671875, -0.0204010009765625, 0.0006704330444335938, 0.038909912109375, 0.0055694580078125, -0.0179290771484375, -0.0306549072265625, 0.03607177734375, 0.01273345947265625, -0.0300750732421875, ...
[ 7, 10, 23, 47, 70, 90, 132, 214, 297, 313, 350, 351, 555, 592, 645, 724, 903, 959, 1193, 1274, 1295, 1340, 1614, 1631, 1733, 2240, 2733, 3060, 3835, 3917, 4332, 6238, 7136, 7155, 7464, 7797, 8035, 8966, 9969, 17311, 18507, 19040, 20...
[ 0.0947265625, 0.0242919921875, 0.06298828125, 0.0167236328125, 0.00439453125, 0.02587890625, 0.017333984375, 0.0380859375, 0.10546875, 0.07421875, 0.06201171875, 0.1025390625, 0.083984375, 0.0140380859375, 0.1650390625, 0.039794921875, 0.01123046875, 0.020751953125, 0.0810546875,...
d728ebe2-7864-5e3d-9c9e-967583a7e530
17,612
0
Title: How do you place a file in recycle bin instead of delete? Programmatic solution of course...
23
24
[ ".net", "c#", "c++" ]
[ "c#", ".net", "c++", "windows", "io" ]
{"accepted_answer_id":17620,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T08:43:00.393000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","c++"],"last_activity_date":"2013-04-28T03:27:06.143000+00:00","last_edit_date":"2013-04-28T03:27:06.14...
[ 0.036163330078125, -0.0123138427734375, 0.0200958251953125, 0.019866943359375, -0.0030918121337890625, 0.0014791488647460938, -0.01593017578125, 0.0225982666015625, -0.01421356201171875, -0.006542205810546875, -0.035430908203125, 0.0098724365234375, 0.0294952392578125, -0.0239105224609375,...
[ 10, 23, 27, 54, 111, 398, 456, 2394, 3687, 7663, 11249, 11435, 15411, 29806, 47148, 48962, 64457, 75457, 154109 ]
[ 0.003173828125, 0.095703125, 0.005615234375, 0.052490234375, 0.0107421875, 0.03271484375, 0.1689453125, 0.232421875, 0.1728515625, 0.1650390625, 0.087890625, 0.2099609375, 0.0751953125, 0.1513671875, 0.1787109375, 0.048828125, 0.1708984375, 0.2578125, 0.220703125 ]
055c5229-9136-5d4a-82ae-9da355ba5dff
17,670
0
Title: Suitable alternative to CryptEncrypt We have a situation in our product where for a long time some data has been stored in the application's database as SQL string (choice of MS SQL server or sybase SQL anywhere) which was encrypted via the Windows API function CryptEncrypt. (direct and de-cryptable) The prob...
250
287
[ "c++" ]
[ "c++", "encryption", "winapi" ]
{"accepted_answer_id":17683,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T09:37:02.603000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-07-10T19:55:54.427000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00",...
[ 0.006988525390625, -0.0182037353515625, 0.022552490234375, 0.0020542144775390625, 0.0206756591796875, -0.028656005859375, -0.036865234375, 0.0033473968505859375, 0.0212554931640625, -0.02313232421875, -0.0718994140625, 0.016204833984375, 0.0030231475830078125, -0.017852783203125, 0.01995...
[ 4, 7, 8, 9, 10, 14, 16, 18, 19, 22, 23, 33, 47, 70, 71, 83, 99, 111, 136, 142, 186, 214, 237, 297, 316, 442, 450, 456, 538, 618, 678, 831, 954, 1059, 1221, 1295, 1832, 1884, 2053, 2079, 2394, 2681, 2684, 2809, 2886, 2967, 30...
[ 0.0009765625, 0.00146484375, 0.1328125, 0.0009765625, 0.001708984375, 0.060302734375, 0.001220703125, 0.09130859375, 0.0257568359375, 0.0400390625, 0.0263671875, 0.03173828125, 0.07373046875, 0.002197265625, 0.002197265625, 0.000732421875, 0.001953125, 0.00146484375, 0.0264892578...
57b7cbbe-a420-5128-a1e4-f598b453b899
17,786
0
Title: Warning C4341 - 'XX': signed value is out of range for enum constant When compiling my C++ .Net application I get 104 warnings of the type: Warning C4341 - 'XX': signed value is out of range for enum constant Where XX can be WCHAR LONG BIT BINARY GUID ... I can't seem to remove these warning...
187
193
[ ".net", "c++" ]
[ ".net", "c++", "visual-c++" ]
{"accepted_answer_id":17793,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T11:43:49.617000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c++"],"last_activity_date":"2012-04-25T17:33:39.280000+00:00","last_edit_date":"2012-04-25T17:33:39.280000+...
[ 0.01433563232421875, -0.02105712890625, 0.01386260986328125, 0.00856781005859375, 0.02392578125, 0.0006766319274902344, 0.004047393798828125, 0.015228271484375, 0.00904083251953125, -0.0005803108215332031, -0.00856781005859375, 0.038543701171875, 0.005504608154296875, -0.0221405029296875, ...
[ 20, 22, 38, 83, 100, 110, 111, 186, 313, 316, 397, 418, 592, 831, 1295, 1556, 1631, 1810, 1957, 2046, 2365, 2773, 2831, 3034, 4027, 5550, 6097, 6528, 6977, 7941, 9790, 9969, 10588, 10644, 13452, 14214, 18151, 18158, 20653, 20662, 24447,...
[ 0.037353515625, 0.1240234375, 0.00341796875, 0.1162109375, 0.087890625, 0.0087890625, 0.1796875, 0.0751953125, 0.095703125, 0.232421875, 0.111328125, 0.166015625, 0.1279296875, 0.1328125, 0.0201416015625, 0.0186767578125, 0.212890625, 0.2216796875, 0.103515625, 0.0751953125, ...
39942ef1-0948-5c79-9ed2-9f70da801d28
17,928
0
Title: Using an ocx in a console application I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete.
48
49
[ "c++" ]
[ "c++", "visual-c++", "console", "activex" ]
{"accepted_answer_id":21773,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T13:22:56.320000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2010-05-08T19:12:25.553000+00:00","last_edit_date":"2008-08-22T05:24:28.687000+00:00",...
[ 0.008697509765625, -0.00655364990234375, 0.0093536376953125, 0.00598907470703125, 0.0181121826171875, -0.02276611328125, 0.0203857421875, 0.039337158203125, -0.00798797607421875, 0.023956298828125, -0.011505126953125, 0.0287322998046875, 0.037200927734375, -0.003963470458984375, 0.018951...
[ 7, 10, 23, 54, 87, 142, 345, 425, 450, 3034, 3444, 6953, 11249, 28864, 36069, 38415, 44043, 46485, 48962, 57143, 69405, 130250, 223353 ]
[ 0.01318359375, 0.024169921875, 0.1103515625, 0.0155029296875, 0.00390625, 0.0224609375, 0.08984375, 0.251953125, 0.046630859375, 0.23828125, 0.06396484375, 0.041259765625, 0.04296875, 0.07470703125, 0.2275390625, 0.1650390625, 0.1767578125, 0.0155029296875, 0.030517578125, 0.14...
7232d336-cb1f-583b-9191-5100dbf30856
17,944
0
Title: How to round up the result of integer division? I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have x items which I want to display in chunks of y per page, how many pages will be needed?
62
66
[ "c#", "c++", "java" ]
[ "java", "c#", "c++", "math" ]
{"accepted_answer_id":17974,"answer_count":21,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T13:27:40.210000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++","java"],"last_activity_date":"2025-01-11T00:44:23.980000+00:00","last_edit_date":"2022-04-10T04:01:46.3...
[ 0.0155181884765625, -0.0034923553466796875, -0.00800323486328125, -0.03607177734375, 0.0027904510498046875, 0.0029850006103515625, -0.006267547607421875, 0.0018129348754882812, -0.007251739501953125, 0.00408935546875, -0.0081787109375, 0.005939483642578125, 0.00029468536376953125, 0.001037...
[ 23, 47, 70, 111, 113, 117, 313, 892, 1022, 1257, 1363, 1505, 3444, 3642, 4904, 5941, 6226, 7839, 9191, 11249, 12978, 16750, 17368, 37967, 41925, 44116, 44841, 46876, 47644, 48962, 55769, 68807, 91853 ]
[ 0.04638671875, 0.06787109375, 0.041259765625, 0.043212890625, 0.091796875, 0.064453125, 0.0169677734375, 0.1240234375, 0.036376953125, 0.1455078125, 0.033447265625, 0.111328125, 0.0281982421875, 0.030517578125, 0.1083984375, 0.0615234375, 0.197265625, 0.1298828125, 0.1455078125, ...
48738e16-2d1e-5cd8-b39c-eb7d07eb3d7f
18,765
0
Title: Importing C++ enumerations into C# I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app. I don't want to just re declare the enumeration in C# because that coul...
168
185
[ "c#", "c++" ]
[ "c#", "c++" ]
{"accepted_answer_id":18786,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T20:39:36.833000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2024-04-16T03:42:23.720000+00:00","last_edit_date":"2013-12-19T18:38:26.843000+00...
[ 0.01235198974609375, -0.0009508132934570312, 0.00960540771484375, 0.022918701171875, 0.011871337890625, -0.0005817413330078125, 0.00978851318359375, 0.0114593505859375, 0.005130767822265625, -0.0047454833984375, -0.004566192626953125, 0.0017681121826171875, 0.004058837890625, -0.0216064453...
[ 10, 13, 18, 22, 23, 28, 42, 112, 153, 163, 214, 221, 313, 316, 418, 420, 425, 442, 456, 757, 1052, 1363, 1528, 1884, 3871, 3917, 3934, 4027, 4153, 4527, 4657, 4904, 5256, 6002, 7565, 10644, 12501, 13315, 13452, 14105, 14676, 18468, ...
[ 0.003662109375, 0.08251953125, 0.0859375, 0.1318359375, 0.013427734375, 0.138671875, 0.0172119140625, 0.1513671875, 0.012451171875, 0.004150390625, 0.036865234375, 0.1015625, 0.09375, 0.2275390625, 0.09375, 0.08349609375, 0.034423828125, 0.01953125, 0.095703125, 0.072265625, ...
a614a843-be02-5524-ae3b-038efabe42f4
18,869
0
Title: How to install a plugin for QtWebKit I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?
70
78
[ "c++" ]
[ "c++", "linux", "qt", "user-interface", "qtwebkit" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T21:16:24.030000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2015-10-22T16:21:02.127000+00:00","last_edit_date":"2015-10-22T16:21:02.127000+00:00",...
[ -0.007518768310546875, -0.009521484375, 0.017486572265625, -0.0170135498046875, 0.002605438232421875, 0.001026153564453125, -0.01491546630859375, 0.02874755859375, -0.025390625, -0.0219268798828125, 0.0026645660400390625, 0.05126953125, 0.0180816650390625, 0.00988006591796875, 0.01856994...
[ 5, 10, 18, 23, 47, 73, 100, 217, 442, 605, 991, 2396, 3444, 3687, 3871, 4527, 7026, 7440, 11249, 11435, 20600, 29458, 30474, 31667, 31913, 35159, 48962, 51042, 59102, 60061, 60091, 69993, 72697, 76685, 100474, 135518 ]
[ 0.04052734375, 0.0615234375, 0.125, 0.029296875, 0.03662109375, 0.08203125, 0.0166015625, 0.1513671875, 0.0009765625, 0.1171875, 0.205078125, 0.1083984375, 0.068359375, 0.13671875, 0.0279541015625, 0.130859375, 0.126953125, 0.01025390625, 0.0810546875, 0.1552734375, 0.1943359...
b26d1b0e-f28a-5d77-99dd-67cf60c5cb36
18,959
0
Title: How to match linux device path to windows drive name? I'm writing an application that on some stage performs low-level disk operations in Linux environment. The app actually consists of 2 parts, one runs on Windows and interacts with a user and another is a linux part that runs from a LiveCD. User makes a choic...
482
556
[ "c++" ]
[ "c++", "linux", "drives" ]
{"accepted_answer_id":18975,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T22:06:11.120000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2010-02-03T18:13:01.327000+00:00","last_edit_date":"2008-09-11T14:13:59.713000+00:00",...
[ 0.0247802734375, -0.0204010009765625, -0.001689910888671875, -0.0087127685546875, -0.01309967041015625, 0.009429931640625, 0.0162506103515625, -0.00966644287109375, 0.0171966552734375, -0.03155517578125, -0.033203125, 0.009307861328125, 0.0291748046875, -0.01369476318359375, 0.0369873046...
[ 4, 5, 6, 7, 9, 10, 12, 13, 14, 15, 16, 17, 23, 25, 47, 64, 70, 71, 75, 81, 83, 85, 90, 98, 100, 111, 112, 116, 136, 186, 214, 237, 238, 247, 248, 294, 297, 313, 345, 390, 442, 450, 454, 479, 572, 621, 678, 707, 756, 90...
[ 0.00732421875, 0.007568359375, 0.007080078125, 0.007080078125, 0.007080078125, 0.007080078125, 0.09765625, 0.00732421875, 0.006591796875, 0.007080078125, 0.007568359375, 0.005615234375, 0.1083984375, 0.006103515625, 0.115234375, 0.0194091796875, 0.007568359375, 0.00732421875, 0.0...
35a602e6-2709-55a2-90de-0b470f1c7fa9
19,193
0
Title: How to make a tree in C++? How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this: #include <iostream> #include <tree> using namespace std; int mai...
335
393
[ "c++" ]
[ "c++", "tree", "iterator" ]
{"accepted_answer_id":19255,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T01:28:06.470000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2011-08-10T15:37:27.377000+00:00","last_edit_date":"2011-08-10T15:37:27.377000+00:00",...
[ 0.0263519287109375, -0.00679779052734375, 0.01311492919921875, -0.00673675537109375, 0.026824951171875, -0.024444580078125, -0.034088134765625, -0.004680633544921875, 0.021575927734375, 0.0058441162109375, -0.01383209228515625, 0.04052734375, 0.019073486328125, -0.0096588134765625, 0.030...
[ 5, 10, 14, 17, 23, 47, 54, 62, 83, 90, 100, 136, 159, 170, 214, 237, 313, 450, 453, 517, 552, 757, 759, 831, 846, 903, 1003, 1314, 1360, 1647, 1884, 2053, 3004, 3249, 3871, 4028, 4127, 4288, 4527, 4597, 4828, 4842, 5201, 6138, 6...
[ 0.06005859375, 0.10205078125, 0.0654296875, 0.08642578125, 0.095703125, 0.044189453125, 0.0029296875, 0.042236328125, 0.021728515625, 0.140625, 0.00634765625, 0.054931640625, 0.031005859375, 0.05419921875, 0.041259765625, 0.03076171875, 0.111328125, 0.007080078125, 0.05859375, ...
e9939630-b349-5307-8d70-978e4e6687bc
19,347
0
Title: What is the best way to go from Java/C# to C++? At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to a...
139
153
[ "c#", "c++", "java" ]
[ "c#", "java", "c++", "visual-studio" ]
{"accepted_answer_id":19372,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":"2013-01-04T00:56:30.713000+00:00","creation_date":"2008-08-21T04:46:02.313000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#","c++","java"],"last_activity_date":"2013-11-18T05:13:03.563000+00:00","last_edit...
[ -0.00305938720703125, 0.0017747879028320312, 0.01959228515625, 0.0016298294067382812, 0.0394287109375, -0.004650115966796875, -0.0054473876953125, 0.0247344970703125, 0.01340484619140625, 0.01432037353515625, -0.0263214111328125, 0.01407623291015625, 0.0050506591796875, 0.00425338745117187...
[ 23, 38, 47, 64, 70, 83, 313, 360, 441, 527, 738, 1295, 1314, 1810, 1829, 2684, 2806, 2809, 2955, 2965, 3249, 3642, 3917, 4127, 4527, 4552, 4865, 4904, 5608, 6275, 6671, 6957, 9836, 12601, 13527, 16070, 16487, 17203, 17997, 18507, 22362,...
[ 0.059326171875, 0.0029296875, 0.1484375, 0.1044921875, 0.04541015625, 0.012939453125, 0.1494140625, 0.003173828125, 0.1171875, 0.0255126953125, 0.1142578125, 0.1435546875, 0.0908203125, 0.028076171875, 0.026123046875, 0.043701171875, 0.008056640625, 0.004150390625, 0.1259765625, ...
6289cc37-4dd0-5ce7-85e7-bf13c84b2714
20,731
0
Title: How do you clear a stringstream variable? I've tried several things already, std::stringstream m; m.empty(); m.clear(); both of which don't work.
39
48
[ "c++" ]
[ "c++", "stringstream" ]
{"accepted_answer_id":20792,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T18:35:57.997000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2024-10-26T23:05:36.910000+00:00","last_edit_date":"2015-09-03T20:29:33.913000+00:00"...
[ 0.017425537109375, 0.00827789306640625, 0.01511383056640625, 0.03387451171875, -0.00115203857421875, -0.046905517578125, -0.01354217529296875, -0.0132904052734375, 0.0025386810302734375, -0.006801605224609375, -0.007965087890625, 0.0074615478515625, 0.003887176513671875, -0.025588989257812...
[ 18, 71, 132, 347, 939, 4488, 6138, 8966, 11249, 21771, 33548, 34735, 37842, 40368, 77336, 79315, 86429, 91693, 119488 ]
[ 0.0255126953125, 0.12109375, 0.015869140625, 0.10498046875, 0.1044921875, 0.0869140625, 0.15234375, 0.0223388671875, 0.042724609375, 0.032470703125, 0.08349609375, 0.271484375, 0.0576171875, 0.0078125, 0.27734375, 0.2265625, 0.291015625, 0.1943359375, 0.208984375 ]
24109427-8cca-5eec-a2c3-63775a59f31d
20,787
0
Title: When to use STL bitsets instead of separate variables? In what situation would it be more appropriate for me to use a bitset (STL container) to manage a set of flags rather than having them declared as a number of separate (bool) variables? Will I get a significant performance gain if I used a bitset for 50 f...
85
89
[ "c++" ]
[ "c++", "performance", "bitsets" ]
{"accepted_answer_id":20813,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T18:57:59.830000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2009-12-10T20:00:53.750000+00:00","last_edit_date":"2009-12-10T19:59:27.247000+00:00",...
[ 0.0257568359375, -0.0023975372314453125, 0.0007534027099609375, 0.0101165771484375, 0.018707275390625, -0.01146697998046875, -0.031982421875, 0.005413055419921875, 0.004058837890625, 0.0028820037841796875, -0.035064697265625, 0.041656494140625, 0.0124664306640625, -0.016815185546875, 0.0...
[ 7, 100, 159, 163, 836, 866, 1286, 3509, 4527, 4785, 5423, 8545, 11814, 14847, 16648, 17368, 20255, 21647, 23718, 41445, 43257, 48962, 49938, 64457, 77336, 84797, 88551, 95307, 111240, 116419, 142484, 159978 ]
[ 0.032470703125, 0.02978515625, 0.06689453125, 0.026123046875, 0.1484375, 0.212890625, 0.05078125, 0.212890625, 0.1015625, 0.177734375, 0.068359375, 0.09228515625, 0.06298828125, 0.068359375, 0.052734375, 0.040283203125, 0.00146484375, 0.08203125, 0.12109375, 0.2333984375, 0.0...
ecda3c04-8acd-53ed-bfaa-3179595c3ffa
21,303
0
Title: In C++ can constructor and destructor be inline functions? VC++ makes functions which are implemented within the class declaration inline functions. If I declare a class Foo as follows, then are the CONSTRUCTOR and DESTRUCTOR inline functions? class Foo { int* p; public: Foo() { p = new char[0x0010...
104
118
[ "c++" ]
[ "c++", "constructor", "destructor" ]
{"accepted_answer_id":21322,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T22:02:58.310000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2022-11-21T03:51:19.073000+00:00","last_edit_date":"2008-08-21T22:13:28.580000+00:00",...
[ 0.031951904296875, 0.019805908203125, 0.0194549560546875, 0.005641937255859375, 0.052825927734375, 0.0010204315185546875, -0.0284576416015625, 0.03961181640625, -0.0046539306640625, 0, -0.0157318115234375, 0.01506805419921875, -0.0108642578125, -0.00696563720703125, 0.0027618408203125, ...
[ 7, 18, 23, 31, 74, 132, 136, 186, 237, 313, 360, 420, 425, 621, 748, 831, 915, 1238, 1363, 1514, 1639, 2256, 2389, 3525, 3835, 9572, 14452, 18507, 18770, 21441, 21635, 27010, 27591, 28032, 28960, 29479, 30482, 32354, 34479, 37223, 47894...
[ 0.087890625, 0.044921875, 0.1630859375, 0.2236328125, 0.044921875, 0.091796875, 0.146484375, 0.0947265625, 0.00244140625, 0.1171875, 0.08349609375, 0.09912109375, 0.003662109375, 0.0537109375, 0.1689453125, 0.09228515625, 0.111328125, 0.130859375, 0.034912109375, 0.1513671875, ...
fef82dc3-6e40-5e5b-a145-a76eec133e93
21,558
0
Title: In C++, what is a virtual base class? I want to know what a "virtual base class" is and what it means. Let me show an example: class Foo { public: void DoSomething() { /* ... */ } }; class Bar : public virtual Foo { public: void DoSpecific() { /* ... */ } };
77
89
[ "c++" ]
[ "c++", "virtual-inheritance" ]
{"accepted_answer_id":21607,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T01:13:15.357000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2023-06-15T11:07:59.247000+00:00","last_edit_date":"2014-03-01T13:37:57.833000+00:00"...
[ 0.0133056640625, 0.00882720947265625, 0.006114959716796875, -0.01873779296875, 0.0322265625, 0.002445220947265625, 0.01139068603515625, 0.027557373046875, 0.017425537109375, 0.00560760498046875, -0.0206451416015625, 0.03125, -0.0072174072265625, -0.0124053955078125, 0.019683837890625, ...
[ 10, 31, 83, 132, 282, 289, 313, 360, 442, 984, 2292, 2367, 3253, 3444, 3647, 3714, 3835, 7639, 8912, 9572, 14486, 18507, 20513, 26950, 27781, 37223, 47107, 48962, 64113, 178323 ]
[ 0.0810546875, 0.15234375, 0.09228515625, 0.01220703125, 0.005126953125, 0.16015625, 0.09375, 0.07470703125, 0.0146484375, 0.08740234375, 0.1142578125, 0.07568359375, 0.181640625, 0.02490234375, 0.2890625, 0.0235595703125, 0.0751953125, 0.039306640625, 0.00537109375, 0.189453125...
2c5c2b22-06d2-56cf-aded-296aedaf6dd2
21,593
0
Title: What is the difference between #include <filename> and #include "filename"? What is the difference between using angle brackets and quotes in an include directive? #include <filename> #include "filename"
45
53
[ "c", "c++" ]
[ "c++", "c", "include", "header-files", "c-preprocessor" ]
{"accepted_answer_id":null,"answer_count":30,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T01:40:06.993000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2022-08-11T13:53:34.713000+00:00","last_edit_date":"2022-07-04T21:45:52.627000+00...
[ -0.006397247314453125, -0.032318115234375, -0.00637054443359375, -0.010498046875, 0.013214111328125, 0.0017328262329101562, -0.01214599609375, 0.02960205078125, -0.01026153564453125, 0.0057220458984375, -0.0269012451171875, 0.039398193359375, 0.0172271728515625, 0.007549285888671875, 0.0...
[ 70, 136, 468, 1620, 5844, 8951, 11627, 17368, 17721, 26698, 27853, 29822, 48962, 55291, 60212, 66747, 217028 ]
[ 0.037353515625, 0.0228271484375, 0.042236328125, 0.07421875, 0.1357421875, 0.134765625, 0.16796875, 0.052734375, 0.06201171875, 0.1875, 0.1513671875, 0.10546875, 0.0068359375, 0.1689453125, 0.1796875, 0.203125, 0.263671875 ]
9f501dee-d646-5045-916f-4536e5614f23
21,647
0
Title: Reading from text file until EOF repeats last line The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this? Code: #include <iostream> #include <fstream> using names...
201
210
[ "c++" ]
[ "c++", "iostream", "fstream" ]
{"accepted_answer_id":21656,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":"2018-05-13T12:49:27.157000+00:00","creation_date":"2008-08-22T02:21:07.440000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2016-09-07T10:54:42.500000+00:00","last_edit_date":"2011-...
[ 0.004535675048828125, -0.0162506103515625, 0.007648468017578125, -0.0097198486328125, 0.0181427001953125, -0.01837158203125, 0.0029354095458984375, 0.01043701171875, 0.00283050537109375, -0.00646209716796875, 0.002696990966796875, 0.00894927978515625, 0.021820068359375, -0.0367431640625, ...
[ 5, 7, 13, 14, 17, 18, 22, 23, 38, 42, 70, 71, 73, 98, 117, 209, 241, 313, 387, 420, 496, 757, 846, 892, 1022, 1295, 1505, 1556, 1632, 2174, 3773, 4390, 4527, 4568, 5201, 5962, 6138, 6396, 6609, 6641, 7077, 7986, 9494, 10060, 112...
[ 0.053955078125, 0.04443359375, 0.07666015625, 0.046142578125, 0.059326171875, 0.0576171875, 0.015380859375, 0.03271484375, 0.015380859375, 0.08251953125, 0.00146484375, 0.08056640625, 0.037841796875, 0.050048828125, 0.09765625, 0.08837890625, 0.126953125, 0.04638671875, 0.0878906...
c18a95aa-9fc5-550b-b5eb-9aa7565b045f
22,239
0
Title: Why does int main() {} compile? (I'm using Visual C++ 2008) I've always heard that main() is required to return an integer, but here I didn't put in return 0; and and it compiled with 0 errors and 0 warnings! In the debug window it says the program has exited with code 0. If this function is named anything othe...
168
190
[ "c++" ]
[ "c++", "return-value", "program-entry-point" ]
{"accepted_answer_id":22262,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":"2023-09-26T11:52:12.273000+00:00","creation_date":"2008-08-22T12:49:37.213000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2023-09-26T11:53:01.773000+00:00","last_edit_date":"2009-...
[ 0.01160430908203125, -0.014434814453125, -0.0009388923645019531, -0.003032684326171875, 0.04595947265625, -0.0308685302734375, -0.0055389404296875, 0.041473388671875, -0.0169677734375, -0.004360198974609375, -0.0197906494140625, 0.017547607421875, 0.02874755859375, 0.01519775390625, 0.00...
[ 8, 16, 18, 19, 23, 38, 39, 71, 83, 87, 132, 142, 275, 297, 313, 375, 552, 678, 757, 846, 892, 959, 1003, 1284, 1340, 1505, 1528, 1566, 1631, 1810, 5201, 5885, 5974, 6138, 6713, 6977, 8110, 8152, 9969, 11343, 14602, 17368, 18151, 1...
[ 0.035400390625, 0.03759765625, 0.1474609375, 0.0235595703125, 0.119140625, 0.0556640625, 0.1494140625, 0.083984375, 0.0126953125, 0.07421875, 0.193359375, 0.00341796875, 0.041259765625, 0.026611328125, 0.0162353515625, 0.10009765625, 0.054443359375, 0.037841796875, 0.154296875, ...
1ab75fd5-0b9e-5036-9fe0-2364308bee74
22,379
0
Title: Implementing a log watcher I'm wondering how you can implement a program similar to tail -f in C/C++, a program that watches for and processes new lines added to a log file?
43
49
[ "c", "c++" ]
[ "c++", "c", "file", "io" ]
{"accepted_answer_id":22399,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T13:40:32.597000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2016-03-31T14:05:58.113000+00:00","last_edit_date":"2016-03-31T14:05:58.113000+00:...
[ 0.01708984375, -0.0169830322265625, -0.01371002197265625, -0.004749298095703125, 0.02398681640625, -0.02838134765625, -0.004184722900390625, 0.0159149169921875, 0.0200653076171875, 0.004688262939453125, -0.01519775390625, 0.0113372802734375, 0.068359375, -0.046539306640625, 0.00590515136...
[ 10, 20, 23, 47, 56, 64, 90, 100, 136, 214, 313, 420, 441, 450, 831, 1528, 3525, 3642, 9433, 11435, 12684, 21373, 29479, 37223, 39544, 46741, 48962, 49814, 124519, 149016, 153941 ]
[ 0.036376953125, 0.07275390625, 0.04150390625, 0.0179443359375, 0.18359375, 0.0810546875, 0.0556640625, 0.1142578125, 0.034912109375, 0.035400390625, 0.09375, 0.201171875, 0.0308837890625, 0.0009765625, 0.03955078125, 0.1708984375, 0.1123046875, 0.0242919921875, 0.119140625, 0.1...
6bdc7b65-1dc3-5d66-a8d3-bd9d5e391854
22,459
0
Title: memset() causing data abort I'm getting some strange, intermittent, data aborts (< 5% of the time) in some of my code, when calling memset(). The problem is that is usually doesn't happen unless the code is running for a couple days, so it's hard to catch it in the act. I'm using the following code: char *m...
283
324
[ "c", "c++" ]
[ "c++", "c", "memory", "windows-mobile" ]
{"accepted_answer_id":22473,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T14:17:01.747000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2017-08-03T16:07:16.533000+00:00","last_edit_date":"2017-08-03T16:07:16.533000+00...
[ 0.039276123046875, -0.0071563720703125, -0.0189208984375, -0.004673004150390625, 0.033111572265625, -0.0269622802734375, -0.0099945068359375, 0.007686614990234375, 0.029205322265625, 0.0005693435668945312, -0.00875091552734375, 0.0133056640625, -0.0018701553344726562, -0.03948974609375, ...
[ 7, 18, 87, 100, 132, 144, 177, 387, 420, 661, 757, 903, 960, 963, 1549, 1733, 1940, 1957, 1977, 2053, 2389, 2749, 2967, 3060, 3509, 4028, 4109, 4432, 4448, 4460, 4527, 6492, 7146, 7199, 7311, 7704, 7941, 9088, 9254, 9297, 11809, 13267...
[ 0.080078125, 0.047119140625, 0.007568359375, 0.003173828125, 0.16015625, 0.07470703125, 0.1123046875, 0.00439453125, 0.06787109375, 0.00439453125, 0.0810546875, 0.001220703125, 0.099609375, 0.00439453125, 0.016357421875, 0.0703125, 0.043212890625, 0.03857421875, 0.0888671875, 0...
f765552c-b861-5e7b-8c96-9ef8242b32a5
22,901
0
Title: What is the best way to communicate with a MySQL server? I am going to be using C/C++, and would like to know the best way to talk to a MySQL server. Should I use the library that comes with the server installation? Are they any good libraries I should consider other than the official one?
66
72
[ "c", "c++", "sql" ]
[ "c++", "sql", "mysql", "c", "database" ]
{"accepted_answer_id":23145,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":"2025-07-28T05:55:29.310000+00:00","creation_date":"2008-08-22T17:09:04.920000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c","c++","sql"],"last_activity_date":"2012-10-18T21:25:57.030000+00:00","last_edit_da...
[ 0.0021209716796875, -0.021240234375, -0.0079498291015625, -0.02325439453125, 0.01352691650390625, -0.03558349609375, -0.007030487060546875, 0.0088958740234375, 0.0141143798828125, 0.005870819091796875, -0.03582763671875, 0.0151824951171875, 0.034881591796875, -0.005664825439453125, 0.018...
[ 10, 47, 64, 67, 70, 83, 313, 441, 678, 1294, 1884, 2965, 3714, 3917, 4127, 4527, 4865, 10484, 10723, 16916, 17368, 22120, 32497, 35773, 37223, 51521, 59720, 127219, 157146 ]
[ 0.040283203125, 0.1533203125, 0.078125, 0.0869140625, 0.041015625, 0.0029296875, 0.08154296875, 0.03173828125, 0.1396484375, 0.0927734375, 0.0157470703125, 0.1298828125, 0.0164794921875, 0.06884765625, 0.0223388671875, 0.06298828125, 0.010986328125, 0.072265625, 0.166015625, 0....
998f3966-4c51-51ee-81f4-635306207274
23,190
0
Title: How Does One Sum Dimensions of an Array Specified at Run-Time? I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following example.....
681
720
[ "c", "c++" ]
[ "c++", "c", "arrays", "microsoft-dynamics" ]
{"accepted_answer_id":25002,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T18:56:04.850000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","c++"],"last_activity_date":"2013-07-23T14:41:49.443000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00...
[ 0.026641845703125, 0.01385498046875, 0.00031256675720214844, 0.01195526123046875, 0.036224365234375, -0.0171661376953125, -0.0222625732421875, -0.0229644775390625, 0.0352783203125, -0.01160430908203125, -0.02178955078125, -0.0025157928466796875, -0.0098876953125, -0.03314208984375, 0.003...
[ 4, 5, 6, 7, 10, 11, 12, 13, 15, 16, 18, 19, 23, 25, 47, 53, 54, 56, 58, 64, 70, 83, 87, 98, 99, 100, 101, 106, 111, 116, 136, 138, 142, 184, 186, 194, 201, 214, 221, 237, 297, 305, 372, 382, 387, 442, 444, 454, 501, 50...
[ 0.0162353515625, 0.001953125, 0.0159912109375, 0.109375, 0.0162353515625, 0.0155029296875, 0.011474609375, 0.015869140625, 0.014892578125, 0.0164794921875, 0.032958984375, 0.047119140625, 0.015869140625, 0.0159912109375, 0.0240478515625, 0.1337890625, 0.011962890625, 0.01611328125,...
0eaed0d8-2840-599f-8fd1-5d99173ecb47
23,197
0
Title: Find out which process has an exclusive lock on a USB device handle I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver. Some other application installed on the system is ...
470
462
[ "c++" ]
[ "c++", "winapi", "usb", "hid", "device" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T18:58:28.573000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++"],"last_activity_date":"2009-04-09T18:48:39.570000+00:00","last_edit_date":"2008-08-22T19:14:40.063000+00:00",...
[ 0.012451171875, -0.028106689453125, -0.0078277587890625, 0.01369476318359375, -0.0285797119140625, 0.007205963134765625, 0.0056915283203125, -0.0250244140625, 0.00337982177734375, -0.021820068359375, -0.040313720703125, -0.006671905517578125, 0.015655517578125, -0.0160064697265625, 0.006...
[ 7, 47, 64, 98, 110, 111, 112, 132, 142, 186, 266, 277, 434, 442, 456, 678, 757, 831, 959, 1197, 1294, 1295, 1543, 1556, 1810, 1884, 2446, 3129, 3173, 3789, 4843, 5426, 5429, 5518, 6746, 7244, 7328, 9433, 9803, 9956, 10273, 10974, 10...
[ 0.0986328125, 0.015869140625, 0.059814453125, 0.0220947265625, 0.04833984375, 0.025634765625, 0.05859375, 0.087890625, 0.0177001953125, 0.05908203125, 0.07275390625, 0.01171875, 0.036865234375, 0.057373046875, 0.000732421875, 0.0771484375, 0.050048828125, 0.0172119140625, 0.06591...
79f94cb8-cc95-510b-88e4-2fb010d219f9
23,209
0
Title: C++ linker unresolved external symbols I'm building an application against some legacy, third party libraries, and having problems with the linking stage. I'm trying to compile with Visual Studio 9. My compile command is: cl -DNT40 -DPOMDLL -DCRTAPI1=_cdecl -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEAN_AND_ME...
725
922
[ "c++" ]
[ "c++" ]
{"accepted_answer_id":26180,"answer_count":4,"chunk_count":2,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T19:03:52.507000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-11-07T17:02:02.300000+00:00","last_edit_date":"2017-11-07T17:02:02.300000+00:00",...
[ 0.032257080078125, -0.009613037109375, 0.0167236328125, 0.00717926025390625, 0.02099609375, -0.008544921875, -0.004924774169921875, 0.038909912109375, -0.0012235641479492188, -0.002475738525390625, -0.004329681396484375, 0.0162506103515625, 0.020172119140625, 0.006404876708984375, 0.0063...
[ 4, 5, 6, 7, 9, 12, 13, 15, 16, 18, 20, 23, 25, 32, 44, 51, 53, 56, 58, 71, 86, 87, 93, 107, 111, 112, 126, 132, 138, 152, 157, 158, 170, 214, 238, 254, 268, 271, 297, 304, 309, 313, 330, 339, 397, 418, 425, 441, 450, 4...
[ 0.0087890625, 0.0087890625, 0.00830078125, 0.0390625, 0.00830078125, 0.009033203125, 0.00830078125, 0.008544921875, 0.0087890625, 0.00830078125, 0.008544921875, 0.008544921875, 0.0078125, 0.00830078125, 0.008056640625, 0.130859375, 0.007568359375, 0.197265625, 0.008544921875, 0...
a28a1090-1f56-5936-8e42-cac203617e62
23,209
1
Title: C++ linker unresolved external symbols Notice that these errors are coming from the legacy code, not my code - app_main.obj is part of the legacy code, while mymain.c is my source. I've done some searching around, and what that I've read says that this type of error is caused by a mismatch with the -MD switch...
150
178
[ "c++" ]
[ "c++" ]
{"accepted_answer_id":26180,"answer_count":4,"chunk_count":2,"chunk_index":1,"closed_date":null,"creation_date":"2008-08-22T19:03:52.507000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2017-11-07T17:02:02.300000+00:00","last_edit_date":"2017-11-07T17:02:02.300000+00:00",...
[ 0.029266357421875, -0.0182037353515625, 0.0214080810546875, -0.007404327392578125, 0.0170135498046875, 0.0227203369140625, 0.01165771484375, 0.038055419921875, -0.008209228515625, -0.005680084228515625, -0.005443572998046875, 0.01474761962890625, 0.01493072509765625, 0.01439666748046875, ...
[ 7, 20, 47, 51, 56, 71, 107, 170, 214, 238, 313, 759, 959, 1239, 1295, 1733, 2408, 2831, 3126, 3257, 3522, 4027, 4488, 4989, 6097, 10644, 12960, 17721, 18151, 18499, 22968, 24494, 24931, 25647, 26582, 29806, 31344, 35773, 37223, 38162, 4...
[ 0.00244140625, 0.0791015625, 0.038818359375, 0.078125, 0.1728515625, 0.003173828125, 0.103515625, 0.22265625, 0.123046875, 0.1025390625, 0.056640625, 0.140625, 0.061767578125, 0.1005859375, 0.011474609375, 0.0126953125, 0.109375, 0.0732421875, 0.205078125, 0.16796875, 0.17968...
e21c260f-2a72-5274-a2b7-13501a1dcb5a
23,370
0
Title: Notification of drop in drag-drop in Windows My C# program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first. So, can I be notified of the drop operation so that I can only copy the file if operation suc...
142
156
[ "c#", "c++" ]
[ "c#", "c++", "windows", "winapi", "com" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T20:16:42.363000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2017-01-13T09:59:27.227000+00:00","last_edit_date":"2017-01-13T09:59:27.227000+00...
[ 0.0233917236328125, -0.0213623046875, 0.0251617431640625, 0.027069091796875, 0.0112152099609375, -0.00872802734375, 0.004154205322265625, 0.037994384765625, -0.0102691650390625, 0.006855010986328125, -0.0015134811401367188, -0.0005712509155273438, 0.0276641845703125, -0.0303955078125, 0....
[ 9, 23, 47, 64, 70, 83, 111, 136, 313, 570, 678, 831, 959, 1295, 1528, 1884, 2174, 2367, 2499, 2750, 2852, 3714, 3773, 3934, 4734, 4904, 5117, 5303, 6863, 7722, 8035, 11205, 11435, 12921, 14364, 15700, 17704, 17777, 20051, 24911, 27117, ...
[ 0.06884765625, 0.181640625, 0.05322265625, 0.02978515625, 0.0537109375, 0.02880859375, 0.056640625, 0.003662109375, 0.017822265625, 0.00830078125, 0.04150390625, 0.0712890625, 0.1572265625, 0.0732421875, 0.1552734375, 0.0147705078125, 0.0400390625, 0.0181884765625, 0.021606445312...
6a8c217d-11eb-5207-8f8c-c424df608268
23,918
0
Title: OpenGL Rotation I'm trying to do a simple rotation in OpenGL but must be missing the point. I'm not looking for a specific fix so much as a quick explanation or link that explains OpenGL rotation more generally. At the moment I have code like this: glPushMatrix(); glRotatef(90.0, 0.0, 1.0, 0.0); glBegin...
230
219
[ "c++" ]
[ "c++", "opengl", "glut" ]
{"accepted_answer_id":23926,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-23T03:23:44.350000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2015-07-14T07:48:32.637000+00:00","last_edit_date":"2015-07-14T07:48:32.637000+00:00",...
[ 0, 0.007659912109375, 0.0122528076171875, -0.0079498291015625, 0.016845703125, -0.00400543212890625, -0.0036525726318359375, 0.0283966064453125, 0.0004105567932128906, 0.01348876953125, 0.010894775390625, 0.048309326171875, -0.00316619873046875, -0.014434814453125, 0.0188446044921875, ...
[ 11, 23, 54, 83, 87, 363, 420, 567, 683, 903, 959, 1126, 1284, 1704, 1865, 1884, 1927, 2062, 2510, 2777, 3095, 3126, 3142, 3525, 3674, 4527, 4613, 4966, 5792, 6275, 6392, 6528, 6766, 6820, 8110, 8781, 12724, 13527, 14082, 15896, 16655, ...
[ 0.011962890625, 0.041748046875, 0.00927734375, 0.033447265625, 0.001220703125, 0.060302734375, 0.1435546875, 0.12109375, 0.005615234375, 0.000732421875, 0.119140625, 0.1123046875, 0.030029296875, 0.146484375, 0.0830078125, 0.0208740234375, 0.150390625, 0.1513671875, 0.203125, 0...
eaeab3ae-2ac6-5d66-b0b8-b8822be57943
24,109
0
Title: C++ IDE for Linux? I want to expand my programming horizons to Linux. A good, dependable basic toolset is important, and what is more basic than an IDE? I could find these SO topics: Lightweight IDE for linux and What tools do you use to develop C++ applications on Linux? I'm not looking for a lightwe...
289
310
[ "c++" ]
[ "c++", "linux", "ide" ]
{"accepted_answer_id":24119,"answer_count":45,"chunk_count":1,"chunk_index":0,"closed_date":"2015-12-23T07:21:21.883000+00:00","creation_date":"2008-08-23T09:52:59.517000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c++"],"last_activity_date":"2016-11-02T14:49:19.650000+00:00","last_edit_date":"2017...
[ 0.029541015625, -0.00732421875, 0.0237274169921875, -0.01013946533203125, 0.040802001953125, -0.009552001953125, 0.00756072998046875, 0.033447265625, 0.0211181640625, -0.032501220703125, -0.03155517578125, 0.0300140380859375, 0.032501220703125, 0.036529541015625, 0.02276611328125, -0.0...
[ 4, 5, 7, 8, 13, 15, 16, 32, 47, 70, 83, 98, 100, 126, 142, 184, 186, 214, 221, 297, 313, 390, 429, 442, 449, 450, 552, 621, 707, 712, 892, 978, 1286, 1295, 1556, 1830, 1884, 2187, 2367, 2499, 2685, 2886, 3444, 3501, 3535, 3827...
[ 0.002685546875, 0.00244140625, 0.001953125, 0.087890625, 0.001708984375, 0.002197265625, 0.001708984375, 0.003662109375, 0.0673828125, 0.00244140625, 0.0169677734375, 0.043212890625, 0.1533203125, 0.1025390625, 0.035400390625, 0.001953125, 0.001953125, 0.002197265625, 0.007080078...
cfcd3d56-324f-5134-989b-9a2d319461e1
24,196
0
Title: Simple Frameworks for Displaying Bitmaps and Handling Button Presses We have a set of applications that basically display a bunch of bitmaps and text, then allow user to press "buttons" (certain bitmaps) that cause actions to occur. We currently have these implemented using DirectX and a bunch of code to plac...
252
275
[ "c++" ]
[ "c++", "user-interface", "graphics", "bitmap" ]
{"accepted_answer_id":24223,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-23T12:47:55.587000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++"],"last_activity_date":"2014-03-11T18:42:03.997000+00:00","last_edit_date":"2014-03-11T18:42:03.997000+00:00",...
[ 0.0227813720703125, 0.022308349609375, -0.0005354881286621094, 0.007427215576171875, 0.0091552734375, -0.043670654296875, -0.0022602081298828125, 0.0312347412109375, 0.023834228515625, -0.004665374755859375, -0.0274658203125, 0.04461669921875, 0.022186279296875, -0.006397247314453125, 0....
[ 7, 18, 21, 47, 53, 71, 136, 214, 313, 587, 642, 645, 765, 959, 1202, 1286, 1401, 1542, 1556, 1810, 1884, 2806, 3444, 3501, 3687, 3789, 3871, 4092, 4527, 4785, 4966, 5259, 5423, 5773, 5809, 5915, 6712, 6713, 7068, 7816, 7941, 7986, 8...
[ 0.041748046875, 0.01318359375, 0.078125, 0.1142578125, 0.0654296875, 0.043701171875, 0.04833984375, 0.014404296875, 0.0400390625, 0.0673828125, 0.00341796875, 0.0966796875, 0.02490234375, 0.032958984375, 0.1416015625, 0.107421875, 0.0220947265625, 0.1083984375, 0.001708984375, ...