132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wavsyntax
0
149
Member Avatar for killdude69

This is the Dialogs.h part from the WGCL C++ Compiler Library I created. This creates classes for dialogs, it could cut the amount of code for dialogs you need to write in half, while still having the same amount of functionality. This library is licensed under the GNU General Public …

Software Development c++
Member Avatar for killdude69
0
215
Member Avatar for MosaicFuneral
0
169
Member Avatar for MosaicFuneral
0
143
Member Avatar for MosaicFuneral
Member Avatar for amrith92

My implementation of the [ICODE]strcmp[/ICODE] and [ICODE]strncmp[/ICODE] functions. I don't think that it is very efficient, but have managed to get both the functions' execution times to [ICODE]0.01 s[/ICODE] (At least, this is the value my profiler gives me). Enjoy! :)

Software Development c++
Member Avatar for amrith92
0
620
Member Avatar for tux4life

This snippet allows you to convert a text representation(*) of a [B]binary[/B] number [B]to[/B] a [B]decimal[/B] number :) (*): With 'text representation' I mean for example a string containing "1001" or "10001110011", etc. ...

Software Development c++
Member Avatar for tux4life
0
213
Member Avatar for tux4life

[U]Usage::[/U] [ICODE][B]ir_strcpy[/B]( [I]destination[/I], [I]source[/I], [I]range_begin[/I], [I]range_end[/I]);[/ICODE] [U]example:[/U] [CODE=c] char test[] = "Hello World!!!"; char test2[20]; ir_strcpy(test2, test, 1, 3); /* test2 now contains 'ell' */ [/CODE]

Software Development c
0
277
Member Avatar for tux4life

This is how mine [B]strlen[/B] function would look like if I'd to implement it from scratch :)

Software Development c
0
245
Member Avatar for amrith92

These functions, to some, may seem trivial, but many people have queried in the forums on this topic numerous times. The functions are templated, so that it can accommodate any data-type that the user wishes to use (For example, the same function can be used for converting variables of type …

Software Development c++
Member Avatar for tux4life
0
390
Member Avatar for tux4life

This is how mine [B]strcat[/B] would look like if I'd have to write it from scratch :)

Software Development c++
Member Avatar for tux4life
0
387
Member Avatar for tux4life

This is how mine [B]strcpy[/B] would look like if I'd have to write it from scratch :)

Software Development c++
Member Avatar for tux4life
0
210
Member Avatar for tux4life

This prime number generator is based on Eratosthenes' sieve, the found prime numbers are written to a file (you can specify it's name as a command line argument, as well you can specify the prime number upper bound (e.g: if you specify 500 as upper bound, the program will find …

Software Development c++
0
184
Member Avatar for serkan sendur

Instead of creating a new folder in users application folder under program files and putting there some visible resources, embedding those resources to single executable is better. in this snippet i will show playing an embedded sound file.

Software Development
0
170
Member Avatar for clarence_cool03

{-='Ask for the Student Name & Compute the grade using Dev-C LaNGuaGe'=-}

Software Development c
0
166
Member Avatar for clarence_cool03

{-='Input 99999 to stop using Dev-C LaNGuaGe'=-}

Software Development c
0
220
Member Avatar for clarence_cool03

{-='Read a number series and print it reversed using Dev-C LaNGuaGe'=-}

Software Development c
0
123
Member Avatar for clarence_cool03

{-='Number of Rows using Dev-C LaNGuaGe'=-}

Software Development c
0
146
Member Avatar for clarence_cool03

{-='Number of Rows (Reverse) using Dev-C LaNGuaGe'=-}

Software Development c
0
172
Member Avatar for clarence_cool03

{-='Converting Fahrenheit-Celsius & Vice-Versa using Dev-C LaNGuaGe'=-}

Software Development c
0
226
Member Avatar for clarence_cool03

{-='Display the number of letters in each word typed using Dev-C LaNguaGe'=-}

Software Development c display
0
151
Member Avatar for clarence_cool03

{-='Calculate the average of ten numbers using arrays'=-}

Software Development c
0
292
Member Avatar for clarence_cool03

{-='Calculate 3 Scores using Dev-C LaNguaGe'=-}

Software Development c
0
168
Member Avatar for clarence_cool03

{-='Guessing Game using Dev-C LanGuaGe...=-}

Software Development c
0
143
Member Avatar for clarence_cool03

[B][I]{-='PLs DrOp sUm cOmMeNT gUy'z...=-}[/I][/B]

Software Development c
0
203
Member Avatar for Dave Sinkula

This is a quick and dirty example of a hex dump utility. Not much in the way of special features -- it just dumps the contents of a hard-coded filename in hex and also shows the characters. An example that can show the basics of making your own.

Software Development c
0
233
Member Avatar for tux4life

This program can solve expressions of the following forms: [ICODE]a+b[/ICODE],[ICODE]a-b[/ICODE],[ICODE]a*b[/ICODE],[ICODE]a/b[/ICODE] ([ICODE]a[/ICODE] and [ICODE]b[/ICODE] are numbers :P) Notice: You can't put spaces in between the operands and the operator, I know this is a limitation and that there are thousands of other ways to achieve a better result, so please don't …

Software Development c
Member Avatar for tux4life
0
177
Member Avatar for NicAx64

This is not the fastest way and not the one that used inside the calculators and even inside the C++ math library. But this is just another way to find logrithm of base 10.

Software Development c++
Member Avatar for ddanbe
0
105
Member Avatar for aiswariya

A game... Depends fully on luck that u have and a little bit of smartness.. You will be given 3 chances.. and 3 nos will me running randomly. u have to click when all t three no are same.. if u succeed in this then u are t winner.. Smart …

Software Development c
0
103
Member Avatar for aiswariya

The program is exactly to work out with maths fun.. u think of a two digit no.. say 24 now add both the digits i.e;2+4=6. subtract 6 with the no tat u thought originally.. i.e;24-6=18.. see t symbol which correspond to the no 18 and then press enter to see …

Software Development c
0
163
Member Avatar for tux4life

Probably one of the poorest sorting algorithms ever written but I provide it here and anyone who wants to use it can use it in any way he/she wants :P ... Usage: `bubble_sort(your_array, number_of_elements);` int arr[] = {52,85,2,1,-56,802}; bubble_sort(arr, 6); /* order of elements in arr: {-56, 1, 2, 52, …

Software Development c++
0
153
Member Avatar for tux4life

> I know there are some bad things in my code such as [ICODE]system("CLS");[/ICODE] and that this makes the code unportable and inefficient, but you could just remove it at anytime :) > It could be that my code is a bit bloated, I didn't put enough time and effort …

Software Development c++
Member Avatar for tux4life
0
259
Member Avatar for puneetkay

This program consists of a function in one class. It demonstrates the "Left To Right" Principle used by most of the languages.

Software Development java
0
110
Member Avatar for William Hemsworth

This snippet basically shows you how to input a password from the user without actually displaying the characters, instead they are replaced with the ' * ' character as you type. The code is uncommented, so I will briefly explain it. This function: [ICODE]void PasswordInput(char *password, size_t maxLength)[/ICODE] has two …

Software Development c++
0
525
Member Avatar for William Hemsworth

Snippet to show how to count the number of occurences of letters in a string.

Software Development c++
Member Avatar for William Hemsworth
0
744
Member Avatar for meghs007

This program take user name and password from the use but the password not display on screen insted of password ***** display Program by Meghdoot(meghs)

Software Development c
Member Avatar for burnt-ice09
0
194
Member Avatar for GANTOR

A simple C++ console calculator that uses square roots as well.

Software Development c++
Member Avatar for Nick Evan
0
144
Member Avatar for FlamingClaw

I want to show a simple example about writing record to a file,and for checking,read back from that file. Created By FlamingClaw

Software Development pascal
0
258
Member Avatar for leegeorg07

this is code that thanks to vegaseat helped me convert my programs into python30

Software Development python
0
181
Member Avatar for MosaicFuneral

"Hello World!" done a little differently. Is this safe, unlikely; is there a point to all of this crap, nope; why are parts obfuscated, because I felt like it; was it fun, yes. You'll need the newest version of MinGW to compile, I used options -O2 -Os -s.

Software Development c++
Member Avatar for MosaicFuneral
0
357
Member Avatar for MosaicFuneral

Got bored, remember a question asked in the forums, and decided to try something similar.

Software Development c++
Member Avatar for MosaicFuneral
0
9K
Member Avatar for kelechi96

Hi this basicly finds and stores prime numbers at you will need to put a file called startnumber.ini with a number in it for the program to start from. Also rename the UserStorage.txt each time you use the program or it will be overwriten.

Software Development c++
Member Avatar for William Hemsworth
0
242
Member Avatar for GreenDay2001

The given code snippet checks whether a given string is a part of other string and wildcard are allowed.

Software Development c++
0
115
Member Avatar for FlamingClaw

This algorithm will add the searched element's place in an array This works only when there is so element what we're searching for. By FlamingClaw

Software Development algorithm pascal
0
155
Member Avatar for FlamingClaw

This algorithm will decide that is there a serched element in the array.If it finds one then the loop halts.If the loop halts cause we're stepping over the last element of the array then there is not searched element. By FlamingClaw

Software Development algorithm pascal
0
2K
Member Avatar for FlamingClaw

Counts that how many propertied elements are in the array example:negative numbers By FlamingClaw

Software Development pascal
0
176
Member Avatar for FlamingClaw

The Rule: s:=0; Loop i:=1 To N s:=s+T[i]; End of Loop; Out:s; By FlamingClaw

Software Development pascal
0
802
Member Avatar for tux4life

Hello, as promised I updated my stod-function from [URL="http://www.daniweb.com/code/snippet1147.html"]this[/URL] thread ... Enjoy !

Software Development c c# c++
Member Avatar for tux4life
0
553
Member Avatar for tux4life

Hi there, I've written a program which can add two numbers of unspecified length, isn't that nice? To add two numbers you just do the following: [ICODE]addition(number1, number2);[/ICODE], where 'number1' and 'number2' are strings ... E.g: [CODE=cplusplus] ... cout << addition("500","10") << endl; // Print '510' on the screen ... …

Software Development c++
Member Avatar for tux4life
0
269
Member Avatar for FlamingClaw

Prime or not?This little program will show prime numbers with green color from 0 to 100.By FlamingClaw;

Software Development pascal
0
293

The End.