51,592 Topics

Member Avatar for
Member Avatar for BlackDice
Member Avatar for venomlash
0
122
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
159
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
197
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
430
Member Avatar for chound
Member Avatar for shouvik
Member Avatar for thakur ravi
0
117
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
252
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
217
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
201
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
63
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
108
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
99
Member Avatar for sanjeet_singh88

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

Member Avatar for NicAx64
0
91
Member Avatar for s_48

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

Member Avatar for jencas
0
116
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
453
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
378
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
80
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
189
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
174
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
789
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
85
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
233
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
155
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
197
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
113
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
383
Member Avatar for serdengil

I am a new C++ user with emacs. Our Prof. wanted us to create a prog. which basically write the positive which is entering ascending order. I can do the ascending order program but he wanted us to make user prompt to enter the number in ascending order. The user …

Member Avatar for mrnutty
0
166
Member Avatar for zimis

Helo, If tcp connection with server is lost, should program close current socket with close(socket_fd) and then use connect(....) again, or use same socket to reconnect with connect(....)? Or when connection is lost current socket is destroyed automatically?

Member Avatar for Salem
0
72
Member Avatar for ElieM

I use the visual Borland Turbo C++ 2006. if the project is a CPP package this is the error --->[url]http://i156.photobucket.com/albums/t18/Mankind-195/NewNewBitmapFile.jpg[/url] if the project is a unit.cpp this is what I see. --->[url]http://i156.photobucket.com/albums/t18/Mankind-195/2.jpg[/url] I can compile for errors and warnings. But when I get 0 errors 0 warnings, I can't run …

Member Avatar for ElieM
0
87
Member Avatar for rhesus303

This is a noobie question due to my lack of windows programming so pls excuse me in advance if this question doesn't make sense at first. I'm working on a visual c++ project and I would like to use some routines that I have in some c files. Although the …

Member Avatar for Tom Gunn
0
305
Member Avatar for TotallyBroke

I have a DX scrolling banner running at the bottom of the desktop. The banner renders, as its backbround, anything beneath it. The problem is that if the background is renewed, I get a copy of the scrolling banner as its own background, even though I've made it invisible before …

Member Avatar for TotallyBroke
0
3K
Member Avatar for pymatio

Attached is the start of my Breakout clone, at the moment the ball should just bounce around a couple of times (smoothly) & then quit. But the ball bounces around with varying speeds and with jerky movements, why?

Member Avatar for pymatio
0
127
Member Avatar for seakayaker

I am new to OOP. Before I did my best never to use global variables and it worked fine. But with OOP I find that I am starting to use global variables... very frustrating indeed. How do you prevent it? Let me give you an example. Assume you have a …

Member Avatar for seakayaker
0
166
Member Avatar for Acute

Hi, guys! I'm new in OOP, so i have some problems here... I'm doing a model of an elevator. There are three classes: building, elevator(which is located in a building), passenger. I have a class "building" which contains as a composition another class -"elevator". Class "elevator" has buttons(function-elements) inside, such …

Member Avatar for Acute
-2
126
Member Avatar for grihalo

I've just finished my homework program and I'm looking for any critiques. Whether they be about my methods, format of how the code is spaced and such, or anything of the sort. Also some ideas on decent commenting would be helpful. In summary I'm trying to learn some good programming …

Member Avatar for VernonDozier
1
170
Member Avatar for daviddoria

This may be a gdb problem or a KDevelop problem, but I'm hoping it's a c++ problem so it's more easily fixed! If I "execute" my application either in KDevelop or from a terminal, it finishes and terminates without any problems. However, if I step through the code, when it …

Member Avatar for mrnutty
0
151
Member Avatar for daviddoria

I have written a small program (it depends on big libraries, so I will not post the actual code) that performs correctly, but segfaults at the very end (main return). [code] int main() { ..... my code here... std::cout << "Finished." << std::endl; return 0; } [/code] I see "Finished." …

Member Avatar for NicAx64
0
2K
Member Avatar for ellimist14

Ok guys I know I should know this but I didn't do any programming all summer so I'm rusty. Basically I have to read a file into an array of structs and allow the user to print a specific employees info, print the struct, etc. That part is easy. The …

Member Avatar for vmanes
0
78
Member Avatar for NinjaLink
Member Avatar for iammfa

hi, i'm beginner in c++ and i'm using SDL with it, i started with beginner SDL tutorial, the 1st lesson learning me how setup SDL, i don't understand some steps from step 11 to 13, i hope some guides this a link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php[/url] regards iammfa

Member Avatar for GDICommander
0
143
Member Avatar for akhilesh890

How does the following recursive call work ? max ( fn(x,y),fn(x,y+1)); please give me a clear explanation .

Member Avatar for VernonDozier
-3
43
Member Avatar for invisi

[CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; void RandomArrayFill(int* array, int size) { //int* array = new int[size]; cout << "Creating and filling the array with integers..." << endl; for(int i = 0; i< size; ++i) { array[i] = rand() % 101; } cout << "Array …

Member Avatar for invisi
0
141
Member Avatar for cmel89

[code]/** Computes the number of different groups of integers summing to value n * @pre n is a non negative number. * @post None. * @param n The number specified by the user to calculate. * @return The number of different groups of integers for the specified number. */ #include<iostream> …

Member Avatar for Sky Diploma
0
101
Member Avatar for gcardonav

Hello everyone: As I stated previously I am learning my C++ on the run because is required for one of my classes and well any help I can get is appreciated. I created a code to read a .txt file containing a list of numbers. My problem is that the …

Member Avatar for gcardonav
0
136
Member Avatar for joisan

This is my problem: getCurves (a); vector<int> RA(a), SA(a); I need to determine the size of vector for "RA" and "SA" by using "a" which is a reference parameter that obtained from "getCurves" function. I will get this error message everytime I compile - "vector subscript out of range". However, …

Member Avatar for Tom Gunn
0
98
Member Avatar for techly

Please help me to write a C++ program which finds the determinant of a n x n Matrix. I'm a beginner in C++ and have read all the posts related to this topic ,but it didn't help me at all. I know the code will be recursive, so i started …

Member Avatar for Sky Diploma
0
214
Member Avatar for pspwxp fan

Hi, I know theres a huge sticky up about C++ books, but i simply need some advice :) . I learned very basic c++ from a book called [url=http://www.amazon.com/Introduction-Programming-C-Diane-Zak/dp/0619217111/ref=pd_rhf_shvl_2]"An Introduction to programming with C++"[/url]. This included taught basics like arrays, functions, Sequential access files and stuff. It also covered basic …

Member Avatar for Tom Gunn
0
82
Member Avatar for gretty

Hello My program takes in a number & uses a recursive function to display that number backwards. eg input = 473, output= 374. I have to submit the program for marking, but they always throw in some curve ball test to make sure that your program will work for all …

Member Avatar for Tom Gunn
0
98

The End.