15,300 Posted Topics
Re: Aren't those manuals normally reserved for teachers and educational instutions??? | |
Re: You would have to write a TSR (terminate-and-stay-resident), and I'm not sure that cmd.exe supports that like it did with MS-DOS Version 6.X and earlier. I thought you might use one of the [URL="http://msdn2.microsoft.com/en-us/library/ms997537.aspx"]win32 hooks[/URL], but probably not from what I read. Possibly a [URL="http://support.microsoft.com/kb/253671"]device driver[/URL] or a [URL="http://msdn2.microsoft.com/en-us/library/d56de412(VS.80).aspx"]windows service … | |
Re: My guess is that you should not be calling that function directly. Call [URL="http://msdn.microsoft.com/en-us/library/ms534893.aspx"]InvalidateRect[/URL]() instead, and let it call the redraw function. | |
Re: >>What ink is used to print dollar Green. | |
Re: [URL="http://letmegooglethatforyou.com/?q=beautify+xml+file"]try one of these programs[/URL] | |
Re: Welcome to DaniWeb. Yes there are quite a few people here who can help you out. Just ask all the questions you want in our [URL="http://www.daniweb.com/forums/forum16.html"]Databases boards.[/URL] | |
Re: Welcome to DaniWeb. Of course c++ is heavily involved in statistics -- afterall you don't think those professors with Ph.D.'s do all those calculations by pencil & paper :) | |
Re: It would appear that initialization of arrays like that is not allowed. | |
Re: The code looks ok, can you post a few lines of that file? | |
Re: I hope he has great musical skills -- he could write the world's first piano concharto that requires 12 fingers! | |
Re: 1) your implementation file is missing the class constructor implementation. 2) your class is missing a default constructor as required by the assignment # 2a. 3) Post the attempts you have made to write main() and test the various functions. I would suggest you write a menu something like this: … | |
Re: what part do you not understand? | |
Re: why would you create such a stupid poll in this thread?????? | |
| |
Re: Don't just post your assignment here because we could care less about it. Post what you have done to write that program and what questions do you have about it. We are not going to write it for you but we will help YOU write it if you ask questions. | |
Re: why use one of the dos commands? you can unhide them with windows explorer. Just select view options and check the box to show all files. But if you insist -- type <c:\ help atrtrib> [quote] D:\Users\AncientDragon>help attrib Displays or changes file attributes. ATTRIB [+R | -R] [+A | -A … | |
Re: [QUOTE=snakeplyr;793554] Please keep negative comments off because I get enough of them from my brother who doesn't think I can do it. : ( (But if they're necessary go for it)[/QUOTE] I agree with your brother. GET A JOB AND DON'T BE SO LAZY, then you can work this hobby … | |
Re: On my compiler it is 1 byte because that is the minimum size of any object. There is no such thing as an object that does not take up any space. [code] #include <iostream> using namespace std; struct x { }; int main() { cout << "sizeof(x) = " << … | |
Re: >>P1OUT &= ~ 0x01 I suspect P1OUT is an LED port address, and as the comment says it is turning off the bit. | |
Re: your compiler supports several different processor types, depending on which hardware manufactures SDK you install. You will have to port that assembly code to each of those processors that you want to support. Salem's suggestion is best -- port the assembly code to C or C++ and you won't have … | |
Re: >>lint 9: *randno[i][j], That is not leagal way to declare an array because i and j must be constants. What you have are two uninitialized integers. If you want to declare a two-dimensional array of integers but you don't know how many rows and columns then declare it with a … | |
Re: or something like this [code] bool done = false; while( !done ) { //Your code before the if. if (cy>0 && cm>0 && cd>0 && by>0 && bm>0 && bd>0) { done = true; } else { clrscr(); printf("Enter correct date.") } } [/code] | |
Re: Welcome to DaniWeb. Glad to see another retired military person here :) I retired from USAF in 1985. | |
Re: you need to tell cout how many decimals you want it to print: example [code] #include <iostream> #include <iomanip> using namespace std; int main() { double x = 12345.7890; cout << fixed << setprecision(2) << x << "\n"; cout << fixed << setprecision(3) << x << "\n"; cout << fixed … | |
Re: system() is portable -- the commands it execute are not. There are no portable ways to clear the screen. You might have to do something like this, where each compiler for the target os defines one of the symbols listed in the code below. [code] #ifdef _UNIX_ system("clear"); #elif def … | |
Re: [QUOTE=6pandn21;792891]Thank you for clarifying. I was taken aback by the accusation of being a spammer. :-)[/QUOTE] Don't worry about it -- if you were a spammer you would have been banned. | |
Re: start here [code] #include <iostream> int main() { // put your code here } [/code] | |
Re: what computer language? Or can you use anything you wish? | |
Re: No -- that code is MS-Windows specific. ncurses for MS-Windows only works with console programs, not GUI programs. If you want a gui program that is portable to both *nix and windows then don't use ncurses but use something like wxWidgets (there are others too) | |
I found this when googling for the lyracs of Bob Hope thream song. Posting it here because I enjoyed this video and thought you might too. [url]http://www.youtube.com/watch?v=xWHf_vYZzQ8[/url] | |
Re: static class member data objects have to be declared outside the class like this: You could do it without the pointers as you posted but that will consume a bit more memory. [code] // put this in a header file class DayOfYear { protected: static char* month[12]; public: DayOfYear() {}; … | |
Re: >>How would I compile a DLL, and define/use its exports? [URL="http://www.cygwin.com/cygwin-ug-net/dll.html"]Maybe this will help you[/URL] | |
Re: I can't help you with your problem, but you don't need that while loop [icode]f_in.read(speech, 10000 * sizeof(short)); [/icode] But of course there is no guarentee that sizeof(short) will be 2. It might be on your system but if you intend to port that porgram to another os then the … | |
Re: Welcome to DaniWeb -- we are pleased that you found us useful, and now you can actively participage in the discussions. | |
Re: probably becuase there are still keys in the keyboard buffer. And since you are writinig a c++ program why aren't you using cin and cout? There is a sticky thread at the top of this c++ board that explains how to flush the input buffer of all keys -- you … | |
Re: line 9: zPtr just contains some random address value, so incrementing on line 9 is meaningless. line 18: thats just wrong -- use either *zPtr or zPtr[i], but not both at the same time. | |
Just now the Illinois senate voted 59-0 to sustain the impeachment of Blagojevich and remove him from office. The Lt Gov will assume that office today. Hurray! Hurray! | |
Re: your link doesn't work [quote]Error - The file could not be found. Please check the download link[/quote] | |
Re: what operating system? If MS-Windows you are downloading the wrong file -- download the *.zip file at the end of the list in the link that Niek posted in post #2 above. | |
Re: Had you terminated the strings with "\n" instead of "\0" then you could have simply called fgets() to read the strings back into memory. | |
Re: [quote] I am 14% Metal Head. Sorry kid, go watch some more TRL. And stay out of the mosh pit. You'll only get yourself hurt. You, my friend, are a lamer. A RUSTY BOLT, in the metal world. A -real- metal head would kick yer ass.[/quote] Guess I didn't do … | |
Re: Under MS-Windows the correct way to do it is to save the UserName and Password in the registry -- and encrypt the password because the registry can be easily viewed by anyone. Its not very difficult to read/write to the registry, but [URL="http://www.developer.com/net/net/article.php/615031"]here[/URL] is a c++ class if you want … | |
Re: OMG that has to be an extremely sloooooow program. A more efficient way would be to keep the times in the vectorl so that they can easily be referenced, maybe something like this: [code] struct files { std::string filename; FILETIME tm; }; vector<files> list; [/code] line 18: are you sure … | |
Re: answer is [URL="http://forums.digitalpoint.com/showthread.php?t=1204466"]here[/URL] | |
Re: I don't hate the functions in conio.h, I just whish they had become part of the C standards so that they could be used more frequently. kbhit() and getch() are very very useful functions, but perhaps they never became part of the standards is because they would be difficult at … | |
Re: [URL="http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostXMLDiscussion"]boost xml parser[/URL]. I never used it so I can't answer any questions about it. |
The End.