868 Posted Topics
Re: What is NFA and DFA? By the way, [URL="http://www.daniweb.com/techtalkforums/thread26061.html"]here[/URL] are some sample answers you may get. | |
Is it possible to read data from a binary file to a C++ class using [inlineCODE]istream::read[/inlineCODE]? I know it can be done for structures, but I couldnt do it for a class. [Edit] Want code? [CODE]#include <iostream> #include <fstream> class BITMAPFILEHEADER { private: char type[ 2 ]; // Magic identifier … | |
Re: [quote=Tauren;269612]Also can u find me a book on it at amazon or barnes and nobles Thank you[/quote] You seem to be a newbie without any programming experience whatsoever. Go and learn to crawl before trying to run. But what the heck. Go and get burnt. [URL="http://www.amazon.com/Operating-Systems-Implementation-Prentice-Software/dp/0131429388"]Here[/URL] is a good book … | |
Re: [URL="http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies"]Read this[/URL] well . | |
Re: Try using [code]int option;[/code] | |
| |
Re: In case you didn't notice, the fellow wanted the code in C. | |
Re: [quote=platinn;391596]Hello [/quote] Hello [quote=platinn;391596] Is this normal? [/quote] No. Errors are not normal. [quote=platinn;391596] Or how can i prevent this?[/quote] By telling the linker where your library files are. There is a option in your project settings to specify the directories to search for library files. Use that. [quote=platinn;391596] Thanx … | |
Re: Since you write the code according to the psuedocode, the pseudocode should reflect your code. So post code. Maybe then we can show you how to write a psuedocode. But it will be very unlikely that someone will do it for you. | |
Re: Well I took a look at your problem. Regarding the bisection-method looks as if you dont have an idea with what you are doing. I will give you a brief algorithm here and try to see if you can understand it and implement it. Eq is [INLINECODE]x[ 1 + k1*n1/(1 … | |
Re: [quote=Ancient Dragon;272754]I tried it again this morning with IE7 -- same results. had to reboot my computer again.[/quote] Judging from a previous thread that you had issues with some other movie file, I think it is a problem with media player or the codecs. Try [URL="http://portableapps.com/apps/music_video/vlc_portable"]VLC Media player portable[/URL], it … | |
Re: [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]So?[/URL] | |
Re: Um, I am a bit lost in this. 1. Offshore Outsourcing. 2. Giving More Money to Those Who've Wasted it Already. 3. Providing Tax Breaks to Those Who Aren't Paying Taxes. 4. Rewarding Greed. How come only the open source industry do not fall suspect under the above conditions? You … | |
Re: Gallieneus, what are you using? DOS? Or Vista on a computer meant for DOS? Don't say Vista or XP. If the hardware specs are met, they never crash. At least they have not crashed on me. And not for anyone who I know use Vista on machines with suitable specs. … | |
Re: I called a few friends, and since they didn't experience it, for a moment, I thought my computer was compromised. So, disconnected from the internet, did a virus scan and installed a firewall and another virus guard just in case. Only when I saw the BBC headline about the Google … | |
Re: What is so special of having an open version of Windows? Isn't the already available versions of Linux enough? I mean everyone says that OpenOffice is superior to Word, Firefox to IE, Ubuntu to Vista.. and so on, so why would people need the source of a inferior product when … | |
Re: With a massively publicized almost childish attempt to claim the record for the most downloaded software ever, I don't think that all these downloads are unique. I tried using the upgrade facility of the browser, but the connection timed out from the server for 3 attempts, but when I tried … | |
Re: My line is LOL. Or is that only one line? I am too drunk to tell. Just yesterday I was thinking of changing back to IE, but decided against because then I would lose the use of Rikai Chan which I am using to translate Japanese to English and Vice … | |
Re: There may be limitations in the technology at first, but I think that touch screen PCs is the way to go. I read in another blog in Daniweb, that the author does not see the touch screen replacing the Keyboard, and I agree. But I think that this will certainly … | |
Re: In my opinion, it is Yang who will be feeling the heat. Ballmer has said in his letter to Yang that he will not go ahead with the hostile takeover threat. Stocks of Yahoo rose in anticipation of a takeover from Microsoft. Now that Microsoft has walked away, it will … | |
Re: Jaberwacky > Who wrote one of your favorite books? Me > Hemingway. Jaberwacky >Nope. Tolkien wrote the Lord of the Rings. Me> So? Jaberwacky> Olut. Me > :eek: | |
Re: Although the 5GB limit applies to users in the UK, Canada and US ^^; , the service looks good to me. The storage, notes and calender features are awesome. | |
[COLOR=Red][B]This blog entry is regarding a registry hack for Windows XP. Be advised that twiddling with the registry requires care, and use the information here at your own risk. [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;322756"]Backing up[/URL] the registry before proceeding is adviced. [/B][/COLOR] This is a based on the [URL="http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm"]Add Command Prompt Here[/URL] tweak that … | |
Re: Go through the code given in this thread and try writing it yourself. If you encounter problems post them in a new thread. If necessary post a link to this thread also). Nobody hands out free lunch here. | |
Re: stacking is not something unexpected or errornous in the socket API. the TCP IP protocol only guarantees that the data will reach the destination at the sent order. It may get sent in one try or multiple tries.The problem here is that you are using a 1024 size buffer. If … | |
Re: I maybe wrong, but I remember reading in a Visual Studio 6.0 book that the best resolution possible in it is 1 millisecond. So if that is the case you wont be able to measure 0.00045 seconds. It will come as 0. PS. Isn't the greeting "Respected Sir/madam" a bit … | |
Re: For one thing the arrays go out of bounds when r = 0 or c = 0 or r = R or c = C. [code] for( r = 0 ; r < R; r++ ) { for(c=0;c<C;c++) { // gradients gx and gy (sobel) gx[r][c]=(imag[r-1][c-1]*1)+(imag[r-1][c]*0)+(imag[r-1][c+1]*-1)+(imag[r][c-1]*2)+(imag[r][c]*0)+(imag[r][c+1]*-2)+(imag[r+1][c-1]*1)+(imag[r+1][c]*0)+(imag[r+1][c+1]*-1); gy[r][c]=(imag[r-1][c-1]*1)+(imag[r-1][c]*2)+(imag[r-1][c+1]*1)+(imag[r][c-1]*0)+(imag[r][c]*0)+(imag[r][c+1]*0)+(imag[r+1][c-1]*-1)+(imag[r+1][c]*-2)+(imag[r+1][c+1]*-1); Vx[r][c]=0; Vy[r][c]=0; for(u=r-5;u<=r+5;u++) … | |
Re: Use the [strrchr function](http://www.cppreference.com/stdstring/strrchr.html) to search for the last occurrance of the backslash `''` character. If there is no match `strrchr` returns `NULL`, that means no path was returned in `szFile`, and all the contents of `szFile` is the filename. If there is a match, the contents from the starting … | |
Re: [quote=dustman;329244] My client is on wingoze[/quote] What is wingoze? Whatever it is, it may be an Operating system, and there should be a socket API for it. Look that up. | |
Re: The usual reason is that you are not including the library that provides the implementation of [inlinecode]pthread_create()[/inlinecode]. Check the documentation for [inlinecode]pthread_create()[/inlinecode]and find out the required library. Then check if that library is in the makefile's libraries section. | |
Re: [quote=Ancient Dragon;394719] [quote=josh](smoking!=[B]party [/B]animal)[/quote] That's wrong for two reasons 1. Humans are 100% animal, there's no "[B]partly[/B]" about it. [/quote]Either you are dyslexic or you ought to change your spectacles. Or I missed the joke. [quote=Ancient Dragon;394719] 2. I have never seen another creature on this planet who smoked. Humans … | |
Re: Do you have to calculate the averages line by line? or only once for all the numbers in the file? | |
Re: This part returns NULL. [code] hWnd = CreateWindowEx( (DWORD) dwExStyle, (LPCTSTR) lpClassName, (LPCTSTR) lpWindowName, (DWORD) dwStyle, (int) x, (int) y, (int) nWidth, (int) nHeight, (HWND) hWndParent, (HMENU) hMenu, (HINSTANCE) hProgInst, (LPVOID) lpParam); if ( hWnd == NULL ) { MessageBox(NULL, "CreateWindow Returned NULL", "Error", MB_OK ); return; } [/code] | |
Re: [URL="http://en.wikipedia.org/wiki/Densha_Otoko"]Densha otoko[/URL] remake? I guess that was the inspiration behind your nickname (Orewa Cho Otoko Da? ) | |
Re: You have missed a semicolon at the end of this line. [code=cpp]double gettestscores[/code] You can't get your program to run should mean compiler errors or link errors. Next time post the error or warning messages by the compiler if any. | |
Re: Try to compile this [URL="http://www.daniweb.com/techtalkforums/post187809-5.html"]snippet [/URL]and tell me if you have any problems. If that works, you could modify it to suit you. The #define switch should be used as it is. | |
Re: S Club 7 [I][B]:cheesy:[/B][/I] | |
Re: These are what i find annoying. Small quick reply box (and it having no code tag button ) Tab indents for code are too big People don't use code tags | |
Re: [quote=Tyreses;264441]A. The header file for standard winsock use [/quote] include <winsock.h> and link with ws2_32.lib [quote=Tyreses;264441] B. a helpfull tutorial on basic winsock client/listen string transfer? Help is much appreciated, thankyou.[/quote] [URL="http://johnnie.jerrata.com/winsocktutorial/"]Jhonny's Tutorial[/URL] [URL="http://beej.us/guide/bgnet/"]Beej's Guide[/URL] | |
Re: [quote=joshSCH;343883]damn 30 second man, your starting to piss me off.. you have to reply to everything I say.. and it's always some dumbass remark again. Yes, I do know what nihilism is.. it is the belief in NOTHING. I believe there is NO purpose to life whatsoever, and no proof … | |
Re: [quote=Miles Archer]Re: Syntax.... Maybe we can answer your question and mine at the same time. I am a total neophyte, but I am toying with a program that has a caveat, [I]"When using VS2005, MS is pushing wide strings. Convert char stuff to WCHAR and put an L in front … | |
What is the tab width (number of spaces indented for a tab) within code tags? Is it 8? Is it possible to change it to 4? Since the code is wrapped for lines with length less than 80 characters, I think that it is a waste of space. | |
Re: Not me. Can see it just fine. However another site I frequent gives the same message. Wonder what/who this godaddy is... | |
Re: I think I read somewhere that to find out if a number is a prime, you dont have to check dividing upto n-1. Upto squareroot(n) is enough. check it out. | |
Re: Change [icode]Deck *dk; = new Deck;[/icode] in the [ICODE]main()[/ICODE] function To [icode]Deck *dk = new Deck;[/icode] | |
Re: Either you didn't know that you should use braces, or you forgot. [code=cpp] for (int i=0;i<rollsize;i++) { switch (rolls[i]) { // Forgot this case 3:allresults[0] = allresults [0]+1; break; case 4:allresults[1] = allresults [1]+1; break; /* ......... */ case 17:allresults[14] = allresults [14]+1; break; case 18:allresults[15] = allresults [15]+1; break; … |
The End.