868 Posted Topics
Re: Spelling mistake. The correct one should be [inlinecode]iostream[/inlinecode] | |
Re: How about using [inlinecode]grid[ 0 ] = 'o';[/inlinecode] | |
Re: Yes. I agree with Anonymusius. We only help you correct the problem. For that you must. 1. Properly format the code. If you look at the code you posted. It is the ugliest code that I have ever seen. The least you can do is properly post it by changing … | |
Re: Without knowing the actual socket API that you are using, or the kind of socket that you are using, it is difficult to pin point the exact error. But most probably like the above replies say, a memory leak seems to be the best guess. The tools that you can … | |
Re: [quote=Tales;336357]I have a little annoying problem and I really need help. I need to convert a char* to TCHAR* and I can't... I have tried everything and nothing seems to help... TCHAR text1[ ] = ""; char *key; key[0] = 'a'; key[1] = '\0'; text1 = _T(key); //Does not work … | |
Re: [QUOTE] I need to use [I]emacs[/I] to compose an algorithm for counting the number of lines and words in a text file. The words may comprise of any printing characters and are delimited by spaces and/or tabs. Also the presence of any control character other than tab, eol (end-of-line), or … | |
Re: A WORD is 16 bits. So both the right and left channels have a range from 0x0000 to 0xFFFF. To make a DWORD, you have to use the [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmacros/makelong.asp"]MAKELONG[/URL] macro. WORD leftChannel = 0x0010 ; WORD rightChannel = 0x00FF ; Do [code]DWORD bothChannels= MAKELONG ( leftChannel , rightChannel );[/code] and … | |
Re: If you had compile errors, post the code and the compile errors. Otherwise you will only get generalized answers, saying this or that may be the problem. | |
Re: First of all, remember to post the relevant error messages when you have a problem. Compiling your program under VC 2003.Net gave me the following error messages. [code] perfect_nos.cpp(21) : error C2660: 'perfTest' : function does not take 0 arguments perfect_nos.cpp(22) : error C2660: 'factorPrint' : function does not take … | |
Re: [inlinecode]argv[ 0][/inlinecode] is the program name. You can see the contents by using this line [code]printf( "%s", argv[ 0 ] );[/code] To get the first argument, and convert it to an integer, try this code. [code=c] #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int seconds = atoi( … | |
Re: [quote=cscgal;286097]trackbacks, [/quote] What exactly are trackbacks? You are speaking to an absolute idiot who only knows how to open his browser when it come to the WWW. | |
Re: For someone with almost 400 posts, you should have known better to explain what is going wrong (like post error messages), rather than just ask for help. If you compiled this program, you would have found that the variable [inlinecode]vowel[/inlinecode] is not defined. Define it, initialize it to [inlinecode]0[/inlinecode], and … | |
Re: try [URL="http://web.sau.edu/LillisKevinM/C++Tutorial/dotNet/"]this[/URL]. It is for VC++ 2003.NET but I don't think there is much difference. You should be able to get an idea of what to do. Click on the images to enlarge them. And you don't have to register VC to be able to compile applications. | |
Re: I must say that the size of the quick post reply box is more annoying than having to scroll past an advertisement to reply. But since this change was the result of user request, I guess we will just have to train ourselves to click the advanced reply button. At … | |
Re: No point in going through a discussion on C++ books while this [URL="http://www.daniweb.com/techtalkforums/thread70096.html"]thread[/URL] exists. | |
I am working on Solaris 9 and using the emacs editor version 21.4. The problem is that when I use the [inlinecode]emacs -nw[/inlinecode] command and turn the font-lock-mode on, I don't get the syntax highlighting by color like in the XWindow mode. The syntax highlighting is only done by bolding … | |
Re: Try searching for [inlinecode]interprocess communication in C/C++[/inlinecode] and see if that is what you want. The actual method of implementation will depend on your operating system. | |
Re: you should try this. [code]perl -p -i.bak -e 's/\\n/\n\n /ig' good.txt[/code] It edits the good.txt file and creates a [inlinecode]good.txt.bak[/inlinecode] backup file. Remove the [inlinecode].bak[/inlinecode] part in the above command and the backup file wont be created. | |
Re: [quote=joeprogrammer;315958]Perhaps there's not better place than to learn than from the creator of the language, that is, Bjarne Stroustrap.[LIST] [*][URL="http://www.cs.wustl.edu/%7Eschmidt/ACE/book1/"]C++ Network Programming Volume 1[/URL] [*][URL="http://www.cs.wustl.edu/%7Eschmidt/ACE/book2/"]C++ Network Programming Volume 2[/URL][/LIST][/quote] Small correction, those are not written by Bjarne Stroustrup. Good books though. | |
Does any of you know how to get the pathname of the perl script that is being executed? Say it is located in [inlinecode]/home/wolfpack/perl/[/inlinecode] I run it from [inlinecode]/home/wolfpack[/inlinecode] by giving the absolute path name like, [inlinecode]/home/wolfpack/perl/scriptname [arguments][/inlinecode] I want to get the path [inlinecode]/home/wolfpack/perl[/inlinecode] so that I can use … | |
Re: [quote=mattyd;311164][LIST] [*]something Japanese[/LIST][/quote] Why Japanese? | |
Re: It is a bit strange that you can open text files but not csv files. They are essentially both text files, and only the file extensions are different. So give us the code that you are using to open the files. Maybe we can find something more by looking at … | |
Re: [quote=MIGSoft;310532]Hi, does anybody know how check whether the socket (ie file descriptor) is valid in C? I know it is probably possible to do it using either a read or a write command, however, what other ways are there? Thanks.[/quote] Depends on the socket that you are using. If you … | |
| |
Re: Become a Mod Dragon. I delete my posts all the time because they are wrong. | |
Re: [QUOTE=DMR]Wild; I never knew that. Must not have caught the right episodes. The weirdest thing is that you actually[I] retained[/I] that obscure little factoid- Methinks that your mind must be an *ahem* [I]interesting[/I] neighborhood to wander around in... ;)[/QUOTE] Wanna guess who Dani's Teenage Crush was? :lol: | |
Re: [quote=andrax;291720]Sorry, I was looking for something a little simpler and little more free :P[/quote] Try the built in [URL="http://msdn2.microsoft.com/en-us/library/1666sb98%28VS.80%29.aspx"]_CRTDebug [/URL]Libraries of Visual C++. | |
Re: [quote=andrax;285635]I'm writing a win32 app that re-paints the client area everytime the user clicks inside of it. Unfortunately after about 25 or 26 clicks the window gets painted white, but the black grid lines still appear. The WM_PAINT case goes through a for loop and asks another class what should … | |
Re: What hurts most is that he died without knowing that his family was safe. I don't think he would have minded his own death if he knew that his family was safe. :sad: | |
Re: [quote=Sulley's Boo;283185]You don't even know me :mad: how can you say that huh? take this *TISH* and yea i am a "software engineer" <_<[/quote] Moral: Don't mess around with arab women:mrgreen::cheesy::mrgreen::cheesy::mrgreen::cheesy::mrgreen::cheesy: | |
Re: Yeah, Humourless ...... :cheesy: . Didnt even know that Wombats were such cool species until DMR came along. Now I wanna be one in the next life. They don't get eaten by others do they? :eek: Cos upto now I have been doing the eating. Can't bear to have the … | |
![]() | Re: 1. pick up the book (of course) 2. Read the preface, introduction, Chapter 1 3. Fall asleep 4. Repeat 1 -3 infinitely, occationally wandering to Chapter 2 and maybe 3. |
Re: Why don't you write a simple code snippet and see? If the compiler doesn't complain, then it should be allowed. | |
Re: Please read the section "Keep it organized" on the [URL="http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies"]Daniweb Policy[/URL] page. All caps also will be considered rude by most of the members, although it is not stated in the rules page. | |
Re: [Takes off moderator hat] The fuss on this and your previous thread is really making me sick. And on retrospect, [quote=Narue;284065]2) You're trolling by subtly bringing up a topic that will divide people.[/quote] seems to be not that far from the truth. You decide yourself from the replies that you … | |
Re: [quote=Narue;284066]And I like phi.[/quote] After "Da Vinci Code" who wouldn't? | |
Re: For the First question : [URL="http://www.google.com/search?hl=en&rls=com.microsoft:en-us&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=sparse+matrices&spell=1"]Google[/URL]. For the second, I think [URL="http://www.nrbook.com/a/bookcpdf.php"]Numerical Recipies in C[/URL] which is downloadable freely should be good. It also has a chapter on [URL="http://www.nrbook.com/a/bookcpdf/c2-7.pdf"]Sparce Matrices [/URL]as well. | |
Re: What are you trying to do with it? The C in LPCTSTR stands for Constant. So you are maybe better off without changing it's permissions. | |
Re: [quote=cscgal;278113]That's already all figured out. It's just a matter of what colors to use where. What about php default syntax highlighting colors?[/quote] Nope. The comments are pink. As Iamthwee said, I want the comments in green too. Do not italic them or grey out them. It is a bit of … ![]() | |
Re: Are you reading the sentence all at once, or word by word? | |
Re: If you have 5 numbers the main cause shold be a out of bounds error. Use the below. [code] for (a=0;a<4;a++) { for (b=a+1;b<4;b++) { [/code] Edit: No. Sorry. My mistake. Your code is correct. I got carried away by the <= sign. As Salem says, the error should be … | |
![]() | Re: Another wombat here. Actually that is the only option. I hate them both. One is gay. The other is better looking than I am. Well... both of them are. |
Re: [quote]Dave is the only person who wants or cares about color. Of 100,000 members, he's the only person who seems to have realized color went away.[/quote] No I want colours as well. I thought it was a bug in the new BB update, and since I felt that I have … | |
Re: Sorry about the delay in the replies. I only look at unanswered threads, so when there were about 3 replies, I skipped the thread. If you hadn't bumped the thread, I probably would have taken a look and replied sooner. Anyway the error is in this line of the server … | |
Re: Gosh this is one long birthday. This is the only thread I know that is active 365 days of the year:mrgreen: . Do you fellas know when her actual birthday is? Cos I just checked the forum index and it aint today...:confused: | |
Re: [quote=WaltP;273541]From [B]Tom Lehrer[/B]'s [I]Bright College Days[/I]: [quote] Sliding down the razor blade of life[/quote][/quote] using balls as brakes.:mrgreen: | |
Re: All my dreams are in black and white... Do any of you dream in colour? | |
Re: [quote=jbennet;278027]Is Visual Studio 97/5.0 (its called both) any good?[/quote] Depends on what you are going to use it for. So nothing can be said exactly about it. But remember that it is not C99 standard compliant, so if you are going to use it you will find a lot of … | |
Re: Use the [inlinecode]continue[/inlinecode] keyword. It skips to the next iteration. [code=c] for (i = 0; i < count; i++ ) { if ( i == 5 ) continue; stuff }[/code] | |
Re: [quote=~s.o.s~;276148]Winter in India :D[/quote] You have Winter in India? :eek:. Which part of India do you live in? |
The End.