49,757 Topics

Member Avatar for
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
415
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
211
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 mvmalderen
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
86
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
447
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
373
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
75
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
169
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
81
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
216
Member Avatar for valleymorning

Hello all, I have a trouble finding Magic Numbers. I'd greatly appreciate any help in writing a function in C/C++ that will find all magic numbers (with 1000 iterations or less). "Magic numbers" are 6 digit numbers that have the property that they are equal to the square of the …

Member Avatar for John A
0
151
Member Avatar for ankit894u

For a given integer n>1, the smallest integer d>1 that divides n is a prime factor. We can find the prime factorization of n if we find d and then replace n by the quotient of n divided by d, repeating this until n becomes 1. Write a program that …

Member Avatar for ankit894u
0
194
Member Avatar for azjherben

In C++ code, how would I customize an extension. I'm using C++ and my program outputs files, if/when I make an installer for it, I'd like to know how to make a program that can assoicate a file extension ex. ".iazj" with a name, icon, and program to open.

Member Avatar for Nathan Campos
0
110
Member Avatar for Clarkie

Hi there, I have been working for the past 3 months at Moxconsole.net and Clarkie's-Cave forums creating/editing save game files for people using a program called CWCheats for the PSP. I have edited just over 100 files each taking a min of 5 minutes. Thats around 20 hours min of …

Member Avatar for Clarkie
0
324

The End.