51,593 Topics

Member Avatar for
Member Avatar for mevkurray

Hi all. Im developing a qt app to use on a wince device. I have compiled the OpenSource version of Qt for winCE, and it is working. My program compiles fine. However, if i have any slots defined in the header file, it throws the following linker error: moc_updatedialog.obj : …

0
74
Member Avatar for atticusr5

hey everyone, I got a weird error when I run my program. I compile and link and run the program through the terminal in Ubuntu. I have to compile or linking errors, and the program run's fine, except when the program asks: "Would you like to see a display of …

Member Avatar for atticusr5
0
89
Member Avatar for isralruval

im having trouble with my program. it reads the student id, and both grades from a file and then a function its suppose to calculate the average of both grades and then pass the results to the main program using pass by reference. And for some reason my average its …

Member Avatar for jonsca
0
104
Member Avatar for Xorifelse

I've searched the forums a bit but I couldn't really find anything relative to this matter. I'm relatively new to C++, and I always used cout and cin. But I find the syntax style a bit off, so I was searching for alternatives and found scanf, sscanf and well printf. …

Member Avatar for WaltP
0
141
Member Avatar for ayushii

[I]<<split from [URL="http://www.daniweb.com/forums/thread257500.html"]here[/URL]>> [/I] plsssssssss help me guys ..... i want a c++ code for arithmetic & scientific calculators individually,..... plsss help... i need it within a few days.......plsssssss

Member Avatar for WaltP
-5
101
Member Avatar for abraham james

Write a program based on the agent model in which two agents the farmer and agricultural officer converse over a disease that affects sheep.

Member Avatar for WaltP
-2
105
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
515
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
120
Member Avatar for tux4life

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
161
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
104
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
247
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
102
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
125
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
248
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
72
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
129
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
136
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
228
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
190
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
109
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
102
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
189
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
64
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
132
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
106
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
157
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
102
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
215
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
82
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
764
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
167
Member Avatar for Talguy

I can write a procedural application fine with graphics just fine. I have a new project where I am finally going to learn how to code with concurrency in mind. So I want to make an alarm clock that can have repeating alarms and selectable alarm tunes through itunes or …

0
62
Member Avatar for panagos

I try to find a way to find the minimum of an array of numbers different type (int,float,double..) i have written this [CODE] #include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> T min(vector<T> a()) { int i = 0; T min = a[0]; vector<int>::iterator it; for( …

Member Avatar for dusktreader
0
201
Member Avatar for gowth08

Hi all, My code for SHOP is as follows, problem description [url=http://www.spoj.pl/problems/SHOP/]here[/url]. [code]#include<iostream> #include<queue> #include<climits> using namespace std; class pt{ public: int _x,_y,_cost; pt(){} pt(int x,int y,int z):_x(x),_y(y),_cost(z){} int print(){ printf("%d %d %d\n",_x,_y,_cost); } }; int dx[]={0,-1,0,1}; int dy[]={-1,0,1,0}; int main( ) { int M,N; while(scanf("%d %d",&N,&M)!=EOF){ if(!M&&!N)break; bool flag=false; …

Member Avatar for Ancient Dragon
0
167
Member Avatar for GooeyG

This program involves tree structures. I need to teach the program three new animals. Also, i need to ask several new questions to guess the right animal too. The problem that I'm having is that I don't know how to get the question to come up when the user enters …

0
50
Member Avatar for asa88

here is my class file: [CODE] #ifndef BANGER_H #define BANGER_H class Banger { private: static int objectCount; char* driver; char* car; int hits; bool mobile; public: Banger(); Banger(char*,char*); Banger(const Banger &obj); void setDriver( char* ); void setCar( char* ); void setHits( int); void setMobile( bool); char *getDriver(); char *getCar(); int …

Member Avatar for asa88
0
118
Member Avatar for borkoBorule

Hi everyone, I'm n00wbie to C# and I I have one question. I'm writting class for access to MySQL over DbLinq and I need to know connection string. I know that I can read connection string from webconfig file. My question is is there any function in C# that I …

Member Avatar for apegram
0
80
Member Avatar for Kennych

~I need to do the following ~ Take Input from number assign it to variable maxNumber ~ Create variable called randomN and assign a random number from 0-maxNumber to randomN -C++ Please need help thank you.

Member Avatar for Ancient Dragon
0
61
Member Avatar for SpyrosMet

Can anyone please tell me how to create a simple window? If possible can you provide an example? Thank you.

Member Avatar for Ancient Dragon
0
101
Member Avatar for weaslem32

I need help with an assignment. I have to modify the program below to determine the number that was entered the most times in a row and display the output. I can not use files or arrays. I am having trouble with the logic and need some guidance. Thanks. [CODE]#include …

Member Avatar for dusktreader
0
76
Member Avatar for scott6480

I am having trouble with myRectangle2 taking the values I am assigning to it. The myLine2 value works just fine. Can anyone spot what I am doing wrong? I have stared at this for too long and now I am second guessing everything I have already done. Any help is …

Member Avatar for WaltP
0
130
Member Avatar for BobbieJean

Hello, I'm new here but I need a little help please. I've gotten this program to mostly work correctly except for what seems like one small detail. My program is supposed to ask the user to enter a file name, open it and display its contents 24 lines at a …

Member Avatar for WaltP
0
665
Member Avatar for SpyrosMet

I was wondering if [CODE] *pntr.age = 19;[/CODE] is valid considering that pntr is a pointer to an object that has age as a varible. If it is valid, can it be used with an array of pointers to objects? if yes can i get an example please? thank you.

Member Avatar for mrnutty
0
102
Member Avatar for Mono15591

I haven't ran it for a while now and now I need to register it BUT the link it has to register doesn't load anymore...the site loads but all I get is a stupid loading animation for the product key. it's been going for 20 minutes now. I've tried multiple …

Member Avatar for totalwar235
0
86
Member Avatar for lsandling

I guess I am really having trouble with what's inside the function How do I get it out.. Suppose I ask a yes or no question and if the answer is no then break if the answer is yes then compute that formula. okay [CODE] int ThingYesNo; doubleThingHeight do { …

Member Avatar for lsandling
0
119

The End.