15,300 Posted Topics

Member Avatar for nurulshidanoni

[URL="http://www.daniweb.com/forums/post512058.html#post512058"]Are you STILL on that same program [/URL]? Is that the same problem you posted 185 posts ago ? Haven't you learned anything yet ?

Member Avatar for nurulshidanoni
0
104
Member Avatar for jimJohnson

[URL="http://www.purplemath.com/modules/meanmode.htm"]Brief tutorial [/URL]in mean, median and mode. The median is the value in the center of the data, after the data has been sorted. So if you have the values 10, 20, 30, 40 and 50 the median is 30 because there are two values below it and two above …

Member Avatar for Ancient Dragon
0
228
Member Avatar for dpfaff

post some of the errors. On lines 55 and 57 you are trying to use an unidentified object [b]inlab[/b]. Have no clue what that is supposed to be.

Member Avatar for Ancient Dragon
0
134
Member Avatar for Platinumempire

>>I would like to know if you can measure execution time in nanoseconds No. milliseconds is probably the best you can achieve. If you are using MS-Windows you MIGHT be able to use [URL="http://msdn2.microsoft.com/en-us/library/ms644905.aspx"]QueryPerformanceFrequency()[/URL]

Member Avatar for Ancient Dragon
0
253
Member Avatar for marti3a3

A switch statement is really nothing more than a fancy set of if statements and makes the code easier to follow. The [b]default[/b] case is not required but often useful just like the else statement. [code] int Triangle::CalcDecider(int choice1) { switch(choice1) { case 1: Cool.Equilateral(); break; case 2: Cool.Square(); break; …

Member Avatar for marti3a3
0
151
Member Avatar for Adrian99420

Instead of doing a direct link with the database why don't you write an SQL query in which you can filter the data any way you want then fill the combo box with the result set. [SELECT DISTINCT](http://www.w3schools.com/sql/sql_select.asp) profile_name will remove duplicates

Member Avatar for Ancient Dragon
0
138
Member Avatar for Sh13

>>PrintString(*array); That is not an array of strings like you originally declared because it only has one asterisk. All that takes is one character array. If you want it to print all the strings then you need it like this: [icode]printString(char **array);[/icode] or this [icode]printString( char* array[]);[/icode]

Member Avatar for Sh13
0
101
Member Avatar for Designer_101

Read the [b]Read Me[/b] links at the top of this c++ board. They contains lots of information.

Member Avatar for Ancient Dragon
0
55
Member Avatar for tb808kid

>>I was hoping for just a giant list of every list in the dictionary which dictionary? there are quite a few of them and they all contain a different set of words.

Member Avatar for tb808kid
0
181
Member Avatar for CodeBoy101
Member Avatar for Onixtender

lines 18 and 19. Why do you want to overwrite the last character read by '\n'? Don't you want to append it to the end of the string instead of overwriting the last character ? Actually I don't know why you want to do that anyway -- we normally just …

Member Avatar for Onixtender
0
150
Member Avatar for lahom

Every MFC program has an object named [b]theApp[/b] which is derived from [URL="http://msdn2.microsoft.com/en-us/library/362kaah4(VS.71).aspx"]CWinApp[/URL]. Maybe that is what it is looking for ??? theApp is declared in <project name>.cpp near the top of the file. You can also access it by calling the function AfxGetApp()

Member Avatar for Ancient Dragon
0
133
Member Avatar for NinjaLink

Thanks for using code tags, but the code you posted contains no carriage returns '\n', and that makes it impossible to copy. Learn to use your compiler's debugger so that you can step through the problem one line at a time and see what it is doing.

Member Avatar for NinjaLink
0
86
Member Avatar for imaking

>>and recently been having some problems with it Welcome to the club :) >>I called Verizon and they said the connection is fine and there might be something wrong with my computer That a common pass-the-buck answer. I get that too from my isp when something goes wrong. Sorry but …

Member Avatar for imaking
0
90
Member Avatar for hyperzero4

add these lines at the top of VectorPivot_once. You will find that bot is 0 and top is -1. [code] if( bot > m || top > m || bot > top) { cout << "bot: " << bot << " top: " << top << "\n"; cin.get(); return; } …

Member Avatar for hyperzero4
0
172
Member Avatar for Stack Overflow

>>*pch = ch[0]; Example 1-1 Above line is incorrect because pointer pch is uninitialized. >>ptr = &n[0]; Example 1-3. This can also be simplified like below: The & operator is not necessary. ptr = n; >>ca[3] = '\0'; Figure 2-1 The above is wrong because array ca only has 3 …

Member Avatar for PeterPimmel
1
571
Member Avatar for rumencho

[URL="http://www.google.com/search?hl=en&q=what+is+identifier+in+c%2B%2B"]identifers[/URL] An identifier is the name of something.

Member Avatar for Ancient Dragon
-1
62
Member Avatar for Mark515

Yes. Do you have a console or GUI program. What compiler and operating system. Its basically nothing more than a loop [code] int main() { std::string username, password; bool done = false; while( !done ) { // ask for user name and password. If corect set done to true, otherwise …

Member Avatar for Ancient Dragon
0
92
Member Avatar for buddha527

where is the implementation code for that constructor? BTW: it is almost never ever the fault of the compiler.

Member Avatar for buddha527
0
151
Member Avatar for VernonDozier
Member Avatar for majestic0110
0
143
Member Avatar for Mark515
Member Avatar for Mehwish Shaikh

what data does the text file contain. In order to read the file you have to know what the file contains.

Member Avatar for Ancient Dragon
0
177
Member Avatar for Ancient Dragon

Is it possible to allow someone to add new items to a poll after it has been initially created ? Often times I see that posters have other things they would like to add to the poll or something the OP forgot and would like to add.

Member Avatar for jbennet
0
67
Member Avatar for winky

download VC++ 2008 Express and that problem will be solved. With the 2005 version you also have to download the Windows Platform SDK, which is pretty large. And it is somewhat complicated to set that compiler up so that it will compiler windows programs. Microsoft fixed those problems with 2008.

Member Avatar for Ancient Dragon
0
135
Member Avatar for Black Magic

The answer is in the [URL="http://www.cplusplus.com/reference/iostream/fstream/open.html"]open() function [/URL]-- see the flags for the second argument. If you want all writes to go at the end of the file the second argument should be ios::ate. Or you could do seekp() first to set the file pointer to end-of-file. But ios::ate is …

Member Avatar for Black Magic
0
84
Member Avatar for Nemoticchigga

depends. If the code uses normal win32 api functions such as CreateFile() to open the com port, then you shouldn't have to change a thing. The device driver will make it transparent to your program.

Member Avatar for Nemoticchigga
0
67
Member Avatar for bis student

How do you calculate the volume of a cube ? (Hint: see your 4th grade math primer). Since we know nothing at all about that Box class can't really help you any more.

Member Avatar for Ancient Dragon
0
60
Member Avatar for ganiraju

Radio Frequency Identification is RFID, not RDFI. You can probably get more information from one of the barcode scanner manufactures such as Intermec and Symbols Technologies. See these [URL="http://65.111.84.6/search?q=rfid+scanners&btnG=Search&site=default_collection&client=barcoding_frontend&proxystylesheet=barcoding_frontend&output=xml_no_dtd"]google links[/URL]

Member Avatar for Ancient Dragon
0
139
Member Avatar for hilofat

Do you know structures yet? If you do then you should create a structure that hold the information for each jockey. Read a line, search the array of structures to see if it is already in the array. If not, then add a new entry. If it is then just …

Member Avatar for hilofat
0
73
Member Avatar for rajeshwarreddyt

>>i am unable to find in google You didn't look very hard did you ? [URL="http://www.google.com/search?hl=en&q=enterprise+applications"]Here are google links [/URL]I found in about 15-20 seconds. And [URL="http://en.wikipedia.org/wiki/Enterprise_software"]here [/URL]is a pretty good explaination, right near the top of all those google links.

Member Avatar for rajeshwarreddyt
0
78
Member Avatar for Indianblues

First create a project, copy the three files into the project's directory and add the files to the project. In the [b]Project[/b ] tab located in the far left panel right-click on the project name, for example [b]Project1[/b] and select [b]Add To Project[/b]

Member Avatar for Indianblues
0
178
Member Avatar for GrimJack

horrified? Not at all. I love to watch all those commercials :) I think its great when there is 5 minutes of TV show and 10 minutes of commercials. Damed TV stations interrupting the commercials with all those tv shows. >>GDP of Afghanistan was $35 billion. Even more shocking is …

Member Avatar for GrimJack
0
132
Member Avatar for hacker9801

Do you need the information if the player stops and wants to restart again later ? If yes then you will have to save the information in the vector somewhere and if you have MySql available already then that's a good place to put it. You could also just store …

Member Avatar for Rajith Cherian
0
120
Member Avatar for c++noobie

do you know if $HISTFILE actually exists in the environment ? My guess is that getenv() returns NULL and your program is not checking for a NULL return.

Member Avatar for c++noobie
0
155
Member Avatar for RedStarlight

you should first create an empty project then copy the source files that you have into the project directory and finally add the files to the project. If you are using VC++ 2008 Express: [URL="http://msdn2.microsoft.com/en-us/beginner/bb964629.aspx"]read and watch this tutorial[/URL] If you really have zero knowledge of C language then I'd …

Member Avatar for RedStarlight
0
140
Member Avatar for gamblitis

depends on the operating system. [URL="http://trolltech.com/products/qt"]QT[/URL] is portable between operating systems. And for MS-Windows you could start with [URL="http://www.winprog.org/tutorial/"]this win32 api tutorial[/URL]

Member Avatar for Ancient Dragon
0
82
Member Avatar for bodhankaryogesh

>>Sorry, I can't post the code. Sorry, my crystle ball is broken too.

Member Avatar for Narue
0
103
Member Avatar for VisActualyBasic

Welcome to DaniWeb >>Favorite Movies: Rambo is having sex change Now that would be a funny movie :) >>Favorite Video Games: Don' have that here, please explain whats that Of course you people have vide games. If you are near a Wal-Mart than it will have hundreds of them.

Member Avatar for Serunson
0
121
Member Avatar for vbjavax
Member Avatar for Serunson
0
72
Member Avatar for komany

>>stat = canWrite(hnd, 1234, size, 8, canMSG_EXT); what is the 1234 and 8 for? sizeof(size_t), which is an unsigned int, if 4 on most 32-bit computers, not 8.

Member Avatar for Ancient Dragon
0
166
Member Avatar for computers08

>>2-4 are just reflections/rotations of the first one That tells us nothing. >>please help with the other 2 And you can't count either because 4 - 1 != 2 :)

Member Avatar for computers08
0
102
Member Avatar for The Dude

>>And through this reduction in ignorance, these atrocities may cease It will do nothing for that because the people who need to be informed have no intention of stopping. Its like the war in arabian countries like iraq -- they have been at war for thousands of years and will …

Member Avatar for >shadow<
1
281
Member Avatar for nurulshidanoni

you mean you want the structure to look like this: [code] struct exam { int examid; float total; }; [/code] You will have to make a lot of code changes to do that because total is no long an array of ints. I suppose instead of push_back(123) just add 123 …

Member Avatar for littlestone
0
294
Member Avatar for nelledawg

Simple -- you already have the ranges declared as integers or floats in lines 84-94, now all you have to do is read their values from the input file. You don't have to change another thing. Do that right after line 103 in the post above and it should work …

Member Avatar for nelledawg
0
103
Member Avatar for blm2007

I agree with Dani. I never heard of Moneybookers either. Just the name sounds a little slizzy to me.

Member Avatar for Hailey
0
109
Member Avatar for sfak271

lets say you want an array that can hold up to 10 divisors. Then you would declare it like this: In addition to declaring the array the code below will initialize all elements with 0. [icode]int divisors[10] = {0};[/icode] Each of the elements of the array are numbered 0, 1, …

Member Avatar for Ancient Dragon
0
277
Member Avatar for spec80

>>while (a != 'A' || 'B' || 'C') wrong way to code that [icode]while (a != 'A' && a != 'B' && a != 'C')[/icode] or this [icode]while( a < 'A' || a > 'C')[/icode]

Member Avatar for spec80
0
91
Member Avatar for saint.h

The problem is in some code before those functions. Most likely you forgot the function's closing brace }. That makes the compiler think that the next function is being nested inside the previous function. Count the braces and make sure there is a } for every {.

Member Avatar for Ancient Dragon
0
285
Member Avatar for big24fan

those warning could be safely ignored -- but to remove the warnings check the return value of strlen() -- it returns and size_t (an unsigned int), and you are attempting to compare it with an int. In the case of line 124 just change the data type of variable i …

Member Avatar for Ancient Dragon
0
134
Member Avatar for KeeperOfTime

>>I didn't figure out if it's possible to create 32 bit pointers in a DOS application Yes, it is possible, depending on the memory model. use the FAR keyword to create 32-bit pointers in small memory model. 32-bit pointers are default in the large memory model. But that still can't …

Member Avatar for KeeperOfTime
0
126

The End.