5,237 Posted Topics

Member Avatar for #define:me

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]

Member Avatar for Salem
0
120
Member Avatar for MrNoob

You don't increment the dest array pointer. The destination isn't big enough.

Member Avatar for MrNoob
0
93
Member Avatar for metdos

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.

Member Avatar for Salem
0
132
Member Avatar for bubblellicious

So who did you copy that code from? That style of C has been obsolete for 20+ years.

Member Avatar for Dream2code
0
101
Member Avatar for dzhugashvili

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.

Member Avatar for dzhugashvili
0
556
Member Avatar for sriblon
Member Avatar for steel dr@gon

Lemme guess, the teacher gave you a partially completed program for you to finish?

Member Avatar for Dream2code
0
109
Member Avatar for Princy Rohit

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.

Member Avatar for Princy Rohit
0
113
Member Avatar for cheqmate

Your use of 'name' and 'rec' seems completely screwed up. Post your actual code, not some snippet you typed from memory.

Member Avatar for Dream2code
0
95
Member Avatar for waqarafridi

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()

Member Avatar for Dream2code
0
2K
Member Avatar for metdos

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.

Member Avatar for metdos
0
177
Member Avatar for rcbhat
Member Avatar for nuhendra
Member Avatar for Salem
0
25
Member Avatar for liljonat

[url]http://clusty.com/search?query=SSL+for+dummies&sourceid=Mozilla-search[/url]

Member Avatar for semoweb
0
71
Member Avatar for kalodakilla

You could just use the execv() function instead, if all you're interested in is the default environment.

Member Avatar for kalodakilla
0
327
Member Avatar for louieansonng

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

Member Avatar for Salem
0
135
Member Avatar for Teeb
Member Avatar for Nick Evan
1
214
Member Avatar for phpfreek2007

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]

Member Avatar for phpfreek2007
0
227
Member Avatar for tzahiel

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

Member Avatar for Salem
0
71
Member Avatar for Meros

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 …

Member Avatar for Chaky
-2
198
Member Avatar for Frank Wallis

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 …

Member Avatar for Suspishio
0
176
Member Avatar for The Dude
Member Avatar for The Dude
0
130
Member Avatar for jephthah

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' ;)

Member Avatar for shadwickman
0
204
Member Avatar for DJ_5

Buy a laptop. Buy a [URL="http://en.wikipedia.org/wiki/Uninterruptible_power_supply"]UPS[/URL]

Member Avatar for epok13hart
0
97
Member Avatar for scru

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

Member Avatar for ~s.o.s~
1
527
Member Avatar for sanju.d1231

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.

Member Avatar for jlm699
0
200
Member Avatar for flipjoebanana

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.

Member Avatar for vegaseat
0
154
Member Avatar for MktgRob

Twitter message length is tuned to the attention span of the average twitter user :icon_rolleyes:

Member Avatar for MktgRob
0
84
Member Avatar for msteele

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]

Member Avatar for Ancient Dragon
0
178
Member Avatar for muhandis

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; } …

Member Avatar for Salem
0
570
Member Avatar for vikter

[url]http://clusty.com/search?query=SMS+AT+commands&sourceid=Mozilla-search[/url] Odd that you didn't think to try this first.

Member Avatar for Salem
0
130
Member Avatar for xiikryssiix

Divide a number by 3. Add that result to itself 3 times. Are you back to where you started?

Member Avatar for xiikryssiix
1
111
Member Avatar for elitedragoon

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 …

Member Avatar for Salem
0
226
Member Avatar for lotrsimp12345
Member Avatar for csurfer
0
97
Member Avatar for RJCO

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). …

Member Avatar for happygeek
0
129
Member Avatar for monkey56657

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

Member Avatar for monkey56657
0
280
Member Avatar for BHUJI

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:

Member Avatar for tux4life
0
270
Member Avatar for sivak

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

Member Avatar for serkan sendur
0
138
Member Avatar for flair999

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 …

Member Avatar for Salem
0
90
Member Avatar for massivefermion

> Could Someone help? [url]http://www.catb.org/~esr/faqs/smart-questions.html#prune[/url]

Member Avatar for tux4life
0
202
Member Avatar for nature_love

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.

Member Avatar for Piya27
0
123
Member Avatar for BlinkOnly

> 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

Member Avatar for Salem
0
121
Member Avatar for pltndragon

You've already sorted the data, so the lowest will be at one end or the other. Adjust your loop start/end condition.

Member Avatar for NathanOliver
0
2K
Member Avatar for codedhands

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

Member Avatar for codedhands
0
214
Member Avatar for drt_t1gg3r

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]

Member Avatar for Salem
0
107
Member Avatar for rajenpandit

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

Member Avatar for rajenpandit
0
122
Member Avatar for maresi

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]

Member Avatar for maresi
0
208
Member Avatar for jcollins85

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 …

Member Avatar for jcollins85
0
156
Member Avatar for karpaklu

> 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?

Member Avatar for vimalamtwu
0
82
Member Avatar for weeken88

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 …

Member Avatar for weeken88
0
91

The End.