5,237 Posted Topics
Re: Don't spam multiple forums with the same question at the same time. [url]http://cboard.cprogramming.com/cplusplus-programming/117873-scientific-cplusplus-program.html[/url] | |
Re: You don't increment the dest array pointer. The destination isn't big enough. | |
Re: Is the global variable shared between threads? The assert seems to be checking that some property is equal to the current thread. The assert is triggered when this is NO LONGER TRUE My deduction is that you have several threads munging the same data, and sooner or later, boom. | |
Re: So who did you copy that code from? That style of C has been obsolete for 20+ years. | |
Re: Do you actually know how RC4 works? [url]http://www.fact-index.com/r/rc/rc4_cipher.html[/url] You need to advance your key to byte 15 as well, and that just might be as much work as decoding all the data to begin with. | |
Re: Lemme guess, the teacher gave you a partially completed program for you to finish? | |
Re: Step 2 - read up on timers or threads. Step 0 [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Drop the excessive CAPS and punctuation. | |
Re: Your use of 'name' and 'rec' seems completely screwed up. Post your actual code, not some snippet you typed from memory. | |
Re: Well one problem is scanf doesn't normally catch spaces to store in strings. The other problem is gets is a horrible function that shall never be used again. Read two strings using fgets() | |
Re: It's trivial to achieve with [ICODE]-I.[/ICODE] As an addition to the compiler include search path (for details, see your manual). But if your only reason is "just because I want to", then it's not really recommended. | |
Re: Yes, sizeof() evaluates to an unsigned number. | |
Re: Start reading [url]http://www.wxwidgets.org/docs/tutorials.htm[/url] | |
Re: [url]http://clusty.com/search?query=SSL+for+dummies&sourceid=Mozilla-search[/url] | |
Re: You could just use the execv() function instead, if all you're interested in is the default environment. | |
Re: > The problem is, the professor only taught us the basics of C programming, the functions, switch statements and whatnot That's not the only problem. First it was a half-assed job of teaching you at all, Then another half-assed job in teaching you obsolete TurboC as well - sheesh. > … | |
Re: > return conjCodis; Did you conclude it stopped here by using a debugger? | |
Re: Just how many forums are you on? [url]http://www.codingforums.com/showthread.php?t=171778[/url] [url]http://www.weberforums.com/ntopic13044.html[/url] [url]http://forums.devshed.com/apache-development-15/syn-attach-6-months-thousands-of-request-a-second-maybe-624735.html[/url] [url]http://www.webhostingtalk.com/showthread.php?t=877198[/url] [url]http://www.weberforums.com/ftopic13150.html[/url] | |
Re: [url]http://forums.devshed.com/c-programming-42/schdule-events-in-c-626662.html[/url] Don't cross-post [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] | |
Re: If you haven't done so already, make sure you've got a backup of all your work, and copies of any non-standard drivers you might need, whilst you're still able to boot to normal mode. Next, do you have the original boot CD for your OS? You'll need it to run … | |
Re: Barring mechanical failure (like a fan stopping), or say the heatsink falling off, you're not going to damage a CPU just by keeping it busy. However, here are a few things to try (I take it you're using IE from your other recent posts). - clear the browser cache, and … | |
Re: Never mind what they might take out, it's what they might put in! | |
Re: Vote for me, and I'll delete on sight all those useless "project title" threads which pollute the forum, which never go anywhere useful. > You don't have to be here long to learn the nature of this site. Narue is the nature of this site down to a 't' ;) | |
Re: Buy a laptop. Buy a [URL="http://en.wikipedia.org/wiki/Uninterruptible_power_supply"]UPS[/URL] | |
Re: > "Because I feel like it" is as valid a reason as "because the standard says so". How about "I want my programs to work" vs. "My programs work by magic so long as I use the codemangler 3.0 compiler". Why stop there? char *str ; gets(str); usually had a … | |
Re: Read this [url]http://www.daniweb.com/forums/announcement114-3.html[/url] Then put some code tags around your actual code. Python scope rules rely on indentation, and your post without any is broken beyond help. | |
Re: That's going to be awfully confusing to users. I mean, they type in the 3rd letter say, think they've got it wrong and look at the screen to see 4 stars. What do they do next, press delete twice I wager and make a bad situation worse. | |
Re: Twitter message length is tuned to the attention span of the average twitter user :icon_rolleyes: | |
Re: Don't use [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046476070&id=1043284351"]feof() to control a loop[/URL] Use [ICODE]while ( fgets(buffer,sizeof(buffer),myfile) != NULL )[/ICODE] | |
Re: You're checking for leaks way too early. There are all sorts of things which could still be allocated in the middle of an active class member function. [code] int main ( ) { // your entire program OutputDebugString("\n-------- Start --------\n"); _CrtMemState state; _CrtMemCheckpoint(&state); _CrtMemDumpStatistics(&state); OutputDebugString("--------- End ---------\n\n"); return 0; } … | |
Re: [url]http://clusty.com/search?query=SMS+AT+commands&sourceid=Mozilla-search[/url] Odd that you didn't think to try this first. | |
Re: Divide a number by 3. Add that result to itself 3 times. Are you back to where you started? | |
Re: 1. Learn how to format code. Do NOT post code which is indented with a mixture of space and tabs. Forums will make a mess of your code. Compare with this [code] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> #include <fstream> #include "myheader.h" #include <stdlib.h> #include <ctype.h> #define TRUE … | |
Re: [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042005782&id=1043284385[/url] | |
Re: Like anybody would be stupid enough to download and open a word document (known for being a popular vector for malware), from a known infected machine. Post your request in this forum [url]http://www.daniweb.com/forums/forum64.html[/url] Read the "how to post" thread, and just copy/paste the text into the message (definitely NO attachments). … | |
Re: [URL="http://www.daniweb.com/forums/thread198087.html"]The snail and the tortoise[/URL] How about beginning with the fact that your approach to testing primes is horribly inefficient? | |
Re: Gee, normally noobs ask for help to finish their homework. Now they're too helpless to even think of a name for it, nevermind do it :rolleyes: | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] [url]http://lmgtfy.com/?q=difference+between+sql+2000+and+sql+2005[/url] | |
Re: Spamming multiple posts and multiple forums with the same message won't do you any favours [url]http://www.daniweb.com/forums/thread120406.html#post923157[/url] Create a program with what you know. Don't just post one line snippets and hope someone else will just write the whole thing for you. You've set out the steps, now try and see … | |
Re: > Could Someone help? [url]http://www.catb.org/~esr/faqs/smart-questions.html#prune[/url] | |
Re: How about "ask your tutor"? Lecture: a gathering of people where the object is to transfer information from the lecturer's notebook to the students notebooks without passing through the mind of either of them. | |
Re: > char comment; How big a comment? > counter[264]=depth; Do array bounds mean anything to you? What is depth? The basics for a histogram is counter[pixel]++ for all pixels | |
Re: You've already sorted the data, so the lowest will be at one end or the other. Adjust your loop start/end condition. | |
Re: Put simply, you trashed the memory pool, and that assertion pops up to tell you that it has happened. Without a COMPLETE program which crashes to study, there's not a lot to suggest from over here. If you run the code in the debugger, the debugger will catch the assert, … | |
Re: You can only initialise arrays, you can't assign them on-mass like you're trying to do. [code] boardType totalBoards = { { {0,0,0,0,0,0,0}, {6,6,6,1,6,6,1}, {6,6,6,6,6,6,1}, {6,6,6,6,6,6,1}, {6,6,6,6,6,6,1}, {6,6,6,6,6,6,1}, {5,5,5,5,5,5,5} }, 8 }; [/code] | |
Re: > can you please suggest me something about process sheduling, memory management etc.. If you need this much spoon-feeding to do a kernel / driver project, then you're simply not ready young grasshopper. | |
Re: Step 1 [code] MPUSED=`lsof | grep $MOUNT | awk '{print $2}'[COLOR="Green"] | sort -u[/COLOR]` [/code] This makes sure that each PID which might have open files is captured only once. Step 2 Then do [code] for i in $MPUSED; do echo kill -s SIGKILL $i done [/code] | |
Re: So you want to go to a point in the file, then what? - print the rest of the file - print a single line? calling getc() TWICE in the loop means you're processing alternate characters. You should also move the fseek() outside the loop,. you only need to do … | |
Re: > using graphics header file. I take it you mean the graphics.h file that comes with Turbo C Well how much do you know already? - can you draw a rectangle - can you read a file - can you count things? | |
Re: So is there any software at all on the microcontroller? If it comes with a LAN port, chances are there is a library to drive it up to at least IP level. If there is, then the task is no more hard than writing any other IP based communication between … |
The End.