Welcome To Snipplr


Everyone's Recent C++ Snippets



Kod za datoteku zaglavlja "lista_polje.h".
0 1250 posted 15 years ago by dotonkovi
Kod datoteke zaglavlja "lista_pokazivaci.h".
0 1544 posted 15 years ago by dotonkovi
Kod za glavni program.
0 1341 posted 15 years ago by dotonkovi
1 1442 posted 15 years ago by browny
<p>This function returns a random number within a range.</p><p>For example:</p><p>// assigns low and high values for range</p><p><code>int rangeLow = 34, rangeHigh = 78;</code></p><p>// computes a random number between 34 and 78</p><p><code>myRandomN...
0 1488 posted 15 years ago by dblandin
0 1067 posted 15 years ago by yoyoparis
0 1618 posted 15 years ago by oznek
0 1222 posted 15 years ago by vorp
0 1150 posted 15 years ago by mkluwe
Un objeto QMenu tiene siempre un objeto QAction, aunque no lo hayas creado tú. Por esta razón si queremos ocultar un QMenu vacío no nos sirve llamar al método setHidden (o a setVisible) como normalmente harías.
0 1168 posted 16 years ago by Bloomy
Well Here... Newbs Only!
0 1219 posted 16 years ago by k9flow
0 1869 posted 16 years ago by somada141
Get error description from Lotus Notes C API
0 1623 posted 16 years ago by AlexLocust
获取MAC地址
0 1491 posted 16 years ago by richardw
This code is a demonstration of how to do fast scientific computation in mex functions using the armadillo library. See my blog post for details and leave comments there.
0 1805 posted 16 years ago by benjamin
0 1245 posted 16 years ago by vas3k
This approach allows an application to be embedded in a DLL. This is handy for diagnostic/maintenance utilities that are used with the DLL. Steps to create: * Create a MFC DLL project * Add a dialog * Add an entry point function such as void CA...
0 3363 posted 16 years ago by jimfred
I occasionally need a WinExec function the synchronously executes a command. cwdArg may be null. This example, upon error, pops-up a dialog and exits the app. This is useful for small installation utilities. non-dot.net, with or without MFC.
0 1494 posted 17 years ago by jimfred
Determine directory where the .exe is running from. Usually it's CWD - but not always, such as MsiExec Custom Actions. Windows. non-dot.net, with or without MFC.
0 1657 posted 17 years ago by jimfred
Simple non-dot.net function to determine if a file exists. Uses the WinBase API. Can be used with or without mfc. Windows, non-dot.net, with or without MFC.
0 3380 posted 17 years ago by jimfred
This OnSize function resizes one large control in a dialog. The one control grows horizontally and vertically to fill the dialog. It's position remains unchanged. Other controls (buttons etc) would typically be above the one resizable control.
0 3989 posted 17 years ago by jimfred
Código para proyecto de Arquitectura y Organización de Computadores con C++ y lenguaje ensamblador.
0 1406 posted 17 years ago by bedomax
0 1615 posted 17 years ago by jimfred
Q: How do I write a structure to a file? A: You can easily write a structure to a file as long as the structure is what is known as a POD (Plain Old Data) type. This means that all members of the structure must be of a fixed size, which implies th...
1 6831 posted 17 years ago by architect
0 1460 posted 17 years ago by jimfred
Article explains why STRINGIFY and TOSTRING are both needed. This technique is useful for embedded apps to print debug strings to a debug console. ASSERT or TRACE statements can incorporate these macros. The line numbers are converted to strings a...
0 1836 posted 17 years ago by jimfred