5,237 Posted Topics
Re: [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 … | |
Re: Most people RTFM and post an attempt. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: [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 :) | |
Re: 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. | |
Re: You do some [URL="http://www.daniweb.com/forums/announcement125-2.html"]reading[/URL] before trying to get us to do some writing. | |
Re: > 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] | |
Re: [URL="http://cboard.cprogramming.com/c-programming/126761-program-match-filenames-print-stat.html"]More cross-posting buffoonery[/URL] | |
Re: [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 … | |
Re: > #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? … | |
Re: [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. | |
Re: 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] | |
Re: 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] | |
Re: > 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? | |
Re: Read this NOW! [url]http://www.daniweb.com/forums/announcement8-2.html[/url] ![]() | |
Re: 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 … | |
Re: 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. | |
Re: I wonder if you anticipated this kind of response? [url]http://clusty.com/search?query=virtual+function&sourceid=Mozilla-search[/url] | |
Re: > 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? | |
Re: opendir() / readdir() / closedir() would seem to be a lot simpler, if all you're after is a list of names. | |
Re: 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 … | |
Re: > 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. > … | |
Re: Why are you trying to do maths in the shell (which it really isn't set up to do). | |
Re: > 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Sure... [code] do { read( "http://www.daniweb.com/forums/announcement9-2.html" ); while ( comprehension < 100% ); [/code] | |
Re: [url]http://lmgtfy.com/?q=Excel%2BFile%2BPassword%2BRecovery[/url] | |
Re: I was thinking of creating my own rival search engine and calling it "[URL="http://en.wikipedia.org/wiki/Bing_Crosby"]Crosby[/URL]" ;) | |
Re: 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. | |
Re: > printf(" %d is larger %d"); How many extra parameters do you think printf needs here? | |
Re: 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 … | |
Re: > 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] | |
Re: 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' ) > … | |
Re: 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 … | |
Re: 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). | |
Re: *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. | |
Re: You could pad your format string with %n conversions, which would give you a length with a minimal calculation. | |
Re: 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; | |
Re: [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, … | |
Re: Meaning, when you've rearranged the shop layout, how long will it take us to figure out where the tins of spam are stored? ![]() | |
Re: 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. | |
Re: > 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 … | |
Re: 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. | |
Re: 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] | |
Re: [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. | |
Re: > 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 … | |
Re: 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] | |
Re: 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? | |
Re: 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. | |
Re: I'm guessing it begins with [CODE]int numChildrenInThisNode; nodes *children[4];[/CODE] When [ICODE]numChildrenInThisNode [/ICODE]is 4, do something! |
The End.