5,237 Posted Topics

Member Avatar for rockhauler

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

Member Avatar for rockhauler
0
170
Member Avatar for softdev

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

Member Avatar for sarehu
0
103
Member Avatar for kux

[url]http://msdn.microsoft.com/en-us/library/fxszt639.aspx[/url] Specifically, _crtdumpmemoryleaks()

Member Avatar for Kob0724
0
186
Member Avatar for kneel

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

Member Avatar for chaosprime
0
152
Member Avatar for kinger29

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 …

Member Avatar for Salem
0
310
Member Avatar for chanda gul

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

Member Avatar for chanda gul
0
372
Member Avatar for findlay

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.

Member Avatar for Salem
0
149
Member Avatar for cam875

Well that pretty much describes what I would do. What's the actual question? How to zoom an image?

Member Avatar for Salem
0
152
Member Avatar for me_roy

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

Member Avatar for Major Major
0
119
Member Avatar for srisaravanavel

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

Member Avatar for srisaravanavel
0
108
Member Avatar for kavithabhaskar

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 …

Member Avatar for eSeong
0
84
Member Avatar for faisaly
Member Avatar for Salem
0
222
Member Avatar for vadan
Member Avatar for Salem
0
173
Member Avatar for QuantNeeds

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.

Member Avatar for QuantNeeds
0
1K
Member Avatar for pavel989

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.

Member Avatar for pavel989
0
144
Member Avatar for gispe

> while ((suma [COLOR="Red"]=[/COLOR] punto) && (suma !=7)) Perhaps you meant [COLOR="Red"]==[/COLOR]

Member Avatar for Prabakar
0
89
Member Avatar for michael1201

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 …

Member Avatar for Salem
0
197
Member Avatar for plike922

> p1 = w1/g2*100; Should this be g1 ? Also, try [ICODE]p1 = w1 * 100 / g1;[/ICODE] to preserve the precision.

Member Avatar for Ancient Dragon
0
122
Member Avatar for cam875

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

Member Avatar for cam875
0
239
Member Avatar for nikki123

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]

Member Avatar for Salem
0
115
Member Avatar for Hannahlv

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

Member Avatar for Salem
0
130
Member Avatar for EngSara

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

Member Avatar for Salem
0
87
Member Avatar for TheBeast32

Better check your popen() manual, because most implementations are uni-directional. Either read-only, or write-only.

Member Avatar for TheBeast32
0
1K
Member Avatar for sinner
Member Avatar for ArkM
0
78
Member Avatar for jamshed
Member Avatar for kneel

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.

Member Avatar for Salem
0
109
Member Avatar for triadR

Is sizeof(ARP_HEADER) what you expect? In other words, is padding and alignment an issue?

Member Avatar for triadR
0
250
Member Avatar for picass0
Member Avatar for picass0
Member Avatar for CoolGamer48

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

Member Avatar for ArkM
1
145
Member Avatar for dashisneo

Maybe, but you'll need to figure out code tags first/ Try reading some forum stickies.

Member Avatar for VernonDozier
0
120
Member Avatar for kriscbe
Member Avatar for ThomsonGB

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.

Member Avatar for ThomsonGB
0
487
Member Avatar for plike922

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.

Member Avatar for plike922
0
117
Member Avatar for TheBeast32

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

Member Avatar for TheBeast32
0
377
Member Avatar for gispe
Member Avatar for amot_invent

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

Member Avatar for amot_invent
0
132
Member Avatar for sahmedsa

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

Member Avatar for sahmedsa
0
287
Member Avatar for greyghost86

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

Member Avatar for Salem
0
185
Member Avatar for xlx16

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

Member Avatar for ssharish2005
0
137
Member Avatar for gispe
Member Avatar for VernonDozier
0
148
Member Avatar for mansangeet

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.

Member Avatar for nav33n
0
77
Member Avatar for phouse512

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

Member Avatar for phouse512
0
247
Member Avatar for Brent.tc
Member Avatar for Nick Evan
0
243
Member Avatar for Salem

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.

Member Avatar for bloody_ninja
0
102
Member Avatar for adewale1

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.

Member Avatar for Salem
0
96
Member Avatar for franziss

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.

Member Avatar for franziss
0
1K
Member Avatar for Slade

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.

Member Avatar for eggi
0
204
Member Avatar for MLT1988

Did you put the template code in a header file ? Did you include that header file in the places where you use SortedType ?

Member Avatar for MLT1988
0
150
Member Avatar for Nemoticchigga

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.

Member Avatar for Nemoticchigga
0
287

The End.