5,237 Posted Topics
Re: Look at all the pretty colours in your post. Blue means it's a string - is it really meant to be a string? Consider looking for the mis-placed " | |
Re: Lessons in cause and effect. Memory is allocated from one (or more) larger pools of memory. [code] int main ( ) { int *p = new int[10]; [COLOR="Red"]for ( int i = 0 ; i <= 10 ; i++ ) p[i] = 0; // overrun!![/COLOR] double *q = new double[1000]; … | |
Re: [url]http://cboard.cprogramming.com/c-programming/119649-malloc-why.html[/url] | |
Re: > At the moment I'm considering doing a simulation of hide-and-seek Well I suppose I could hide my answers to this kind of question all over the forum, and you could write some AI bot to seek them out. | |
Re: Maybe we could start with which language you know, and how well you know it. Learn C++ Learn Java The "how to go from x to y" problem will then be self evident to you. | |
Re: > if(fgets(temp, sizeof(temp), file) != NULL) To read the whole file, do while(fgets(temp, sizeof(temp), file) != NULL) Oh, and remove the fclose() from inside the loop. Or better yet, leave it there and learn something ;) | |
Re: Taking a stab at guessing line 98 VoltageGain = [COLOR="Red"]double [/COLOR]pow ((275 / sqrt (pow (23, 2) + 0.5 * pow (f, 2))), n); What does double do here? | |
Re: File permissions are platform specific, so you only get access to them using platform specific APIs. | |
Re: True, removing the redundant #include <iostream> and making sure to invoke the C compiler would be a lot simpler than going the other way. | |
Re: Does [CODE]while (getline(sup,line)) temp << line << endl;[/CODE] succeed in just copying the file? If it does, then removing the first line is simply [CODE]getline(sup,line); // burn line 1 while (getline(sup,line)) temp << line << endl;[/CODE] | |
Re: > changed into .1101 1100 0000 0000 * 2 (exp) 0000 0101 The first part is a fraction - in this case it's 0.859375 In this FP scheme, all mantissas are >=0.0 and <1.0 Basically, you take the radix point, and move it left one digit at a time, and … | |
Re: [code] int nrP = 6; for ( i = 1 ; i < nrP ; i++ ) { cout << i << " " << (2 * nrP - 2 * i - 1) << endl; } [/code] Notice anything about the sequence of numbers? | |
Re: Have you asked Nohau for support? These bits of kit are not exactly cheap, so it's worth investing in the support which comes with them. | |
Re: Which OS? Which Compiler? You need to access a URL, so are you fine using a library (try libcurl), or do you want to roll your own code? | |
Re: [url]http://clusty.com/search?query=excel+vba&sourceid=Mozilla-search[/url] | |
Re: > Try this..Does it do your job: Well it might, if you included stdlib.h as well. Then you might be able to call malloc without having to resort to dangerous casting (it's REALLY dangerous without a prototype, and essentially useless with a prototype). Why is it dangerous? Well Dorothy, without … | |
Re: Well you're not using fscanf correctly, so no wonder it blows up. [code] int val; while ( while(fscanf(dFile, "%1d", &val ) == 1 ) [/code] | |
Re: [url]http://www.intelleflex.com/Products.Readers.asp[/url] 5 seconds of google - try it sometime. | |
Re: [url]http://www.daniweb.com/forums/thread222501.html[/url] OK, I've replied to both your questions now :icon_wink: | |
Re: > i have a Banker's Algorithm, but it has 12 errors So post the code, and your actual error messages then. Don't forget to read the "how to post code" threads first. The last thing you need right now is a hostile crowd over a simple screw-up of not using … | |
Re: Shouldn't the OP be looking for a C++ solution, rather than messing with archaic C-style functions and char arrays? | |
Re: You're not passing references to them. So inside the functions, changes are made on a local copy, which is lost when the function returns. | |
Re: Sure, you can make a backup of anything you want. What you do afterwards however requires a great deal of care. Also, use media like CD (not a USB stick which has plug and pray issues). Malware can infest all sorts of different files though, so you should treat your … | |
Re: How are we supposed to help, when you don't show what you're capable of doing yourself. > plz just dont refer the man pages of linux plz Why not? Sooner or later, you'll have to get to grips with manual pages one way or another. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: Well gmtime() does most of the donkey work for you. | |
Re: > Here is the error... in german :x Except that seems to suggest the problem is in a function called calc3() and not one called toDouble(). Did you fix it in all the places? Posting new error messages would be better than "it didn't work". | |
Re: They're class member functions, which means they need an object to be applied to. Eg. [ICODE] mat1.Add(mat1, mat2);[/ICODE] Of course, you might regard one of your parameters as now being redundant. Also, I don't think your initial constructor call is very good either. What is it constructing? | |
Re: You really need to work on those thread titles. [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] | |
Re: Wait, you want us to wade through a 700+ line haystack (which isn't even complete) looking for a needle which might not even be present in the subset you've posted? Try using the debugger again. You might also try simplifying some of those overly long and deeply nested functions. | |
Re: [url]http://www.daniweb.com/forums/thread222793.html[/url] Make your mind up on which language(s) you're using. | |
| |
Can we have a "report spam" button please, which a) does NOT show up in our post count. b) hides the button when it's already been reported as spam. | |
Re: Have you already looked: - on the eclipse site/forums. - on the tomcat site/forums. Where do you think people who have this kind of problem are likely to turn to first? - the relevant home pages of the products you're interested in. - some random forum which appears at the … | |
Re: > Donate I do - time, and lots of it (as do the ~100 or so regulars who help out here). How is that any less valuable than $5 per month subscription? Paying the server bills is one thing, but without a lively volunteer community to drive things along, it … | |
Re: Welcome. Please look around [url]http://www.daniweb.com/forums/forum1.html[/url] and engage in some discussions on some of the recent threads. | |
Re: Are we sitting comfortably, then I shall begin. [url]http://wiki.osdev.org/Main_Page[/url] [url]http://www.nondot.org/sabre/os/articles[/url] | |
Re: > How I will load it and then assign it to hash table So is this about reading files, or hash tables? | |
Re: [url]http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/PixelGrabber.html[/url] The manual seems clear enough. 32 bits of ARGB | |
Re: How about asking a proper question in the C++ forum then. [url]http://www.daniweb.com/forums/forum8.html[/url] Read these first: Announcement: Please use BB Code and Inlinecode tags Announcement: We only give homework help to those who show effort | |
Re: Already answered [url]http://cboard.cprogramming.com/c-programming/119526-help-lru-replacemnet.html[/url] | |
Re: It would take 5 seconds for [B][U]you[/U][/B] to try it - so why haven't you? | |
Re: Is that char *_filename; or char _filename[1000]; Or why are you messing with char arrays when there is a perfectly usable std::string which would have seen you finished hours ago. | |
Re: > I'm currently searching for a not-too-hard and not-too-easy software to make Ah great, another goldilocks problem. > So can someone PLEASE help me? [URL="http://www.catb.org/~esr/faqs/smart-questions.html#prune"]It's doubtful[/URL] | |
Re: [code] for i in SATA PATA SAS USB FIRE WIRE ; do visit http://lmgtfy.com/?q=$i done [/code] | |
Re: That's like a choice between "disappointment" and "anguish" Both are fantastic for MS, because you paid for one screwed up OS so you can pay for another one. | |
Re: Do you have simple C programs to pass into your program. Because "any C program" can get real messy to deal with. [code] int main ( int argc, char *argv[] ) { char array[10]; /* array of char */ printf( "Sizeof char = %d\n", sizeof( char ) ); return 0; … | |
Re: The array sizeof thing only works when the definition of the array is in scope - that is, the compiler can see the actual array. An array declaration, say [ICODE]extern int array[ ];[/ICODE] or an array parameter [ICODE]void foo ( int array[ ] );[/ICODE] needs a different approach. |
The End.