48,985 Topics

Member Avatar for
Member Avatar for jdpjtp910

I have a program for school that I need help condensing some code, if possible. I have structure that has 10 fields for a monthly budget. I will have the user input their current budget and then my program informs the user if they are over under their budget and …

Member Avatar for jdpjtp910
0
506
Member Avatar for lparras

I have a weird problem with destructors. My code works in older machines with g++-2.95, g++-3.3, g++-4.0, g++-4.0.1 and not in my machine with g++-4.4.1. Do you know why? Here I show a small example that reproduces the error (in my machine): [CODE] #include <iostream> class Matrix{ public: Matrix(){}; Matrix(int …

Member Avatar for Salem
0
108
Member Avatar for mvmalderen

Intended as a replacement for [URL="http://www.daniweb.com/code/snippet217322.html"]this[/URL] old crap of myself ;) Note: no error checking provided, if you need it, then you can easily implement it yourself :)

0
159
Member Avatar for Clawsy

Hello, I'm trying to get from the screen, the region, or rectangle (the coordinated) of the part that is being painted. For example when I move some window or I have some action on the screen I want to get only that part of the screen image that is being …

Member Avatar for Clawsy
0
1K
Member Avatar for StaticX

Hi, Im wondering if someone could clarify a problem im having. Basically im trying to figure out how i can go about having a Class A object as an attribute of Class B,while still using Class A's functions. For example if have a class called clockRadio.In turn i have another …

Member Avatar for StaticX
0
100
Member Avatar for Suraine

Hi, everyone: I want to create an infinite array, where normally we initialize an array like this: [code]int array[10];[/code] There is 10 spaces in the computer reserved for array[]. However if I wish to have an array with no limit space, but the number of spaces of an array is …

Member Avatar for WaltP
0
10K
Member Avatar for gianx80

Hi! I'm writing a little equation solver for an exam ... it has not to be perfect or mathematically rigorous. With this program I have only to show to my professor that I can write some simple program in Assembly and C++ language. In other words, I have only to …

Member Avatar for Salem
0
238
Member Avatar for vvirendra

define a class to store following informations of students student name class grade marks &put all the above information ina binary file through class object for five student & display all the information by moving file pointer in the begning of the file

Member Avatar for WaltP
-3
99
Member Avatar for esesili

Hi All, I got a program which was written in c++ for unix at 1999. There are almost a hundred of source code files and makefile is available also. I do not have access to unix because of this, I need to get it worked in windows. My question is …

Member Avatar for WaltP
0
117
Member Avatar for ppotter3

Hello! I have a question, I have been struggling with this for a bit (I welcome any constructive criticism and pointers) now, and I am pretty new to C++. I am in the process of writing a program that takes names in the format of LAST, FIRST; the it loads …

Member Avatar for ppotter3
0
1K
Member Avatar for scholar

Hi, I am using a 16-bit compliler and i wanted to execute a dos commmand through c++ using system() command.I wrote the following code but it didn't help [code=cplusplus] #include<process.h> void main() { system("c:\\windows\\system32\\Notepad"); } [/code] I even tried wid 'system("notepad")' but even tht didn't run the command.Plz tell me …

Member Avatar for WaltP
0
247
Member Avatar for Stefano Mtangoo

Hi all, Just curious. If I want to write a library to play almost all common audio formats, what do I need to know? an it should be cross platform. I want to implement in C++ library like bass. But that will be possible only if I will be ready …

0
69
Member Avatar for blahhaha

I am trying to create a sudoku generator in turbo c++ for a project. This code is not working for some reason....Please help! [code] #include<iostream.h> #include<conio.h> #include<stdlib.h> int chkcol(int u[x][y]); int chkrow(int v[x][y]); int chkbox(int w[x][y]); void main() { textcolor(WHITE); textbackgroundcolor(MAGENTA); clrscr(); int sudoku[9][9]; for(int i=0; i<9; i++) { for(int …

Member Avatar for WaltP
0
122
Member Avatar for Ultratermi

Hey, i wanna get the text from a NOT selected index. Does anybody know how to do it? Thx! Daniel

Member Avatar for Ultratermi
0
132
Member Avatar for Stefano Mtangoo

Hi All, Till now I haven't done any serious debugging (Jump to line, blah blah). What I have done so far is read error and try to decode. Now I want to use variables form stack etc. In WingIDE/Python I will click on stack and see variables and what they …

Member Avatar for Stefano Mtangoo
0
227
Member Avatar for ppotter3

Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. …

Member Avatar for ppotter3
1
7K
Member Avatar for supernater

Hi there, I'm making a settings dialog for my application but I'm having a problem figuring out how to implement it. I'm trying to make a settings dialog that has a treeview on the left-hand side, clicking on the nodes of the treeview would switch the dialog background based on …

Member Avatar for supernater
0
90
Member Avatar for jayrana

I don't understand what the following functions does in the code random walk ( sample programes in the player/stage library) could someone please be kind enough to help me understanding it 1. in the following one why dont we just use 0 whats the need to use gindex? [CODE] if …

Member Avatar for Fbody
0
183
Member Avatar for rsaska

Hello, I am trying to create a function that compares lower and upper bound IP addresses. If the lower bound IP address is greater than the upper bound IP address I would like the program to 1. display the error 2. terminate immediately Problem is, when I use exit(0) to …

Member Avatar for rsaska
0
107
Member Avatar for dchunt

I want to read characters(256 of them) from a file and put thier numeric value in an array.Then i want to send 16 characters in batches from the array onto a loop in successive steps to perform operations on them. My problem: First i can read the first batch of …

Member Avatar for jonsca
0
97
Member Avatar for chuong3a

How to install OpenGL for CFree 4.1 in Win7. and how to use graphics.h library in Cfree in Win7. Please help me, thanks.

Member Avatar for gridandy
0
185
Member Avatar for team_ferrari22

Hi, Does any body know how the 'NdrClientCall2(...)'(is the function in RPCRT4.dll) function can be called in code or how it can be used. We gone through the MSDN help - [URL="http://msdn.microsoft.com/en-us/library/aa374215(VS.85).aspx"]http://msdn.microsoft.com/en-us/library/aa374215(VS.85).aspx[/URL], but didnt get any examples/samples how to use this function. Please provide help. Thank you.

0
62
Member Avatar for RLB31384

I'm trying to find some good websites with questions such as "Create a program that does blah blah.." And then gives the solutions so I can program and then compare my program, or use it for help. I have taken C++, and C++ advanced, data structures (taking advanced data structures …

Member Avatar for nischalreddy27
0
126
Member Avatar for atticusr5

hello all I am a second semester c++ college kid so bear with me I am writing a program that takes in bank account info, sorts it, prints it, and then prompts the user if they would like to view any specific records via the account number or the name …

Member Avatar for vmanes
0
101
Member Avatar for rena0514

My numbers are not being read in to the two dimensional array correctly and i'm completely lost :confused: [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int SIZE_MONTH=4; const int SIZE_DAYS=31; int main() { float temperatures[SIZE_MONTH][SIZE_DAYS]; string months[SIZE_MONTH]={"January","February","March","April"}; ifstream inFile; inFile.open("temp1.dat"); if (!inFile) cout<<"File not …

Member Avatar for vmanes
0
151
Member Avatar for shilpa_B

Hi all.. please can any one post 5/6 hard decision viterbi decoder in c.. its urgent.....

Member Avatar for shilpa_B
0
93
Member Avatar for kennethjohn

The inventory of a shoe store lists shoes by stock number. With each stock number, there is a associated style number in the range of 0 to 50, the number of pairs in each size (sizes range from 3 to 14) and a price. A program is to be written …

Member Avatar for Salem
-1
211
Member Avatar for kellyandtopher

When I load Visual Basics, which has VB, C++ and so on, I have problems with the internet. Errors come up on web sites and not allow me to use there sites, ie... ebay. I need to know what the heck I can do to stop the errors so I …

Member Avatar for WaltP
0
78
Member Avatar for smarty_t2

Hello, I am using turbo c++, dos one, and am making a program, but theres a problem... My program runs on an infinite loop and has a small delay in between...It takes user's keystrokes at the start of loop like this, [CODE]int in; while(1) { if(kbhit()) in=getch(); . . delay(100); …

Member Avatar for VilePlecenta
0
754
Member Avatar for lima01

Hello, I am making some program, and have some problem, i want to list all files that are on HD, and if I want to list all files in C: with this command with only one backslash after C:( system(dir C:\ /s/b/a-d> C.txt)) it only list files that are in …

Member Avatar for lima01
0
161

The End.