5,237 Posted Topics

Member Avatar for serdengil

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 "

Member Avatar for Lerner
0
122
Member Avatar for DarthPJB

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

Member Avatar for DarthPJB
0
325
Member Avatar for OneDreamCloser

[url]http://cboard.cprogramming.com/c-programming/119649-malloc-why.html[/url]

Member Avatar for Salem
0
135
Member Avatar for swinefish

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

Member Avatar for Nick Evan
0
169
Member Avatar for Elektrikz

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.

Member Avatar for tux4life
0
282
Member Avatar for DoEds

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

Member Avatar for DoEds
0
113
Member Avatar for swolll

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?

Member Avatar for swolll
1
626
Member Avatar for lotrsimp12345

File permissions are platform specific, so you only get access to them using platform specific APIs.

Member Avatar for lotrsimp12345
0
114
Member Avatar for jralexander137

True, removing the redundant #include <iostream> and making sure to invoke the C compiler would be a lot simpler than going the other way.

Member Avatar for Salem
0
170
Member Avatar for gilpin

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]

Member Avatar for gilpin
0
173
Member Avatar for NiGhtMarEs0nWax

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

Member Avatar for Rashakil Fol
0
170
Member Avatar for willywonka

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

Member Avatar for willywonka
0
138
Member Avatar for jsuvrat

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.

Member Avatar for Salem
0
273
Member Avatar for syd919

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?

Member Avatar for syd919
0
123
Member Avatar for VIkhers
Member Avatar for ubi_ct83

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

Member Avatar for kvprajapati
0
177
Member Avatar for jralexander137

Well you're not using fscanf correctly, so no wonder it blows up. [code] int val; while ( while(fscanf(dFile, "%1d", &val ) == 1 ) [/code]

Member Avatar for Salem
0
101
Member Avatar for sarabah

[url]http://www.intelleflex.com/Products.Readers.asp[/url] 5 seconds of google - try it sometime.

Member Avatar for Salem
0
47
Member Avatar for adcodingmaster

[url]http://www.daniweb.com/forums/thread222501.html[/url] OK, I've replied to both your questions now :icon_wink:

Member Avatar for caperjack
0
181
Member Avatar for ameneh_p

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

Member Avatar for mrnutty
0
157
Member Avatar for helpme123456789

Shouldn't the OP be looking for a C++ solution, rather than messing with archaic C-style functions and char arrays?

Member Avatar for VernonDozier
0
227
Member Avatar for Avatar99

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.

Member Avatar for Avatar99
0
137
Member Avatar for enjoidooks

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 …

Member Avatar for Salem
0
87
Member Avatar for pkgr8

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]

Member Avatar for Salem
-1
83
Member Avatar for pratzmnnit
Member Avatar for Ultratermi

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

Member Avatar for Ultratermi
0
137
Member Avatar for volscolts16

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?

Member Avatar for Salem
0
184
Member Avatar for harshadap

You really need to work on those thread titles. [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url]

Member Avatar for stephen84s
0
90
Member Avatar for F2guy

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.

Member Avatar for Salem
0
139
Member Avatar for dewyShaikh

[url]http://www.daniweb.com/forums/thread222793.html[/url] Make your mind up on which language(s) you're using.

Member Avatar for Salem
0
60
Member Avatar for geoffy0404
Member Avatar for mrman208
Member Avatar for Salem

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.

Member Avatar for Dani
0
74
Member Avatar for zhinokin
Member Avatar for anu_anu

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 …

Member Avatar for Salem
0
85
Member Avatar for kaninelupus

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

Member Avatar for lllllIllIlllI
-2
215
Member Avatar for naveedshaikh

Welcome. Please look around [url]http://www.daniweb.com/forums/forum1.html[/url] and engage in some discussions on some of the recent threads.

Member Avatar for Salem
0
30
Member Avatar for Alexar93

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]

Member Avatar for Salem
0
205
Member Avatar for novice_33

> How I will load it and then assign it to hash table So is this about reading files, or hash tables?

Member Avatar for Salem
0
146
Member Avatar for fareast87

[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

Member Avatar for fareast87
0
101
Member Avatar for SeanBlack0000

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

Member Avatar for Salem
0
39
Member Avatar for namasteall2000

Already answered [url]http://cboard.cprogramming.com/c-programming/119526-help-lru-replacemnet.html[/url]

Member Avatar for Salem
0
89
Member Avatar for siragnas
Member Avatar for Salem
-1
31
Member Avatar for jBat

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.

Member Avatar for jBat
0
76
Member Avatar for roshnal

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

Member Avatar for Salem
0
149
Member Avatar for adcodingmaster
Member Avatar for breeze rich

[code] for i in SATA PATA SAS USB FIRE WIRE ; do visit http://lmgtfy.com/?q=$i done [/code]

Member Avatar for Salem
0
18
Member Avatar for m_d_ghoda

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.

Member Avatar for necrolin
-1
72
Member Avatar for vanalex

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

Member Avatar for Protuberance
0
187
Member Avatar for ivatanako

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.

Member Avatar for Salem
0
227

The End.