5,237 Posted Topics
Re: > cp -Rv "/Src_dir/"$x destination_dir As a cheap and easy work-around, how about [code] cp -Rv "/Src_dir/"$x destination_dir sleep 120 [/code] That is, between each top-level directory, sleep for a couple of minutes to allow things to cool down a bit. | |
Re: > anyone to provide a short lecture! Very short. "Why haven't you used google?" Presumably, you're looking for something to hand in with minimal effort. | |
Re: [url]http://msdn.microsoft.com/en-us/library/fxszt639.aspx[/url] Specifically, _crtdumpmemoryleaks() | |
Re: > why should we be concerned about the quality in the early increments Would you buy a car, if you knew that the "quality" was just the coat of paint applied at the last step in production? Quality is built in to the product from the beginning, not some afterthought … | |
Re: Case 3 means you can do this. [code] int arr[10]; int *pStart = arr; int *pEnd = &arr[10]; // one past the end while ( pStart < pEnd ) { pStart++; } [/code] Note that whilst you can POINT to the element just off the end of the array, any … | |
Re: [url]http://www.lvr.com/usb.htm[/url] Whilst old devices like the serial port existed at specific addresses in the I/O address space of the X86, USB is a much more complicated thing. Oh, and if you're using some fossil compiler like Turbo C (like I guess you are), then you also need to update this … | |
Re: It would help if you used code tags. I mean, you almost made it, but you still fell short. Consider using the "review post" feature to make sure what you think you're getting is what you're actually going to get. | |
Re: Well that pretty much describes what I would do. What's the actual question? How to zoom an image? | |
Re: > char c[10]; /* declare a char array */ ... > while(fgets(c, 25, file)!= NULL) Do you know why you said 25 here? Do you know why you should have said 10? | |
Re: > but goes to an infinite loop for a multiline file. Kindly suggest. Because you only count bytes, not characters. > ofile.seekg(-2,ios::cur); By opening the file in text mode, you make it so "\r\n" is translated to "\n" when you read the file. So you get stuck in a "forward … | |
Re: Sure, what's your definition of "help". If by "help" you mean you do some work, get stuck, post what you've achieved so far and ask a question about why it doesn't work, or what to do next, then sure, we can help. But if your definintion of "help" is posting … | |
Re: Thanks!!! I'll be sure to let the "others" know :icon_rolleyes: | |
Re: First guess, you've stepped off the end of an array in main(). | |
Re: Of course the real answer would be to use another std::string which is totally safe, as opposed to some non-portable API which is only safe so long as the programmer knows what they're doing. | |
Re: 1. Sometimes it does. Though standard headers tend not to care so much. 2. Mostly true. You can point to constants in ROM, but dynamic memory (as the name suggests) is RAM. | |
Re: > while ((suma [COLOR="Red"]=[/COLOR] punto) && (suma !=7)) Perhaps you meant [COLOR="Red"]==[/COLOR] | |
Re: Perhaps a function called [ICODE]int checkBox( int grid[] [9], int sx, int sy );[/ICODE] which checks a 3x3 square starting at sx,sy. Where example calls would be [code] for ( sx = 0 ; sx < 9 ; sx += 3 ) { for ( sy = 0 ; sy … | |
Re: > p1 = w1/g2*100; Should this be g1 ? Also, try [ICODE]p1 = w1 * 100 / g1;[/ICODE] to preserve the precision. | |
Re: > I mean will they be able to establish a solid connection even though the socket API's and OS's are different. You mean the way the web works at present, across a whole plethora of different platforms? | |
Re: I can only be bothered to post this link. [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]Is it urgent?[/URL] > Develop a program in C++ Is that an [URL="http://web.comhem.se/hansdotter/romanes.html"]order?[/URL] | |
Re: > fflush(stdin); > gets(choice); Nevermind the network stuff, how about getting the basics right? [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]fflush(stdin);[/URL] [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351"]gets()[/URL] > send(new_fd, "Menu\n", 5, 0) 0, 1, 2, 3, 4 are also valid return results. You can't just assume that if it wasn't an error (-1), that the only other possible result must have … | |
Re: > you gave me this [URL="http://www.daniweb.com/forums/thread124790.html"]amazing code[/URL] when i post a thread a bout log files.. Thanks for pointing out to the rest of us (what some of us already knew) why it is a totally bad idea just to give students code without those students showing some effort. It … | |
Re: Better check your popen() manual, because most implementations are uni-directional. Either read-only, or write-only. | |
Re: No!. We're not here to rescue your ass from poor time management. | |
Re: You need to do more than just reposting your assignment! | |
Re: Maybe ask your friend? [URL="http://www.daniweb.com/forums/thread136471.html"]http://www.daniweb.com/forums/thread136471.html[/URL] A search is just - a for loop over the array of data - an if statement to compare each one with whatever it is you're looking for. | |
Re: Is sizeof(ARP_HEADER) what you expect? In other words, is padding and alignment an issue? | |
Re: Perhaps use case/esac with a pattern of [a-z]+ | |
| |
Re: [url]http://www.wotsit.org/[/url] has many file formats documented, and is a good place to start. Some formats are proprietary, meaning there may be little or no information in the public domain. You could also try "ttf file format" as a specific search, to locate other examples. | |
Re: Maybe, but you'll need to figure out code tags first/ Try reading some forum stickies. | |
Re: Using the IDE, navigate as follows (more or less) Project->settings Find the linker tab Find a dialog which says "additional libraries" Add "AdvAPI32.lib" to the list of libraries already present. Then build again. | |
Re: Use process explorer from [url]www.sysinternals.com[/url] to search for the exe to see what other programs (say virus scanner) may have some kind of access to the file which is preventing you writing to it. | |
Re: [code=c] FILE *fp = popen("myprog.exe", "r" ); while ( fgets( buff, sizeof buff, fp ) != NULL ) { // do stuff with lines } pclose( fp ); [/code] Use _popen() on windows. | |
Re: [URL="http://clusty.com/search?v%3afile=viv_999%4021%3aPRDgVh&v%3aframe=list&v%3astate=root%7cN687&id=N687&action=list&sw=%7cMobile%20phone%20from%20the%20PC%20via%20Bluetooth%7c&sec=1216877954&"]Here's a search for existing apps[/URL] | |
Re: > (*d)++; This means increment whatever d is pointing to. Since it seems to be pointing at c, it's going to increment c. > cout << a << " " << c; There's nothing stopping you pasting this statement between every other line to see how things change. | |
Re: Well adopting a consistent approach to indentation will help, not some chaotic mix you have at the moment. Eg. [code=c++] #include <string> #include <fstream> using namespace std; std::string word[5]; int main () { //Declaring Variables ifstream inFile; char choice; int secret_number; int user_number; // opening files inFile.open("secret number.txt"); //menu do{ … | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] And [url]http://www.catb.org/~esr/faqs/smart-questions.html#noprivate[/url] Perhaps you could work on the indentation to being with. It might help you follow the code flow. | |
Re: If we asked for more code, would you still post it without code tags? | |
Re: Oh, lets see... [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] - Not picking the right forum, this is C++, you want PHP - Speaking like some bozo script kiddie - Useless repetition of ! and . for no good reason. | |
Re: C++ is a language, as defined by ISO. Visual C++ is an implementation (like Borland, GNU, Intel). Any modern 32-bit compiler will probably meet your needs for learning C++. | |
Re: [url]http://www.microsoft.com/whdc/devtools/ddk/default.mspx[/url] | |
Police are looking for a very dangerous individual who shows up at crime scenes and kills random innocent bystanders. After months of investigation, they now believe the name of this individual is a Mr Rick O'Shea. | |
Re: Gee, someone else who can't read the forum rules. NO FREE HOMEWORK. In other words, you post some effort to solving the problem, not merely copy/pasting your assignment. | |
Re: Well if the address is consistent from one run to another, then you could set a hardware breakpoint to trap whenever that location is written to. That would then point you directly at the line of code which is messing with the memory it shouldn't be. | |
Re: In unix-land, this would be a doddle. [url]http://www.rootr.net/man/man/tee/1[/url] If you have [URL="http://www.cygwin.com/"]cygwin[/URL] installed, then you can just use the 'tee' provided in your cygwin bin directory. Though if you search long enough, you might find a native Win32 implementation as well. | |
Re: Did you put the template code in a header file ? Did you include that header file in the places where you use SortedType ? | |
Re: Perhaps the compiler has statically determined that the code can never be called, and has thus removed it. But as jesseb07 says, we need code. |
The End.