49,761 Topics

Member Avatar for
Member Avatar for 1o0oBhP

A singly (sp) and a Doubly Linked list class to create linked lists. Can be used to make dynamic arrays and could also be templated to work with any data type (this is old code and i didnt know how to at the time). Has been extremely useful to me …

Member Avatar for 1o0oBhP
0
110
Member Avatar for vegaseat

The Standard Template Library (STL) vector is tempting. The burden of dimensioning an array is removed, and there are many wonderful functions to explore. The learning curve is a little steep, it will make your head swell, but in the end it's all worthwhile. Take a look at some of …

Member Avatar for vegaseat
1
176
Member Avatar for vegaseat

Let's say you worked in the White House and had to keep two lists, one for the friends and one for the enemies. The boss came to you and said: "The Almighty talked to me out of a burning bush last night, telling me that I shall make my enemies …

2
184
Member Avatar for vegaseat

Another experiment with the Standard Template Library (STL). This time we are taking a look at map. Map is a Sorted Pair Associative Container (a mouthful). The pair is -- const Key, Data --, where Key has to be unique. It is Key that is sorted. In this code sample …

1
165
Member Avatar for vegaseat

Using the C++ Standard Template Libraries (STL) can be easy, once you know how to do it. No need to putz around with doubly linked lists anymore! Here is code showing how a STL list allows you to add, insert, remove, sort, splice, merge, display, and clean-out-duplicate strings.

2
160
Member Avatar for vegaseat

This snippet shows how to draw a red circle on a Windows form. Original code via BCX, modified to compile with Dev C++. The GUI code looks a little complex. Gets simpler, once you get past the required overhead. For those who need some hand holding with the Dev C++ …

0
2K
Member Avatar for BlackDice
Member Avatar for venomlash
0
120
Member Avatar for BlackDice

this is a wrapper around the AnimateWindow API. this allows random animations in a dialog. I just call it in the dialog's OnInitDialog() handler. The 'fade' effect has not been implemented because I didn't like the idea of having to call RedrawWindow or something like that because sometimes the borders …

Member Avatar for Satil
0
154
Member Avatar for BlackDice

Returns the name of a folder in a CString after allowing user to browse for it. This is just a wrapper around the SHBrowseForFolder API, but it's great for only allowing a user to browse for folders!

0
195
Member Avatar for chound

This programme can find the dimensions of cuboid and cylinder. In cuboids it can find missing dimensions also. Eg. if length is missing and volume is given it will find the length.

0
419
Member Avatar for chound
Member Avatar for shouvik
Member Avatar for thakur ravi
0
114
Member Avatar for shouvik

Well I thought u might be bored with the hangman stuff i posted a few days ago so here is a new gaming programme. well in this one all u have to do is try to guess the number correctly while running the programme. suggestions are welcome. this is not …

Member Avatar for Ghost
0
213
Member Avatar for meabed

hi all .. this is intorduction to an anonymous classes, An anonymous class is one that doesn't have a name. In the following example, both structures inside the TRectangle union are anonymous classes: Here is an example of running the program: You want to identify your rectangle by its location …

Member Avatar for crestaldin
0
214
Member Avatar for BlackDice

I don't know if this function may be helpful to anyone, but I just converted from a VB function recently to C++. I'm converting a text file string that is nine characters to a decimal value that has funny characters in it because it is exported from an old VAX. …

0
197
Member Avatar for meabed

The problem is to find all ways of placing n non-taking queens on a n by n board. A queen attacks all cells in its same row, column, and either diagonal. Therefore, the objective is to place n queens on an n by n board in such a way that …

0
62
Member Avatar for meabed

hi all .. this is intorduction to an anonymous classes, An anonymous class is one that doesn't have a name. In the following example, both structures inside the TRectangle union are anonymous classes: Here is an example of running the program: You want to identify your rectangle by its location …

Member Avatar for crestaldin
0
105
Member Avatar for BlackDice

I don't know if this function may be helpful to anyone, but I just converted from a VB function recently to C++. I'm converting a text file string that is nine characters to a decimal value that has funny characters in it because it is exported from an old VAX. …

0
61
Member Avatar for Silvershaft

Hey all! I've been learning C++ like about over one month actively now and I am keen on the language. I am considering to buy a book, suitable for beginner, as criteria I want writer to know what about he/she writes and explain all clearly and understandably by beginners. I …

Member Avatar for tux4life
0
94
Member Avatar for sanjeet_singh88

I learn C++ Basic. I want to some detail about in OOPS (Dynamic Binding).

Member Avatar for NicAx64
0
89
Member Avatar for s_48

[COLOR="Green"][/COLOR] hi can any one send me the date validating program plz..........

Member Avatar for jencas
0
114
Member Avatar for xfreebornx

i created a delete function to check for similar user id and delete one but it can seems to work, so i need your help please.. [CODE]#include<iostream> #include<algorithm> //for std::sort #include<string> using namespace std; struct student { int id; string name; string nationality; string gender; }; void insert(student array[],const unsigned …

Member Avatar for xfreebornx
-3
449
Member Avatar for shuda009

Hi, I'm trying to find a solution to my code and I have general idea what the problem is but I don't know how to solve it please help me. What the code does: What my code does is it should read a dictionary file called dict.txt and store each …

Member Avatar for VernonDozier
0
375
Member Avatar for atch

Hi, I would like to ask a question and I'm quite certain that I'll get positive answer to that. When I've change some code in one file and press f5 (visual studio) it seems to me that all other files are being compiled as well as this one in which …

Member Avatar for atch
0
76
Member Avatar for thug line

zup pipz?? i want to create a anti virus using batch file.. our school got a lot of virus that ruin my usb.. please help me.. thx alot in advance.. PM me.. ™Thug Line™

Member Avatar for Sky Diploma
-2
155
Member Avatar for ashishlohani

Hi Folks, Myself is Ashish Lohani and am a software developer. What I want to do is to call a rdlc report in VC++2008 with MFC Framework and dont know how to do............ If sum1 know dat so dp plz help me out........ Thanks In Advance and Have a nice …

Member Avatar for ashishlohani
0
185
Member Avatar for kentigens

Hi, I am trying to get something that will actually delete some contents in a vector? For example, i have a vector<double> vector1; and i have a for loop that does whatever which will access the contents in the vector1 when some criteria is met. therefore not accessing the vector …

Member Avatar for thelamb
0
171
Member Avatar for power_computer

Ok, so I am working on a function that remove a element from the array if the name entered by a user is = to a element in the array It clears of the memory of said element but i need to re order the array I searched on here …

Member Avatar for emirpp
0
787
Member Avatar for roberto usu

I took the summer off from c++ and before that I had only taken one semester, so I am pretty rusty. I have this function that is supposed to add contacts into a structure of xbox gamer friends. At the end of the function It goes into an eternal loop. …

Member Avatar for roberto usu
0
82
Member Avatar for Symbolistic

I am making a bot for an FPS game called Combat Arms, its full screen. The problem here is my code works, but when I open up the full screen combat arms window, it does noting at all... It is a simple AFK Bot, with simple key presses, and mouse …

Member Avatar for ImMoRtAl-
0
220

The End.