5,237 Posted Topics

Member Avatar for bandlife

[url]http://www.daniweb.com/forums/announcement9-2.html[/url] Not that it will do much good, but [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] Homework builds on previous homework. If you've been getting by by getting others to do all your assignments, then you well and truly deserve to fail. Otherwise, go over your previous assignments (like putting anything at all on screen). It …

Member Avatar for jwenting
0
122
Member Avatar for vbx_wx

Most people RTFM and post an attempt. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for vbx_wx
0
111
Member Avatar for rkp728

[url]http://lxr.linux.no/+trees[/url] Make sure you have a comfy chair and a lot of coffee on hand - you'll be a while :)

Member Avatar for rkp728
0
162
Member Avatar for whizkidash

When you do this [code] if [ $DIFF -gt 30 ] then COLOR="red" [/code] Add this line [code] if [ $DIFF -gt 30 ] then COLOR="red" needToSendEmail=1 [/code] Test that flag when you're about to send email.

Member Avatar for whizkidash
0
182
Member Avatar for strlen

You do some [URL="http://www.daniweb.com/forums/announcement125-2.html"]reading[/URL] before trying to get us to do some writing.

Member Avatar for read_hedai
0
105
Member Avatar for mindcheck101

> What type of developer creates audio plugins for digital audio workstations like pro tools and cubase Those that need to. Those that can. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for Salem
0
44
Member Avatar for chrisfrmatl

[URL="http://cboard.cprogramming.com/c-programming/126761-program-match-filenames-print-stat.html"]More cross-posting buffoonery[/URL]

Member Avatar for Salem
0
409
Member Avatar for johndoe444

[CODE] char buff[] = "My dog ate my homework"; char *p = buff; int n; while ( sscanf( p, "%s%n", word, &n ) == 1 ) { p += n; // advance through the buffer } [/CODE] > PS: Does anyone know why firefox is showing "behavior" as a wrong …

Member Avatar for johndoe444
0
568
Member Avatar for lionaneesh

> #include<malloc.h> /* You need this if on UNIX or LINUX */ This is all wrong. malloc is prototyped in stdlib.h > p = (char *)malloc(sizeof(words)); You don't need to cast malloc in C programs. Have you tried it without the cast? Did you get any error messages? These perhaps? …

Member Avatar for lionaneesh
-1
400
Member Avatar for Samoht VII

[url]http://www.daniweb.com/forums/thread282297.html[/url] Starts the same question rather than continuing the same discussion on the previous thread. I lost interest.

Member Avatar for Salem
-1
284
Member Avatar for lucvosters

I'm guessing that since the page says "usually", then the answer to "always" is going to be no. It's a good idea to join the actual discussion group which discusses OpenCV every day, rather than pick a random forum based solely on some web search stats. [url]http://tech.groups.yahoo.com/group/OpenCV/[/url]

Member Avatar for Salem
0
100
Member Avatar for Kesarion

A simple RTFM would have answered your questions (all of them) [url]http://msdn.microsoft.com/en-us/library/dd162938%28VS.85%29.aspx[/url]

Member Avatar for Salem
0
121
Member Avatar for jakethecake

> 2^64 This is 8 bytes into your array, and the 2^32 is 4 bytes in to the array. But isn't the overall result 128 bits in total?

Member Avatar for jakethecake
0
2K
Member Avatar for nageshkore
Member Avatar for iamthwee
0
467
Member Avatar for Rashid 218

Reposting your demands doesn't count as extra effort. [url]http://www.daniweb.com/forums/thread282291.html[/url] Can you - read a number from a memory location - read a series of numbers from consecutive locations (aka, an array) - compare a number with another number. There must be some fraction of the problem you're actually capable of …

Member Avatar for Salem
0
44
Member Avatar for eggberto

Post your latest code. Mostly when noobs describe they've fixed something and it doesn't work, they haven't actually fixed it at all.

Member Avatar for Salem
0
270
Member Avatar for chathuD

I wonder if you anticipated this kind of response? [url]http://clusty.com/search?query=virtual+function&sourceid=Mozilla-search[/url]

Member Avatar for Salem
0
152
Member Avatar for JhonRR

> how would i do that? Why is also a question as well. Are you figuring that if you can assassinate your parent, that you'll be adopted by root?

Member Avatar for griswolf
0
67
Member Avatar for Samoht VII

opendir() / readdir() / closedir() would seem to be a lot simpler, if all you're after is a list of names.

Member Avatar for caut_baia
0
499
Member Avatar for berbatov

Is this some "fresh out of college, lowest rung of the ladder, lot's of training required type of position"? If it is, then enthusiasm and a little research might get you in. If it's a more senior role, and they're expecting you to be useful from day 1, then you're …

Member Avatar for Salem
0
101
Member Avatar for mick3339

> if ( fgets(line, sizeof line, file) == NULL ) line is a pointer, so sizeof is going to give you 4 (the size of the pointer), not 80 (the amount of memory it points at) > line+=read; Make a copy of the pointer before you start modifying it. > …

Member Avatar for Salem
0
491
Member Avatar for man5237
Member Avatar for kvmreddy
0
3K
Member Avatar for aiosarem

> I have a client on a big-endian machine and a server on a little-endian machine. And that's the least of your worries. [code] struct myPacket { int a; // 1 // 2 double b; // 3 double c; int d; char e[80]; };[/code] 1. As well as endian-ess, how …

Member Avatar for Salem
1
6K
Member Avatar for so0oso

Eclipse doesn't make sound - it's an editor wrapped around a compiler. What matters is what your OS is, what API's you have access to and the kind of programs you're creating. Eclipse runs on many platforms, and can generate project types for many different programs. So explaining say "sound …

Member Avatar for Salem
0
115
Member Avatar for livestrong2431

Perhaps you could paste your current output, and maybe use say the [B]bold [/B]or the [COLOR="Red"]red [/COLOR]to pick out the parts of the output you consider to be wrong, and what you think the right answer should be. Sure I can run the code, but how would I know what …

Member Avatar for livestrong2431
0
130
Member Avatar for zreed

Sure... [code] do { read( "http://www.daniweb.com/forums/announcement9-2.html" ); while ( comprehension < 100% ); [/code]

Member Avatar for Katana24
0
264
Member Avatar for rehmanqasim
Member Avatar for taha_ttf
0
62
Member Avatar for cwarn23

I was thinking of creating my own rival search engine and calling it "[URL="http://en.wikipedia.org/wiki/Bing_Crosby"]Crosby[/URL]" ;)

Member Avatar for Ene Uran
0
217
Member Avatar for paradiseis

How about posting your attempt. Rather than just describing to us rather unconvincingly that you've made any attempt at all. We get a lot of "I tried but it didn't work, here's my question, can you do it for me, kthxbye" types.

Member Avatar for Salem
0
86
Member Avatar for moroccanplaya

> printf(" %d is larger %d"); How many extra parameters do you think printf needs here?

Member Avatar for jephthah
0
119
Member Avatar for phummon

Break it into steps 1. Find files [ICODE]cd /root/projects find PROJECT* -type f > $HOME/allProjectFiles.txt[/ICODE] Gets you something like this [CODE]$ cat $HOME/allProjectFiles.txt /root/projects/PROJECT01/date/JAN2000/output/SAMPLE0001/TARGET_102932 /root/projects/PROJECT02/date/JAN2001/output/SAMPLE0002/TARGET_32323 /root/projects/PROJECT03/date/JAN2001/output/SAMPLE0003/TARGET_32999293[/CODE] 2. Extract ones of interest [ICODE]$ awk -F'/' '[COLOR="Red"]$6 ~ /JAN2001/[/COLOR]' $HOME/allProjectFiles.txt > $HOME/selectedProjectFiles.txt[/ICODE] Now you can make the condition in red as complicated …

Member Avatar for phummon
0
167
Member Avatar for passionatecoder

> char a[10][25]; > char *ptr_a; > ptr_a = (char *)a[10][25]; If you really want to do this with pointers, then it's [CODE] char a[10][25]; char (*ptr_a)[25]; ptr_a = a; [/CODE] Then you should be able to use [ICODE]strcpy( ptr_a[index], argv[index] );[/ICODE]

Member Avatar for Fbody
0
654
Member Avatar for tquiva

Are you sure you have a hard tab (not just leading space) before your compiler command line? Makefiles are very fussy on this issue, and if it isn't an actual target command, then it might be being interpreted as a rule expression instead (specifically, -o would be 'or' ) > …

Member Avatar for jephthah
0
3K
Member Avatar for johndoe444

gdb just shows you where it crashed - inside some internal routing of scanf. Use the [B]bt[/B] command to see the stack trace, and '[B]up[/B]' and '[B]down[/B]' to navigate the stack until you get to a line of YOUR code. Then examine the variables. i is a good bet for …

Member Avatar for johndoe444
0
5K
Member Avatar for Kombat

Is that binary supposed to mean something? Because it means diddly-squat to us. Perhaps you should read the instruction encoding manual for whatever processor you're using (real or simulated).

Member Avatar for Kombat
-1
88
Member Avatar for BLUEC0RE

*unsort = malloc(sizeof(char)*strlen("\\!Unsort")); strcpy(*unsort, "\\!Unsort"); Yeah, you need to malloc (strlen(foo) + 1 ) bytes to copy a string foo. The fact that it works with certain strings (and it's still wrong) just makes you lucky.

Member Avatar for BLUEC0RE
0
653
Member Avatar for johndoe444

You could pad your format string with %n conversions, which would give you a length with a minimal calculation.

Member Avatar for sourabhtripathi
0
338
Member Avatar for jimJohnson

Did you compile it? I mean this is 6 hours later, and it's at best a 30 second job to write a few line test program to see if you can do Real myvar = 1.0;

Member Avatar for Salem
0
77
Member Avatar for naanaa12

[url]http://www.daniweb.com/forums/announcement8-2.html[/url] If you don't even understand the question, then go and talk to your tutor. If you're stuck on part of the answer, then post some relevant code and ask a question about that code (in the context of your problem). [COLOR="Green"]Eg. I think I need a list of bids, …

Member Avatar for Salem
-1
212
Member Avatar for Dani

Meaning, when you've rearranged the shop layout, how long will it take us to figure out where the tins of spam are stored?

Member Avatar for diafol
0
172
Member Avatar for robski

Yes, use fgets() to read the whole line, then sscanf() to parse it. If the line is rubbish, then you've already cleaned up the input stream to have another go.

Member Avatar for Narue
0
116
Member Avatar for seyho

> The prize is full marks to the OP if he can convince some rube to help him cheat on his homework. Not to mention, also convincing the rube doing the marking that this sudden masterpiece of a program from the class laggard is actually their own work. I think …

Member Avatar for Salem
-2
153
Member Avatar for watani

Here's why your "I want" is going to fall on deaf ears. [url]http://www.daniweb.com/forums/announcement61-2.html[/url] If you want it badly enough, make an effort. Otherwise, just drop the course now and stop sucking the life out of whatever class you're in.

Member Avatar for Salem
-4
151
Member Avatar for Heba91

How's your eyesight? A bit fuzzy round the edges perhaps with looking at too many *'s (they're dots actually). No? How come you missed this then? [url]http://www.daniweb.com/forums/announcement9-2.html[/url]

Member Avatar for bsewell
0
122
Member Avatar for aliirooni

[url]http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Indentation[/url] Unreadable code perhaps? I struggled through the spaghetti, and you might be missing a ; at the end of your class.

Member Avatar for Salem
0
133
Member Avatar for CarleneGriffith

> The error states:The program '[3716] Lab02 Case01.exe: Native' has exited with code 0 (0x0). This means your program exited successfully (ie, it didn't crash). Whether it did what you want is another matter, but at least it compiles and runs. > 'Lab02 Case01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open …

Member Avatar for WaltP
0
112
Member Avatar for antra1234

Well how you fix it depends on what you're trying to achieve in the first place (we can't tell from 2 lines and an error message). This should work (but is it what you want?) [code] char defaultmessage[]="hghgghjgh"; char *message=defaultmessage; [/code]

Member Avatar for abhimanipal
0
117
Member Avatar for estphil

Undoubtedly, you're just spamming crap all over the net just for your crap-assed sig-links [url]http://www.google.com/#hl=en&source=hp&q=%22Undoubtedly%2C+technology+problems+hold+you+and+your+company+back%22&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=a86c207b1c79523e[/url] The thread is 8 YEARS OLD - how relevant does that make anything you have to say?

Member Avatar for Salem
0
404
Member Avatar for newtojavas

Read this [url]http://www.daniweb.com/forums/announcement9-3.html[/url] And get some sleep - trust me, your last few hours of coding will look pretty bone-headed in the morning.

Member Avatar for Salem
0
109
Member Avatar for gilanisyed

I'm guessing it begins with [CODE]int numChildrenInThisNode; nodes *children[4];[/CODE] When [ICODE]numChildrenInThisNode [/ICODE]is 4, do something!

Member Avatar for Salem
0
46

The End.