Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
C++
Visual Studio debug tools to detect and debug memory leaks by setting a breakpoint on a particular memory allocation.
The Visual Studio output window will display "Detected memory leaks!" with a memory allocation number, for example, {145}. See Memory Leak Detection Enabling.
Using the debugger (without changing code) see: http://msdn.microsoft.com/en-us/library/...
1
1498
posted 16 years ago by jimfred
The bugged version: Somehow, it prints random characters to me like [] except the spaces filled in and other accented letters when I input more parenthesis and longer input.
How to use: example->
input:
3
1+2
(1+2)*(6-2)
6-7*(9*10)/8
ou...
0
783
posted 16 years ago by Mcgee_00
This routine can be used to copy the byte values of a float or double. The "isBigEndian" variable needs to be determined (most PCs are little-endian, whereas most embedded microprocessors are big-endian). Instead of using unsigned chars, it can be us...
0
882
posted 16 years ago by pckujawa
This example shows how to compile the hello.c file out of the fuse source tar.
0
723
posted 16 years ago by narkisr
How to use WebClient to post to an ASP.Net page and maintain viewstate for proxy purposes.
0
883
posted 16 years ago by BlueCockatoo
I have not tested it yet but the author claims to make your printer show some random messages.
0
832
posted 16 years ago by planetcall
In Ruby you can write 5.times { print "Hello World" } . With a simple extension method I was able to do something similar with C#.
0
644
posted 16 years ago by Soft
This demonstrates how to make your own console "scripts" using C -- for example, you could capitalize every character that comes in. Tweak the line labelled "TWEAK THIS LINE" in order to get it to do what you want. This particular example will add...
1
793
posted 16 years ago by darkphotn
this pointers are making me dizzy, so just for a reference i'll keep them here.
1
799
posted 17 years ago by iTony
Use to get console input from the user for a file name (in the current directory) and read in from that file.
2
835
posted 17 years ago by pckujawa
With the typical fork+exec method of spawning an application, you are left in the dark about failures in the exec. Once the fork occurs, the "main" process doesn't have any communication channel except waitpid, so it's hard to tell what happened....
1
851
posted 18 years ago by CUViper