5,237 Posted Topics

Member Avatar for cheesy_mel

If all you're doing is calculating file access time, what's wrong with just doing random position + random length ? The length of an individual record doesn't seem that important if you're not actually using that record when you're done. All you're going to produce is something like bytes/sec as …

Member Avatar for cheesy_mel
0
123
Member Avatar for drichird

Does your linear algebra text book describe a "less than" operation? If so, then it would be perfectly possible to write some code to do the same thing. Now whether std::vector implements that or not is for you to research, or maybe you can implement your own vector class.

Member Avatar for sarehu
0
110
Member Avatar for Black Magic

[code] const char *saying[] = { "woof", "quack", "baaa" }; cout << sayings[ rand() % 3 ]; [/code]

Member Avatar for Black Magic
0
97
Member Avatar for pierovic

I'm assuming you mean this snazzy new version - [url]http://www.turboexplorer.com/[/url] and not the crusty fossil Turbo C++ from 15 to 20 years ago. There are 3 things you usually have to configure (one if you're lucky) - the include path - this is where vtext.h is located. If it's in …

Member Avatar for Salem
0
231
Member Avatar for hacker9801

> but I dunno how I'd get the xml from the other data sent by the server. How many different types of data are there already? Just add another (XML map fragment) to the data stream, and a length to tell you how big the fragment is. [COLOR="Red"]0x00[/COLOR] 0x0a .. …

Member Avatar for Salem
0
161
Member Avatar for benchic_s

[url]http://en.wikipedia.org/wiki/LC-3[/url] [url]http://en.wikipedia.org/wiki/Newton%27s_method[/url]

Member Avatar for Salem
0
71
Member Avatar for Waseemn
Member Avatar for atencorps

In simple terms Analysis = What you're going to do (to meet the requirements). Design = How you're going to do it. Oh, and this is normally done BEFORE the project begins, not as an afterthought after you've "finished".

Member Avatar for ithelp
0
149
Member Avatar for NinjaLink
Member Avatar for Nicholas_G5
Member Avatar for w0090463

> i'm certain you will get an "A" Considering that it takes only one key press to cause it to lock up in an infinite loop, that's a rather optimistic opinion. Not to mention accessing undefined data if the entered filename is shorter than 4 characters. Unless of course that …

Member Avatar for ajay_kumar47
0
174
Member Avatar for abcd_nima

"the fat cat" Replace "fat" with "thin" Searching for "fat" gets you 3 substrings pre = "the " match = "fat" post = " cat" Append pre to the result Append "thin" to the result. If post also contains "fat", then go round again, otherwise append post and you're done.

Member Avatar for Salem
0
90
Member Avatar for jesseb07

But if you're already on Linux, then why not run the program with the UID of the user, then store your user specific settings in the users' home directory. You then make it personal by doing something like chmod(0400) on the file to remove all the bits from "group" and …

Member Avatar for jesseb07
0
106
Member Avatar for Black Magic

Well your use of conio.h suggests a fossil compiler. Since £ wasn't in the original 7-bit ASCII character set, mileage varies as to what you'll see.

Member Avatar for Ancient Dragon
0
107
Member Avatar for nilesh03
Member Avatar for sonia sardana

Degree of what? - the hour hand on an analogue clock - the minute hand perhaps (though that's an easy answer) - the height of the sun above the horizon (harder, depends on the date and your location).

Member Avatar for Salem
0
83
Member Avatar for paolomontero

Not forgetting the whole "void main" thing. And the somewhat dubious rearrangement of the constants in the equality.

Member Avatar for Salem
0
86
Member Avatar for redclay34

Any kind of experimental messing about with writing to \\.\PhysicalDrive0 is sure to lead to that inevitable question of "Now, where did I put those install disks?".

Member Avatar for Salem
0
88
Member Avatar for noey699

> i want it to run a program with in the C++ program with no disadvantiges or advantiges This would only be possible if there were only ONE method of running one program from another. Unfortunately, there are several, so you get to play the "A & D" game. As …

Member Avatar for Salem
0
176
Member Avatar for amit chaudhary

And if you're no longer using DOS, but instead some version of windows as your list of compilers suggests, then try this -> [url]http://msdn2.microsoft.com/en-us/library/aa363858.aspx[/url] and scroll down to [B]Communications Resources[/B]

Member Avatar for Salem
0
111
Member Avatar for mussa187

Excellent - you've dumped your assignment, how about you post an attempt and a question.

Member Avatar for mussa187
0
129
Member Avatar for saswatdash83

*sniff* - smells like a homework question to me. Here's one answer (for now) [ICODE]#define inline /* ha ha, no more in-lining today Jeeves */[/ICODE] I'll leave method number 2 for a day or so to add a sense of mystery and wonder (or merely just wait for someone else …

Member Avatar for Ancient Dragon
0
108
Member Avatar for agrawalashishku

> vertex *ver1=new vertex(5); > vertex *ver2=new vertex(5); The results of any two memory allocations are un-comparable. Sure, right at the start you may convince yourself there's a pattern, but run any decent sized program for a while and try it again and the results would be all over the …

Member Avatar for Ancient Dragon
0
117
Member Avatar for kartouss

Two things wrong with dTime 1. You're returning the value of an uninitialised variable. 2. You're ignoring that result (such as it is) in main.

Member Avatar for kartouss
0
238
Member Avatar for Kafana

Not so long ago, in a thread not so far away, the same basic question was asked and answered. [url]http://www.daniweb.com/forums/thread118718.html[/url]

Member Avatar for Salem
0
104
Member Avatar for r30028

I'm guessing this isn't the first new call in your program, which probably means that some prior allocation has been trashed. If you have a small, AND COMPLETE program which crashes you can show us, that may be of some use. Otherwise finding the root cause gets pretty tricky.

Member Avatar for Salem
0
74
Member Avatar for guy40az

> Can anyone tell me how I can read the resistance between pins 4 and 6 of the serial port Serial ports are digital. Try using the analog game port used for reading analog joystick positions.

Member Avatar for hammerhead
0
136
Member Avatar for BOTnPAID4

This tells you to use code tags - [url]http://www.daniweb.com/forums/forum2.html[/url] So does this - [url]http://www.daniweb.com/forums/forum8.html[/url] Wait for it, wait for it - [url]http://www.daniweb.com/forums/announcement8-3.html[/url] You're not going to believe this - [url]http://www.daniweb.com/forums/thread78223.html[/url] And not forgetting the watermark at the back of the edit window.

Member Avatar for Ancient Dragon
0
118
Member Avatar for AshishMehra

[url]http://sourceforge.net/search/?type_of_search=soft&type_of_search=soft&words=USB+Tv+Tuner[/url] [url]http://www.lvr.com/usb.htm[/url]

Member Avatar for AshishMehra
0
90
Member Avatar for Aamit

[url]http://www.daniweb.com/forums/thread119232.html[/url] You're still not listening. The OS does NOT allow you to go poking around the hardware in any manner you like. Even if you do manage to get it to compile, that's no guarantee of success. Plus, saying "an error" is meaningless. Provide actual details.

Member Avatar for Salem
0
103
Member Avatar for sksassociates

[url]http://clusty.com/search?query=Biztalk+developers+and+architects&sourceid=Mozilla-search[/url] Join forums which specifically mention it. Read the past posts to see if you can find familiar problems and solutions. Lurk for a while to learn who the main players are, and their personalities. Move on if you don't like what you see. See, unless you qualify "good" in …

Member Avatar for Salem
0
41
Member Avatar for laharven

What kind of C++ project did you create? Because that looks like Microsoft's managed C++ and not regular C++ which can be compiled with any C++ compiler.

Member Avatar for laharven
0
253
Member Avatar for natd

The inner loop should not be there - increment i once each time around the while loop. The second loop needs to count down from however many words you found. You MUST NOT use gets(), use fgets() instead. Countless examples of how to use it can be found.

Member Avatar for natd
0
812
Member Avatar for Nemoticchigga

Before you decide that threads are the magic bullet to fix all your problems, a cautionary tale, and some other approaches (like event based programming) to consider. [url]http://www.kuro5hin.org/story/2002/11/18/22112/860[/url] If you thought normal debugging was hard, then you've seen nothing which compares to trying to debug [URL="http://en.wikipedia.org/wiki/Race_condition"]race conditions[/URL]. A more colloquial …

Member Avatar for Nemoticchigga
0
106
Member Avatar for Farisnet
Member Avatar for samush

atoi() expects a pointer to a char array, containing a \0 char at some point? A single char doesn't work. [ICODE] IntArr[Pot10] = c - '0';[/ICODE]

Member Avatar for Salem
0
245
Member Avatar for peachslasher

I think if you have this as main(), and remove the setup function as a member of the class. [code] int main ( ) { Tree *T1, *T2, *T3, *T4, *T5; T1 = new Tree(2, NULL, NULL); T2 = new Tree(3, NULL, NULL); T3 = new Tree(5, NULL, NULL); T4 …

Member Avatar for Salem
0
152
Member Avatar for rrnaveenbabu

[url]http://clusty.com/search?query=acr120+contactless+smartcard+reader+API&sourceid=Mozilla-search[/url]

Member Avatar for Salem
0
160
Member Avatar for only me

> write C++ code to display all emrip numbers between 2 and 1000 That's not a question, that's a demand. Do your own homework, or at least try to and show us what you can do by yourself. Doing so tells us many things: 1. You're not a slacker looking …

Member Avatar for Salem
0
101
Member Avatar for stan.joe1

For future reference. [url]http://www.daniweb.com/forums/announcement8-3.html[/url] [url]http://www.daniweb.com/forums/thread78223.html[/url]

Member Avatar for dmanw100
0
325
Member Avatar for mikky05v
Member Avatar for mikky05v
0
138
Member Avatar for hobbsalex

Having passed a particle pointer to add_to_clust(), do you then go on to modify (or free) the neighbour list outside the function? Because at the point you do this added->p.neighbourlist = part->neighbourlist; you have two particles pointing at the SAME neighbour list. If you change/delete that neighbour list in one …

Member Avatar for Salem
0
97
Member Avatar for bobrien314

Same as linked lists in C, but with more attention to the detail of managing memory and pointers. Or get a version of GCC which targets MIPS, then study the output of gcc -S prog.c

Member Avatar for bobrien314
0
800
Member Avatar for chemicaldave

Your compare function has at least 2 problems 1. It doesn't always increment index, so it can get stuck in an infinite loop. 2. result isn't always assigned, so it can return junk.

Member Avatar for chemicaldave
0
140
Member Avatar for DigitalPackrat

It might be worth reading, but I wouldn't spend too long on it. Like learning asm when you're programming in C++. You don't need it, but if you know a few things, you'll have an appreciation of some of the finer points.

Member Avatar for eager
0
253
Member Avatar for emilio

That, as soon as you call fork(), you have no control over the scheduling of the parent and child processes. Anything can happen in any order, and can vary from one run to another.

Member Avatar for emilio
0
480
Member Avatar for fredmac

You ignored this thread - [url]http://www.daniweb.com/forums/announcement118-3.html[/url] You also ignored the watermark at the back of the edit window. Are you really paying any attention at all?

Member Avatar for jephthah
0
202
Member Avatar for Cbeginner_us

Like typing in "Golay Code C source" into a search engine doesn't help at all?

Member Avatar for Cbeginner_us
0
202
Member Avatar for nclester

> The colors are run together and they're too "loose" for my taste. Which is more secure, a red pixel or a green pixel? Do not for a moment think you and your friends can produce anything of industrial quality in a few weeks of random hacking. Sure you might …

Member Avatar for sarehu
0
257
Member Avatar for JoBe

Because windows.h isn't part of either standard. The standards committees can only decide what the standard header files should be called.

Member Avatar for Ancient Dragon
0
348

The End.