5,237 Posted Topics
Re: 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 … | |
Re: 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. | |
Re: [code] const char *saying[] = { "woof", "quack", "baaa" }; cout << sayings[ rand() % 3 ]; [/code] | |
Re: 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 … | |
Re: > 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 .. … | |
Re: [url]http://en.wikipedia.org/wiki/LC-3[/url] [url]http://en.wikipedia.org/wiki/Newton%27s_method[/url] | |
Re: Perhaps you're meant to use your file as your array. | |
Re: 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". | |
Re: The extra is ( hours - 40 ) * ( rate * 1.5 ) | |
Re: [url]http://en.wikipedia.org/wiki/Soundex[/url] | |
Re: > 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 … | |
Re: "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. | |
Re: 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 … | |
Re: 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. | |
Re: 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). | |
Re: Not forgetting the whole "void main" thing. And the somewhat dubious rearrangement of the constants in the equality. | |
Re: 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?". | |
Re: > 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 … | |
Re: 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] | |
Re: Excellent - you've dumped your assignment, how about you post an attempt and a question. | |
Re: *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 … | |
Re: > 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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. | |
Re: > 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. | |
Re: 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. | |
Re: [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] | |
Re: [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. | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: [ICODE]int *y = &x;[/ICODE] If x changes, then will *y | |
Re: 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] | |
Re: 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 … | |
Re: [url]http://clusty.com/search?query=acr120+contactless+smartcard+reader+API&sourceid=Mozilla-search[/url] | |
Re: > 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 … | |
Re: For future reference. [url]http://www.daniweb.com/forums/announcement8-3.html[/url] [url]http://www.daniweb.com/forums/thread78223.html[/url] | |
Re: Looks like a good start to me - keep going, you'll get there. | |
Re: 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 … | |
Re: 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 | |
Re: 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. | |
![]() | Re: 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. |
Re: 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. | |
Re: 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? | |
Re: Like typing in "Golay Code C source" into a search engine doesn't help at all? | |
Re: > 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 … | |
Re: Because windows.h isn't part of either standard. The standards committees can only decide what the standard header files should be called. |
The End.