868 Posted Topics

Member Avatar for jan1024188

Spelling mistake. The correct one should be [inlinecode]iostream[/inlinecode]

Member Avatar for jan1024188
0
120
Member Avatar for Matt Tacular
Member Avatar for WaltP
0
97
Member Avatar for pooja_singh

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 …

Member Avatar for WaltP
1
315
Member Avatar for amelie

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 …

Member Avatar for amelie
0
198
Member Avatar for Tales

[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 …

Member Avatar for dubeyprateek
0
258
Member Avatar for Tim Gleebitz

[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 …

Member Avatar for John A
0
114
Member Avatar for 123abcd1983

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 …

Member Avatar for WolfPack
0
493
Member Avatar for tripo03
Re: C

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.

Member Avatar for Salem
0
101
Member Avatar for Riazansar

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 …

Member Avatar for Riazansar
0
170
Member Avatar for rwagnes

[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( …

Member Avatar for rwagnes
0
169
Member Avatar for happygeek

[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.

Member Avatar for blud
1
562
Member Avatar for Duki

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 …

Member Avatar for Duki
0
238
Member Avatar for addicted

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.

Member Avatar for WolfPack
0
199
Member Avatar for Salem

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 …

Member Avatar for happygeek
0
147
Member Avatar for Tauren

No point in going through a discussion on C++ books while this [URL="http://www.daniweb.com/techtalkforums/thread70096.html"]thread[/URL] exists.

Member Avatar for jbennet
0
113
Member Avatar for WolfPack

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 …

Member Avatar for WolfPack
0
989
Member Avatar for jobra

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.

Member Avatar for WolfPack
0
43
Member Avatar for avik1983

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.

Member Avatar for avik1983
0
225
Member Avatar for Tauren

[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.

Member Avatar for WolfPack
0
125
Member Avatar for WolfPack

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 …

Member Avatar for WolfPack
0
174
Member Avatar for mattyd

[quote=mattyd;311164][LIST] [*]something Japanese[/LIST][/quote] Why Japanese?

Member Avatar for mattyd
0
291
Member Avatar for Harshita_garg

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 …

Member Avatar for Harshita_garg
0
1K
Member Avatar for MIGSoft

[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 …

Member Avatar for WolfPack
0
140
Member Avatar for purple rainx

[quote=cscgal;283180]I don't think so?[/quote] Avatars decieve?

Member Avatar for Chaky
0
698
Member Avatar for Ancient Dragon

Become a Mod Dragon. I delete my posts all the time because they are wrong.

Member Avatar for ~s.o.s~
0
130
Member Avatar for Erich K

[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:

Member Avatar for Extremist
0
729
Member Avatar for andrax

[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++.

Member Avatar for andrax
0
204
Member Avatar for andrax

[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 …

Member Avatar for andrax
0
219
Member Avatar for Junyah

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:

Member Avatar for jbennet
0
96
Member Avatar for John A

[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:

Member Avatar for Janiceps
0
497
Member Avatar for DMR

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 …

Member Avatar for WaltP
0
604
Member Avatar for GreenDay2001

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.

Member Avatar for lol_hacker101
0
302
Member Avatar for venomlash

Why don't you write a simple code snippet and see? If the compiler doesn't complain, then it should be allowed.

Member Avatar for Narue
0
95
Member Avatar for fortis

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.

Member Avatar for yamurthy
0
86
Member Avatar for purple rainx

[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 …

Member Avatar for stymiee
-1
272
Member Avatar for mattyd

[quote=Narue;284066]And I like phi.[/quote] After "Da Vinci Code" who wouldn't?

Member Avatar for Narue
0
210
Member Avatar for vangheem

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.

Member Avatar for vangheem
0
97
Member Avatar for rxgmoral

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.

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Dani

[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 …

Member Avatar for iamthwee
0
547
Member Avatar for matrimforever
Member Avatar for pratigya

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 …

Member Avatar for Salem
0
317
Member Avatar for GreenDay2001

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.

Member Avatar for 'Stein
0
234
Member Avatar for Dave Sinkula

[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 …

Member Avatar for stymiee
0
1K
Member Avatar for bops

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 …

Member Avatar for bops
0
479
Member Avatar for rodzilla

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:

Member Avatar for jbennet
0
765
Member Avatar for mattyd

[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:

Member Avatar for mattyd
0
249
Member Avatar for The Dude

All my dreams are in black and white... Do any of you dream in colour?

Member Avatar for blud
0
370
Member Avatar for jbennet

[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 …

Member Avatar for jbennet
0
169
Member Avatar for Acquire

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]

Member Avatar for Acquire
0
493
Member Avatar for mattyd

[quote=~s.o.s~;276148]Winter in India :D[/quote] You have Winter in India? :eek:. Which part of India do you live in?

Member Avatar for jwenting
0
120

The End.