15,300 Posted Topics

Member Avatar for sillyboy

If its only one click of the mouse to check it, then its also just one click to unclick it. I usually check them, so having it checked by default makes sense to me. But can't please everybody all the time :)

Member Avatar for Nick Evan
0
167
Member Avatar for grvs

Why do you need more than 30 minutes to edit your post? It seems to me that 5 minutes should be pleanty of time to correct typing or other errors. But I suppose more than 5 minutes might be needed by people who hunt-and-peck at the keyboard.

Member Avatar for punjabivirsa3
0
171
Member Avatar for Manutebecker

you could make one class derived from the other [code] class A { ... }; class B : public A { ... }; [/code]

Member Avatar for Rashakil Fol
0
85
Member Avatar for k59smooth

iostream.h is obsolete (depreciated). use <iostream> (without the *.h extension). Then you have to declare std namespace, which can be done in several ways [code] #include <iostream> using namespace std; [/code] or like this: [code] #include <iostream> using std::cout; [/code] or like this [code] #include <iostream> int main() { std::cout …

Member Avatar for Ancient Dragon
0
88
Member Avatar for jbocker34
Member Avatar for risa

There are hundreds of reasons you get that problem, so its impossible for us to give you much more info without seeing the code. Try commenting out large portions of the program until the crash no longer happens, that way you can narrow down your search for the problem. Look …

Member Avatar for risa
0
404
Member Avatar for darren2005

I hope you realize that changing environment variables in a program is not permanent and good only as long as the program is running. Just like *nix, any changes made will disappear when the program stops.

Member Avatar for darren2005
0
578
Member Avatar for minas1

>>if((__int64)MAX_NUM % i == 0) That will result in only ONE int being pushed back onto the vector. You could save alot of processing time by just this: [icode]ints.push_back(MAX_NUM);[/icode]

Member Avatar for Alex Edwards
0
127
Member Avatar for panpanf

[URL="http://www.drdos.net/"]dr dos[/URL]. I don't know what you mean by "small", but its not a gui, which takes out a lot of bload in operating systems such as *nix and MS-Windows.

Member Avatar for MosaicFuneral
0
81
Member Avatar for insertnamehere8

when using character arrays the == operator does not compare string content but string addresses, so it will never work. You need to call strcmp() which returns 0 if the two strings are exactly the same.[icode]if( strcmp(name[i], "Jack Danial" == 0) [/icode] . strcmp() is case sensitive, meaning "Jack" is …

Member Avatar for insertnamehere8
0
229
Member Avatar for midimatt

I suppose there are as many ways to design your program as there are people to program it. But if I were going to do it I would not put the menu in the Bank class at all but put it in the main() function. [code] int DisplayMenu(); const int …

Member Avatar for ithelp
0
145
Member Avatar for Kira71

It would be helpful to tell us the functions that are giving you problems. I'm not going to read all that code to try and guess what you want.

Member Avatar for Kira71
0
125
Member Avatar for anny**

WTF??? I have no idea what that question is asking ????? Are you sure you quoted the problem correctly and accurately?

Member Avatar for MosaicFuneral
0
99
Member Avatar for CodeBoy101

You don't -- console programs do not have resources so its not possible to change an icon that doesn't exist.

Member Avatar for kiwihaha
0
12K
Member Avatar for ioclick

You also need to get out of that chair and walk around often to keep your ass from filling out that chain! As the months go by your ass will get broader and broader.

Member Avatar for GrimJack
0
150
Member Avatar for mybluehair

don't. Head files only contains class declarations, defines, typedefs, and function prototypes. Have you notices that your program contains a lot of duplicate code? You can use a loop and arrrays to chop down the size of your program to just a few lines [code] string answer; int stopped = …

Member Avatar for MosaicFuneral
0
92
Member Avatar for Ormick

How about the win32 api function [URL="http://msdn.microsoft.com/en-us/library/ms712879.aspx"]PlaySound()[/URL] I have not attempted to generate a wave file, but if I did I would probably start [URL="http://www.google.com/search?hl=en&q=how+to+generate+wave+files&aq=f&oq="]here[/URL]

Member Avatar for Ormick
0
95
Member Avatar for jesseb07

you don't need a loop. Just multiplication and the mod operator will do it [code] int main() { double n = 123.45; int x = (int)(n * 100); x = x % 100; cout << x << "\n"; } [/code]

Member Avatar for jesseb07
0
273
Member Avatar for Church

Yes. You will find some examples [URL="http://www.codexxi.com/"]here[/URL], though I presume you can find them in hundreds of other places too.

Member Avatar for Ancient Dragon
0
68
Member Avatar for LincolnGurl

What gives you the impression that creating such a macro would be more efficient than without it? Obviously each compiler might do it differently, but if you look at the disassembled code for VC++ 2008 Express compiled for Debug all the compiler has to do is push the address of …

Member Avatar for LincolnGurl
0
305
Member Avatar for Puliver

Have you tried replacing FILE with fstream and replace malloc()/free() with new/deleteo[] ? See example program [URL="http://www.cplusplus.com/reference/iostream/istream/read.html"]here [/URL] Then, of course, replace fputs() with cout statements.

Member Avatar for Puliver
0
474
Member Avatar for bemo55

line 14 is wrong -- in the format string replace the comma with a space like this: [icode]scanf("%d %d", &base, &exponent);[/icode]

Member Avatar for bemo55
0
528
Member Avatar for jlatorre80

>>Can someone please tell me whats wrong with my code Weeeeellll, since you didn't post your code and I can't see your monitor from where I sit, the answer is obviously NO.

Member Avatar for MosaicFuneral
0
117
Member Avatar for Trekker182

Since there are hyphens in the string that function won't work because it will return false on detecting the first hyphen. You need to check that the string consists of 3 digits, hyphen, 2 digits, hyphen, and 4 digits, and that all the digits are not zero. Or you could …

Member Avatar for Trekker182
0
833
Member Avatar for Tchevalier

Before doing anything you have to know what the data file looks like. Can you post a few lines from it? Or just attach it to your post.

Member Avatar for VernonDozier
0
201
Member Avatar for afg_91320

>>but how do i write a statement that will store the data for the farenehit and centigrade? Here is how to access farenheight -- you should be able to figure out the other yourself. [icode]data.temperature.farenheit = 32;[/icode] As for the second part -- do you know how to write a …

Member Avatar for Ancient Dragon
0
396
Member Avatar for AcidG3rm5

The function prototype in the class does not have the same identical type parameters as in the implementation code. Change go [icode]void getDate(int&, string& ,int&);[/icode]

Member Avatar for Nick Evan
0
209
Member Avatar for f.ben.isaac

Multi-processing (siultaneous processing) does not truely exist on a computer with a single processor. Only one thread at a time can run. The processor switches threads so quickly that it only appears to the human eye that they are all running at the same time. Its impossible for a single …

Member Avatar for f.ben.isaac
0
83
Member Avatar for The Dude

[QUOTE=christina>you;381595]My total score was 565,349. I suck. :([/QUOTE] Wow! that was really fast :) Mine was 242K. But did you see the scores of the top 50 ? #1 was nearly 3 million :-O

Member Avatar for The Dude
2
221
Member Avatar for mjfall01

This is an assignment to demonstrate your knowledge of c++ classes. If you know absolutely nothing about them then you probably have not paid attention in class and/or bothered to study your textbook. Start out by defining a class with the attributes and methods mentioned in the assignment. Here is …

Member Avatar for William Hemsworth
0
269
Member Avatar for replic

I assume you are talking about MS-Windows operating systems. If not, then ignore this. maybe the example in [URL="http://www.codeguru.com/cpp/w-p/system/hardwareinformation/article.php/c2883"]this link [/URL] and [URL="http://msdn.microsoft.com/en-us/library/aa385413(VS.85).aspx"]this[/URL] will help you. It shows you how to mount a network drive. If WNetAddConnection2() fails and returns ERROR_ALREADY_ASSIGNED then the drive is already mounted. Also make sure …

Member Avatar for replic
0
464
Member Avatar for ting_ting

post the error message(s) line 3: should be [icode]int main()[/icode] -- functions require a return type.

Member Avatar for Narue
0
137
Member Avatar for prushik

depends on how you want to use it. If you want to pass a pointer to a double as a parameter to some function that takes char* then typecasting might work, depending on what that function is going to do with it. Normally, however, you will have to convert it …

Member Avatar for Seta00
0
2K
Member Avatar for The Dude

I don't have a problem with it. We played cowboys & indians when I was little, and I never really shot anyone with a real gun. On the otherhand, children often try to imitate what they see on TV, and TV today has a lot more violence than it did …

Member Avatar for hughv
0
277
Member Avatar for mrajasekaran_it

Hi -- what do you mean by "make a project in IT" ? Please post questions in the appropriate DaniWeb board.

Member Avatar for Ancient Dragon
0
22
Member Avatar for The Dude

That was tried before in the Carter administration and didn't work out very well. Reagan repealed it. BTW gas has been cut in half what it was a year ago -- it was $2.05/gallon here yesterday.

Member Avatar for GrimJack
0
169
Member Avatar for Ancient Dragon

I don't know where this came from, but thought it funny. [quote] Operator: Thank you for calling Pizza Hut. May I have your national ID number? Customer: Hi, I'd like to place an order. Operator: I must have your NIDN first, sir. Customer: My National ID Number, yeah, hold on, …

Member Avatar for Alex Edwards
1
211
Member Avatar for scjohnny
Member Avatar for scjohnny
0
109
Member Avatar for asilter

Compiled without errors/warnings with my compiler -- VC++ 2005 Express as both a C and a C++ program. What compiler are you using ? Does your compiler complain about the below ? [code] char* foo1() { return (char *)malloc(255); } int foo(void **vpSec00) { *vpSec00 = foo1(); return 0; } …

Member Avatar for SphinCorp
0
301
Member Avatar for Liszt

because you have recursive includes -- form3.h includes form4.h which includes form3.h ... Not a good idea, as you have found out.

Member Avatar for Liszt
0
119
Member Avatar for gil_mo

Are you adding those resources all at one time? Try calling [URL="http://msdn.microsoft.com/en-us/library/ms648049.aspx"]EndUpdateResource[/URL]() and see if that fixes your problem.

Member Avatar for gil_mo
0
139
Member Avatar for The Dude

I didn't get a score -- just this message: [quote]You are a hardheaded realist who sees the world pretty much as it is. No room for fantasy--you're practical to a fault. You might be seen as a cold fish when it comes to amorous notions. You're "thing oriented" rather than …

Member Avatar for Obeledeveloper
0
139
Member Avatar for msundastud
Re: help

[URL="http://en.wikipedia.org/wiki/Quartiles"][quote]In descriptive statistics, a quartile is any of the three values which divide the sorted data set into four equal parts, so that each part represents one fourth of the sampled population.[/quote][/URL] With that definition, all you have to do is sort the array, then use the array element that …

Member Avatar for msundastud
0
109
Member Avatar for amit vaya

The most common method is [URL="http://www.google.com/search?hl=en&q=odbc+tutorial&aq=f&oq="]ODBC[/URL] or [URL="http://tangentsoft.net/mysql++/"]MySql++[/URL]

Member Avatar for Ancient Dragon
0
24
Member Avatar for asifjavaid
Member Avatar for gayatri.saha

This is homework assignment and gayatri apparently wants us to do it for him/her. The code you posted will have undefined behavior. [icode]cube(++x)[/icode] could result in different answers on different compilers, so the ourput can not be determined exactly.

Member Avatar for WaltP
1
109
Member Avatar for Ancient Dragon

If you want to follow the election results tonight you can visit [url]http://election.cbsnews.com/election2008/[/url] Right now Obama has 67% of the votes that have been counted.

Member Avatar for itdupuis
0
357
Member Avatar for OreWaChoOtakuDa

[QUOTE=OreWaChoOtakuDa;397957]well im 17 n she is 16[/QUOTE] She's jailbate -- don't let your little head rule your big head. Forget her and find someone closer to home (and a little older).

Member Avatar for Kokimail
0
1K
Member Avatar for GrimJack

How in the world could anyone look at that picture and NOT notice her dress ???? Someone on talk radio yesterday mentioned that Michelle will probably set another fashion trend just like Jackie K. did in her day. But somehow I doubt it. Jackie was a real knock-out and true …

Member Avatar for christina>you
0
192
Member Avatar for meddlepal

Node is defined within class AVLTree and only has scope within that class, so in order to use it as a parameter you need to declare its scope. Try this: [icode]void AVLTree<T>::levelorder(AVLTree::ptr& root)[/icode]

Member Avatar for meddlepal
0
191

The End.