15,300 Posted Topics
Re: 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 :) | |
Re: 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. | |
Re: you could make one class derived from the other [code] class A { ... }; class B : public A { ... }; [/code] | |
Re: 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 … | |
Re: why don't you ask [URL="http://www.nvidia.com/page/support.html"]them[/URL] | |
Re: 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 … | |
Re: 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. | |
Re: >>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] | |
Re: [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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: WTF??? I have no idea what that question is asking ????? Are you sure you quoted the problem correctly and accurately? | |
Re: You don't -- console programs do not have resources so its not possible to change an icon that doesn't exist. | |
Re: 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. | |
Re: 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 = … | |
Re: 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] | |
Re: 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] | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: line 14 is wrong -- in the format string replace the comma with a space like this: [icode]scanf("%d %d", &base, &exponent);[/icode] | |
Re: >>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. | |
Re: 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 … | |
Re: 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. | |
Re: >>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 … | |
Re: 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] | |
Re: 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 … | |
Re: [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 | |
Re: 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 … | |
Re: 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 … | |
Re: post the error message(s) line 3: should be [icode]int main()[/icode] -- functions require a return type. | |
Re: 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 … | |
Re: 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 … | |
Re: Hi -- what do you mean by "make a project in IT" ? Please post questions in the appropriate DaniWeb board. | |
Re: 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. | |
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, … | |
Re: do you mean [URL="http://www.microsoft.com/express/vc/"]this compiler[/URL] ? | |
Re: 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; } … | |
Re: because you have recursive includes -- form3.h includes form4.h which includes form3.h ... Not a good idea, as you have found out. | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
Re: 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] | |
Re: Whose class is Cryptographer ? Is it registered ? | |
Re: 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. | |
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. | |
Re: [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). | |
Re: 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 … | |
Re: 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] |
The End.