15,300 Posted Topics
Re: >>Thx but didnt find if u have then send the link [URL="http://www.daniweb.com/forums/thread81459.html"]Here[/URL] is just one of severl threads. Look around on the C board and you will find others | |
Re: Also try reading the useful information in [URL="http://www.daniweb.com/forums/thread80402.html"]this thread[/URL] | |
Re: I think thekashyap is right about uninitialized variables -- add a constructor to the node_type class that initializes the variables to 0. | |
Re: I don't think there is such a thing as pixel brightness -- its eather color X or its color Y. There are hundreds of different shades of each color but I don't think they all have the same brightness unlike the old ancient MS-DOS color scheme. But I could be … | |
Re: you could use some os-specific api calls such as Sleep()(ms-Windows) or sleep() (*nix) in a loop to delay a bit then check for keyboard hit. | |
Re: 1. Don't know the first question. 2. Functions must often be run hundreds or even thousands of times in order to get measureable time. The clock() function is in milliseconds and usually sufficient. So, to get a measurable amount of time [code] start timer run the function 1,000 times stop … | |
Re: you don't start debugging in the dll itself, but start with a host program because the host program calls funciton(s) in the dll as if they were actually part of the host program. If you want to test the functions in the dll write a test host program that just … | |
Re: You can't do any of those things with system() function. You need to use more os-specific api calls. MS-Windows use CreateProcess(), don't know about *nix. | |
Re: The string of characters is accessed just like any other array [code] std::string word = "Hello"; char oneChar = word[0]; [/code] Or in the above replace the word[0] with a loop counter such as word[i]. | |
Re: You are using an editor of somekind, such as Notepad to write your program. Just copy it to the clipboard then paste it into DaniWeb's edit box, and please surround it with code tags. | |
Re: Since you want the user to enter either 'Y' or 'N' it must be entered as a string, not a bool. You should redeclare [b]choice[/b] as a std::string because data type [b]bool[/b] only accepts a 0 or 1. | |
Re: That error means the linker can not find a library. Check your computer file system to see if it exists. It has nothing to do with the code you posted. | |
Re: [QUOTE=gajmp;374635]We have ration for document and development. but we dnt hv any ratio for development and maintenance. As per my knowledge we cant define any ratio for this.[/QUOTE] And neither can anyone else. I have been developing for over 25 years and Narue is right -- if you want a … | |
Re: Reinstall the os -- you DO have the original CD don't you? When you start the cd it will probably ask you if you want to repair the current installation. | |
Re: Diablo II (or any other version of Diablo for that matter) by Blizzard can not be played on Vista os -- I tried it and it doesn't work :( . There are a lot of old games that are not compatible with Vista. If the mouse on your computer works … ![]() | |
Did a search for "arrays" and selected "In Code Snippets" then pressed Search it changed the selection to "Entire Site" and produced a list of 3 pages. But it will display only the first page even when I select one of the other two pages. No matter what I do … | |
Re: Welcome to DaniWeb. Why do you dislike your school so much ? [URL="http://en.wikipedia.org/wiki/Riga"]Riga looks like a grand city[/URL]. If you have problems with QBASIC then post questions in the Basic Software Development board and people will help you. | |
Re: [quote] The 85 million-year-old creature was 35 times heavier than other known similar species, and is thought to have had a beak and sporadic patches of feathers, according to a paper to be released in UK science journal Nature on Thursday[/quote] Well so much for that article. Everyone knows the … | |
Re: [QUOTE=TheNNS;387852]ok, I understand. How many people here would like a forum like that? Yeah, I'm a teenager too.[/QUOTE] I think I would and I have not been a teen-ager for many years now. :) My grandon is a teenager -- does that count :* | |
Re: Here is the correction [inlinecode] output.open(fileName.c_str());[/inlinecode] | |
Re: Look at the prototype of that Draw() function in the header file -- it is either missing or contains a different set of parameters. | |
Re: Yes, that works. There are a couple other ways to accomplish it [code=cplusplus] int main() { Album collection[5] = { {"Private Investigations","Dire Straits", {"Sultans of Swing",2,"Romeo and Juliet ",4, "Money for Nothing ",9,"Walk of Life ",10}} }; [/code] You can also use vector instead of c-style arrays. | |
Re: [QUOTE=ghadahelal;389104]Hallo, i have a programm, it works without errors[/quote] [quote], the only problem i have is that the .exe file works for one line and then it closes from itself[/quote] Those two statements contradict each other. Apparently the first statement is false. Post your program so we can see and … | |
Re: don't use c style file i/o and strings in c++ programs. Yes its valid to do that but c++ file i/o and c++ string class are generally easier to use and makes your program less buggy. c++ vectors and lists are the containers that will make it almost trivel to … | |
Re: Don't bother. Use the 5 gig drive as a door stop and buy a 350 gig drive. >>I want to partition my Hard disk (C:) into 2 or more pieces. Please tell me how can i do that without purchasing a Partition Manager Software. Reformat, repartition, then reinstall the operating … | |
Re: No. see the comments at the top of [URL="http://www.koders.com/c/fidF852A50283347FECA239314137A928136E6B3E3B.aspx"]this link[/URL] | |
Re: one way is to buy a commercial profiler program :) But the easiest way is to call clock() to get the current time before starting the algorithm, then call it again after the algorithm is finished. The difference is the execution time. But be warned that the algorithm might execute … | |
Re: you are making it too difficult! All you have to do is find the last character, save it to another variable (or just print it), replace it with a 0 to truncate the string, then print the rest of the string as you normally would. There are no loops needed. | |
Re: What compiler are you using because mine gives a couple errors about using uninitialized variables which you need to fix before attempting to run that program. | |
Re: 1. Open the file for read, call fseek() to seek to the end of the file, then call ftell() to get the length of the file. Alternatively you can get the file length by calling stat() or fstat(). 2. Allocate a buffer pointer to the file size obtained in #1, … | |
Re: Interesting thread even though it is a few years old. I've had similar thoughts about deleting old unused accounts and now I know why they aren't deleted (admin nightmare) :ooh: But I would think the hard drive would eventually become chucked full of data about old obsolete accounts. | |
Re: There are two versions of MessageBox -- one for UNICODE (the W at the end) and one for single-byte languages such as English (and has an A at the end). The error message makes it obvious you are compiling your program for UNICODE with requires wchar_t* instead of char* as … | |
Re: sorry I don't know MIPS assembly, but if a register contains a single digit then simply add '0' to it [code] mov ax,5 ; a numeric digit in register ax add ax,'0' ; make the digit printable ;; now print the digit in register ax [/code] | |
Re: you can think our liberal friends, such as the ACLU, for that. God forbid cartoons show any kind of violence because it will destroy our children's minds :@ I've been watching them for the past 60 years and my mind is perfectly ok, thank you very much. My children are … | |
Re: [QUOTE=MattEvans;384112].. does daniweb even have a 'bad word' filter.. [/QUOTE] Yes there is such a filter. Not all naughty words are caught though. See the Rules for more informatio. | |
![]() | Re: my guess is the screen is not 24x79. Try increasing the value of dx to test that out unless, of course, you have already thought of that and tried it. ![]() |
Re: [URL="http://www.math.grinnell.edu/~stone/courses/fundamentals/IEEE-reals.html"]Here[/URL] is a good explaination. doubles have greater precision than floats, so if you view the raw value of 0.7 a double might be 0.7000001 while a float might be 0.7000 | |
Re: the study of psychology is chucked full of useless facts. just read a phych 101 book! | |
Re: Depends on how many copies of the cd you think they can sell. Just a dozen or so, hundreds, thousands, or millions? The subject you described is something that will appeal only to a rather small segment of society. At $15.00/CD you won't get much of a royalty so I … | |
Re: [QUOTE=Aia;385472]Actually, in many places in Spain people frown upon you if you walk on the grass. They put signs on the grass saying: Stay off the grass!.[/QUOTE] [QUOTE=sk8ndestroy14;385560]Some people do that here. The people that spend day and night to make their yards look good. It's funny that some people … | |
Re: function perkey() is using an unitilized pointer [b]ptr[/b] Is the intent of that function to copy the contents of one string into another and return the pointer to the new string? Like strcpy() ? If so, then you need to call malloc() first to allocate memory for the new string. … | |
Re: [QUOTE=bondi007;385276]it runs ok just like my xp did but is 1gig good fro game for the vista cheers bondi 007[/QUOTE] Depends on the game -- Chess Titans, Solitaire, Hearts, etc all run ok on 1 gig. I also like Silverfall which was horribly slow so I bought another gig. It … | |
Re: what's the value of _WIN32_IE ? Most likely your program did not define it. | |
Re: I didn't have to bother reading it -- Josh said it all that needs to be said. There are people who would probably blaim Bush for Christ's second coming. | |
Re: maybe you should contact BumbleBee. Also possible that VC++ 6.0 is too old. You might try a more current compiler such as the free VC++ 2005 Express. ![]() |
The End.