5,237 Posted Topics
Re: The 'comm' command allows you to find out - lines only on the left - lines only on the right - lines common Use this to extract a list of files which are common to both directories. | |
Re: Sounds interesting - you should have a lot of fun doing that. What do you need us for? | |
Re: > so why would one need to know assembly? Curiosity mostly. Being able to follow the code the compiler generates, and very rarely writing very small snippets works for me. | |
Re: Easy, make outputbuffer a void* | |
Re: Never compare floats using == [url]http://c-faq.com/fp/fpequal.html[/url] | |
[URL="http://linuxgazette.net/issue45/orr.html"]You had to do what with the seat?[/URL] [URL="http://bash.org/?233331"]you wake up with a new disease[/URL] | |
Re: If you post some implementation, then we might be able to help you with it. | |
Re: Perhaps read up on ios::app means append Also, you open a file for output, then try to open it for input (does that even work?) | |
Re: What you describe happens all the time with almost every function, and it isn't a problem. Perhaps you mean the alternative of where T2 tries to call X(), while T1 is already in X(). That's re-entrancy, and is a far more interesting problem. And no, you can't just "test" to … | |
Re: Read this [url]http://www.daniweb.com/forums/announcement8-2.html[/url] Make an effort. Read this [url]http://www.daniweb.com/forums/announcement8-3.html[/url] and post your attempt. | |
Re: If n! is n * fac(n-1); Then log(n!) = n + lfac(n-1) If you use log10, it's even better :) | |
Re: > linep = (char *)&line; Try strcpy() instead. | |
Re: > Anyway, I just started IT. Is this school or employment? | |
[url]http://en.wikipedia.org/wiki/Sarbanes-Oxley_Act[/url] I mean, wasn't that supposed to stop all the financial nonsense in the US? Don't be stupid, it's the wrong tool for the wrong job. Rushed through in some half-assed attempt to show the media they were doing something. The few $Bn which the likes of Enron etc were … | |
Re: Yes, different assemblers (masm, tasm, nasm, gas) have different syntax. [url]http://www.delorie.com/djgpp/v2faq/faq17_2.html[/url] | |
Re: If it's that new, it should be Dell's problem. | |
Re: Compile your c++ program with a c++ compiler. gcc prog.cpp will produce that message. Try gcc prog.cpp or g++ prog.cpp | |
Re: But it's only low because the global economy has been torched, not because of some military "success" (or otherwise). I bet that aspect wasn't in the sales pitch for war. > Really, what's the cause of this steep decline of oil price? Same thing that drove it up. Actual supply … | |
Re: [url]http://clusty.com/search?query=calling+c+from+perl&sourceid=Mozilla-search[/url] | |
Re: What's a [URL="http://www.daniweb.com/forums/thread165986.html"]search engine?[/URL] | |
![]() | Re: > I have a text document in the same folder as the cpp file and all of the rest of it Where is the executable, in relation to the .cpp file? Where is the main project file, in relation to the .cpp file? If you've got something like [code] work/project.dsp … |
![]() | Re: And your point being what? That sometimes no matter how much you google, that you can't find a ready-rolled answer? What ever happened to trying your own homework. I imagine the point is to see who's learnt something, not who's got the best google skills. |
Re: [ICODE]g++ -c cppcode.cpp gcc -c main.c g++ -o test main.o cppcode.o[/ICODE] Oh, and that might not work either. This is how to mix C and C++ [url]http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html[/url] In particular, the main() needs to be C++ so that global ctors/dtors get called. | |
Re: This has some interesting possibilities [url]http://clusty.com/search?query=HP35s+internals&sourceid=Mozilla-search[/url] In particular, [url]www.hpmuseum.org[/url] seems like a good place to look around. | |
Re: You need to pass references to the vectors you are expecting to be updated. Otherwise, it's just [code] void foo ( int a ) { a = 3; } int main ( ) { int b = 0; foo( b ); // b still 0 here, not 3 } [/code] … | |
Re: Use a for loop. That's pretty standard when you have an array, that is to use a for loop to iterate over the elements of the array. | |
Re: > *10000000000000000000 What's this do - apart from arithmetic overflow? | |
![]() | Re: Do you have a manual for the C library functions? Are you using it? At the moment, you just seem to be typing in stuff without even beginning to think about what you're really saying. |
Re: > I want to buy an EEE PC with Windows. Does it come with a licenced copy of windows on CD? Does it have the authentication sticker, containing the 25-character code? If so, you're good. Any XP installation CD will do, all you need is the authentication code for that … | |
Re: > int rePass(0); //first password Most passwords are strings, not int's > goto PassCheck; Use a while loop. | |
Re: Use CreateProcess() It's the one native to your OS, and will ultimately give you the most control over what happens. Use system() if you require no more sophistication than would be provided by a batch file. In other words, very basic "run & forget" approach. | |
Re: You have to read up on the (sometimes strange) rules about quoting and variable substitution in various shells. Try say [ICODE]sed $i's/$/'$age'/g' birthday.csv[/ICODE] Or maybe [ICODE]sed "${i}s/$/${age}/g" birthday.csv[/ICODE] | |
Re: You have to allocate for each * in turn, starting with the outermost one, and working your way inwards. [code=c++] Graphics::Graphics() { Width = 10; Height = 10; TextArray = new char*[Height]; for ( int h = 0 ; h < Height ; h++ ) { TextArray[h] = new char[Width]; … | |
Re: Well the first thing you need to tell us is which OS you're using, and which compiler. As you've already discovered, this kind of direct access to the hardware is highly specific to your own circumstances. | |
Re: > HELLO I AM snip snip heard it all before snip snip First you need to learn how to read - specifically, forum rules and not hijacking year old threads with pitiful "me too" posts. Then learn some bloody netiquette by not YELLING ALL OVER THE PLACE!!!! - sheesh [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] … | |
Re: Read up on localtime() and mktime(), both in time.h | |
Re: > Again we really need more information Specifically, your operating system and compiler. And try to be more specific than say "windows" and "borland", as there are many versions of both. | |
Re: > Why should i put a ; ? Because it needs it. However, it might be better placed at the end of InputHandler.h (say at the end of a class declaration), rather than in your C++ code just to make the compiler shut up. | |
![]() | Re: > whereas windows seems to place it in the middle of a system c-drive. In a single-drive system, you can easily get into the state of "swap a page out to disk, load a page of data for a program". This creates a hell of a lot of head movement. … |
Re: [quote=c0x draft] 17.6.4.3.3 Global names [global.names] 1 Certain sets of names and function signatures are always reserved to the implementation: — Each name that contains a double underscore _ _ or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use. — … | |
Re: *prev = NULL; *next = NULL; Should be prev = NULL; next = NULL; | |
Re: [url]http://en.wikipedia.org/wiki/MD5[/url] MD5 isn't really that safe anymore. > I will not go into specifics but the users will have access to very sensitive data Like banking or medical details? Many countries have legal requirements for compliance (and such like). > I need to have the best and most secure protection … | |
Re: Your average s/w engineer can work regular hours (for the most part). A DBA would probably have to work a shift pattern, and perhaps even be "on call". If you want a job which can drag you out of bed at 3am on xmas morning, then that has a premium … | |
Re: Read this [url]http://www.daniweb.com/forums/announcement8-3.html[/url] Then allocate some memory for s before trying to write data. | |
Re: Try listing it on [URL="http://cgi.ebay.com/Crossbeam-APM-8400-4-Gig-RAM-80Gb-HD_W0QQitemZ300271024188QQcmdZViewItemQQptZCOMP_EN_Security_Firewall?hash=item300271024188&_trksid=p3286.c0.m14&_trkparms=66%3A2|65%3A16|39%3A1|240%3A1318"]ebay[/URL] as well. | |
Re: This kind of question gets asked a lot. And it usually gets the same kind of answers as well. | |
Re: [url]http://en.wikipedia.org/wiki/Comparison_of_free_software_licences[/url] So many to choose from. | |
Re: [URL="http://www.youtube.com/watch?v=j9J9rTZJBmw"]Love Is A Battlefield[/URL] |
The End.