5,237 Posted Topics

Member Avatar for sofiastrange

[url]http://cboard.cprogramming.com/c-programming/119269-rsa-encryption-s-o-s-emergency-distress-signal.html[/url] Don't spam across multiple forums. [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url]

Member Avatar for Salem
0
133
Member Avatar for slfisher

More a case of: Twit: errrr, what shall I say now that doesn't make me look like a complete doofus with nothing better to do than write short messages on some website. Sooner or later, it will be: News just in! Sen. NoName from never-been-there caught using ghost-writers to write …

Member Avatar for Salem
0
213
Member Avatar for newsguy

Oh good, another futile "War on ...." initiative. I wonder how the US is managing with the "War on drugs" ([url]http://www.drugsense.org/wodclock.htm)[/url]. Now that's a lot of moola. Still, it makes good PR for the chattering classes even if nothing ever comes of it. Even in the midst of failure, they …

Member Avatar for Salem
0
357
Member Avatar for GuyClapperton

Worse is to come. Guess what's going to get sliced to the bone in the downturn? Yep, that's right, anything for which a bean-counter can't see having an immediate monetary value which can be bought or sold. Security fits ever so snugly into this category. Another example is quality. Sure, …

Member Avatar for Rashakil Fol
0
149
Member Avatar for newsguy

Perhaps they're hoping to get some drive-by downloads to help them with this ;) [url]http://www.daniweb.com/blogs/entry3752.html[/url]

Member Avatar for Salem
0
356
Member Avatar for GuyClapperton

Big Brother is shit. Big Brother in HD would be HD shit. Big Brother in 3D would be 3D shit. Then there's the "repeats", the "making of", the "talk show" and the "uncut" versions to deal with. 100s of hours of airtime filled for a pittance of production budget. The …

Member Avatar for Salem
0
206
Member Avatar for Lisa Hoover

Renting say MS Office or IE on the very rare occasions when you simply have to access the resource, and the free alternatives of Open Office and Firefox just don't cut it, would be fantastic for me. But I doubt MS would last long on such meagre revenue streams. "purchasing" …

Member Avatar for PcPro12
0
211
Member Avatar for leegeorg07

If you've just strapped the LED between the 5v and ground pins, then no, you won't be able to make it flash. [url]http://lvr.com/usb.htm[/url] Or, if you want a simple intro to hardware programming [url]http://www.arduino.cc/[/url]

Member Avatar for leegeorg07
0
94
Member Avatar for magicor

So have you done 'ls' without the -R part already? Use the stat() function to work out what kind of thing a directory entry is, then call your file listing function recursively.

Member Avatar for Ancient Dragon
0
74
Member Avatar for babaphy

1. Learn C REALLY well. 2. Get good at maths - [url]http://en.wikipedia.org/wiki/Digital_image_processing[/url]

Member Avatar for Salem
0
38
Member Avatar for ubi_ct83

Use fgets() to read each line. Use sscanf() to parse the line (or better yet, strtod).

Member Avatar for Salem
0
160
Member Avatar for zimis

Well it rather depends on the application. Web browsers for example just give up and print a message. A file downloader might retry.

Member Avatar for Salem
0
72
Member Avatar for usmanabb
Member Avatar for HI2Japan
-1
141
Member Avatar for gcardonav

Please don't cross-post [url]http://forums.devshed.com/c-programming-42/how-to-read-numbers-out-of-a-txt-file-636270.html[/url] Here's why [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] Imagine how unusable all the forums would be if everybody did it.

Member Avatar for gcardonav
0
136
Member Avatar for rajuchacha007

And again [url]http://www.daniweb.com/forums/thread215731.html[/url] Pity neither of them has code tags....

Member Avatar for Salem
0
176
Member Avatar for umarmaqsood

The console is what you learn with. GUI programming is no different, it's just a different API. But it takes half a book to explain "hello world" rather than half a page, to an absolute newbie.

Member Avatar for Nick Evan
0
340
Member Avatar for goody11

What you see today in the C pre-processor is a faint echo of how the pre-processor was originally implemented. [URL="http://en.wikipedia.org/wiki/M4_%28computer_language%29"]m4[/URL] is a macro pre-processor and then plenty. The original C pre-processor (when C was still on a single machine in the 70's) was just an input to m4. Oh, but …

Member Avatar for Salem
0
141
Member Avatar for Nathan Campos

> If i put #include "zlib.h" the errors are the same. Include files tell the compiler HOW to call something. Libraries (the thing you're missing) tell the linker (the stage after compiling) WHAT actually provides the implementation of the thing you wanted to call. For a simple command line, it's …

Member Avatar for Nathan Campos
0
494
Member Avatar for lancevo3
Member Avatar for Lerner
0
87
Member Avatar for jorge12745

[CODE]delete &capacidad; delete &indice; delete &datos;[/CODE] All these are wrong. a) you don't call delete AT ALL unless you called new. b) a new [] is matched by a delete [] So [ICODE]delete [ ] datos;[/ICODE] would be the only thing needed here.

Member Avatar for jorge12745
0
64
Member Avatar for skelly16

[code] $ date '+%m/%d/%Y':'%H:%M:%S' ; date --date='now -5 minutes' '+%m/%d/%Y':'%H:%M:%S' 08/26/2009:18:25:41 08/26/2009:18:20:41 [/code]

Member Avatar for Salem
0
125
Member Avatar for dikx

Is that something you copied out of a header file which came with your compiler? Or did you find that macro on the net somewhere, and just copy/pasted it into your code?

Member Avatar for Salem
0
128
Member Avatar for chelseagoo

[B][url=http://www.daniweb.com/forums/announcement8-2.html]We only give homework help to those who show effort[/url][/B] Didn't you see this in your rush to post your homework.

Member Avatar for mrnutty
0
255
Member Avatar for nateuni

One function to write the struct to a file. Another function to read the struct from a file. For each field, use the appropriate fprintf or fscanf conversion function. For extra robustness on reading, use fgets() to begin with.

Member Avatar for nateuni
0
367
Member Avatar for Shaitan00

Once [URL="http://www.daniweb.com/forums/thread207536.html"]before[/URL] and now [URL="http://forums.devshed.com/c-programming-42/how-to-unblock-connectnamedpipe-and-readfile-c-635510.html"]again[/URL] What makes your posts so damn important that they must always be asked on two forums in parallel?

Member Avatar for Salem
-1
469
Member Avatar for blsnls

Did you see this on your way in? [B][quote=forum title page] Announcement: [URL="http://www.daniweb.com/forums/announcement8-3.html"]Please use BB Code and Inlinecode tags[/URL] cscgal (The Queen of DaniWeb) [/quote][/B]

Member Avatar for mrnutty
0
85
Member Avatar for PhiberOptik

You can find a youtube clip, but not a web search? [url]http://clusty.com/search?query=motion+detection+algorithm&sourceid=Mozilla-search[/url]

Member Avatar for jakx12
0
387
Member Avatar for viv.rosa.park

> is there a way to use these if statements more efficiently? [URL="http://www.catb.org/~esr/faqs/smart-questions.html#prune"]Yes, there is a more efficient way[/URL]

Member Avatar for Salem
0
75
Member Avatar for AssaultM16

All the files are in the same directory? If so, all you need to do is add the two .cpp files to some kind of project (or makefile), and then build. > cannot find -lfunctions.h". -l is for libraries, not header files. Like I said, in a simple case with …

Member Avatar for AssaultM16
0
99
Member Avatar for nickcampbell

> As a nasty hack this works fine but it takes a long time (> 10 mins) to run the code through enough repetitions. > For my project specification I really need this to be much, much faster (< 5 mins hopefully) Why does a program which runs only once …

Member Avatar for woooee
0
2K
Member Avatar for rhoit

Well your class lacks both a constructor AND a destructor! > free(Cb); Cb = (float*)calloc(sizeof(float), T1->b); Cb is garbage on entry, and then you try to free it. That's your *** glibc detected *** ./R: double free or corruption (out): 0xbfaaa878 *** It might not be that one, but your …

Member Avatar for Salem
0
206
Member Avatar for poncho4all

Well you need to build into your loop some sense of "expecting number" and "expecting operator". It should toggle between these two states. So if you're expecting a number, and see '-', you know what it means.

Member Avatar for Salem
0
118
Member Avatar for Stefano Mtangoo

It lacks imagination, but did you try this? [url]http://www.google.se/search?q=png+to+xpm&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-GB:unofficial&client=firefox-a[/url]

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for Dear.arvind

Yeah, it's basically dying. The tube is probably OK, but the electronics in the back controlling the brightness are shot. Unless you know someone who can repair these things for free, getting it repaired commercially will probably cost as much as a new LCD monitor (think about all the extra …

Member Avatar for Salem
0
94
Member Avatar for plongx211

> my problem is that my teacher give an activity to do to make a c++ program that will determine That's not all. It also determines who gets to stay on the course and learn something advanced, and who gets extra free time to explore alternative paths through life. For …

Member Avatar for tux4life
0
105
Member Avatar for Cardboard Box

> Place the hard drive in a zip bag then put it in the freezer overnight. I recently chucked out a drive which would only work after it had warmed up to something like normal operating temperature. An hour or so in bright sunlight worked for me in this instance …

Member Avatar for Rik_
0
114
Member Avatar for gc_don

Perhaps you've got [URL="http://www.webopedia.com/TERM/W/Wake_on_LAN.html"]Wake on LAN[/URL] with the bits reversed (so it's shutdown on LAN) ;) Joke aside, check whether such a feature is enabled in the BIOS (or in Windows for that matter).

Member Avatar for Nauman Badiwale
0
204
Member Avatar for tarakant_sethy

> when i am runing the server program and doing telnet 127.0.0.1 int the console What command did you actually type? telnet without additional parameters will try to connect to port 23 Your server is listening to something else.

Member Avatar for Salem
0
93
Member Avatar for Dsiembab

A fair portion of the population have yet to figure out what 'R' means, never mind the rest of it.

Member Avatar for GrimJack
0
199
Member Avatar for md.j.nasir

> .It should also be feasible to be done in 7 months by 4 people.... Who between them don't have enough to come up with a project by themselves. So much for "innovative". The "challenge" is a bit shaky as well. What if my "can be done in a wet …

Member Avatar for md.j.nasir
0
141
Member Avatar for vijay4vin

> it states debug assertion failure fseeki64.c line 61 stream !=null. You opened a file, say FILE *fp = fopen("doofus.txt", "r" ); You then tried to seek somewhere - I guessed that fseeki64.c > stream !=null How many parameters does fseek() have? Which one's are a) pointers (the message says …

Member Avatar for Salem
0
95
Member Avatar for gretty

What - that you can't use a float to subscript an array? The error message should have been pretty obvious. Array subscripts are integers.

Member Avatar for Salem
0
143
Member Avatar for Huzaifa.Gain
Member Avatar for ashishchoure

Copy and past your terse question into google. Like this. [url]http://www.google.se/search?q=step+by+step+tutorial+on+COM+using+vs2005.+&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-GB:unofficial&client=firefox-a[/url]

Member Avatar for Tigran
0
85
Member Avatar for mejohnm

Which end of the list holds the least significant digits? Adding 12 to 3456 for example, adds 2 and 6 together because they're the same rank at the end of the list. Not adding 1 and 3 together because they're at the head of the list.

Member Avatar for mejohnm
0
82
Member Avatar for Caglow

What exactly are you trying to achieve here? > it's the only precompiled C compiler for Windows which[COLOR="Red"] compiles code to Linux [/COLOR] > (I tried building GCC in every way imaginable without success). I've successfully built a few hello world > programs without much trouble. However, with a bigger …

Member Avatar for Caglow
0
650
Member Avatar for baal3

[url]http://www.google.se/search?q=SSL+handshake+protocol&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-GB:unofficial&client=firefox-a[/url] [url]http://www.webstart.com/jed/papers/HRM/references/ssl.html[/url]

Member Avatar for Salem
0
144
Member Avatar for glahh

Read this and fix your post [url]http://www.daniweb.com/forums/announcement118-3.html[/url]

Member Avatar for glahh
0
109
Member Avatar for sweetie432

Do a tracert to find out what ISP they're connecting to. Tell the ISP what you know Tell the police what you know.

Member Avatar for zelkea
0
262
Member Avatar for david777

And your question? No, it won't compile. No, you didn't read the intro threads on how to post code. No, I won't guess what you wanted.

Member Avatar for Nick Evan
0
78

The End.