2,867 Posted Topics
Re: Agreed, it sounds like the game is trying to use an unsupported screen resolution, in which case the monitor would go blank or switch off. You should probably check the manual of both your monitor and your game to find out whether your monitor meets the minimum screen resolution requirements … | |
Re: >When I compile it, the system show me this two errors. The first error is because the compiler has no idea what 'beta' is. Look at this section of code: [code=cplusplus] class alpha { private: int data; public: alpha() { data = 3; } friend int frifunc(alpha, beta); // friend … | |
Re: FreeBSD, like most *nixs, requires a Mail Transfer Agent (MTA) to send external mail. On FreeBSD, sendmail is setup as the default MTA, so you should probably learn how to use that before trying out other MTAs. The FreeBSD handbook covers the configuration of sendmail fairly well: [url]http://www.freebsd.org/doc/en/books/handbook/sendmail.html[/url] | |
Re: >people say the program is the best at arbitrary precision arithmetic It may not be the best, but it's definitely one of the better ones. It's just how [URL="http://en.wikipedia.org/wiki/Floating_point"]floating point precision[/URL] works. You get a larger range, but the precision goes way down. What you're looking for is an exact … | |
Re: Perhaps try [URL="http://support.microsoft.com/kb/180969"]exporting the mail[/URL] first, then importing it into your mail client of choice. | |
Re: Gee Dani, why don't you just rename your css files? :icon_cheesygrin: | |
![]() | Re: >xandors sucks. they made it look like windows, which is retarded. it's ugly and sucks. I'm so sorry you consider an operating system 'sucky' when it doesn't match your definition of 'beautiful'. And unless someone can give a number of valid reasons why Xandros is a lousy operating system, I'm … |
Re: [QUOTE=jbennet;609072]zips should be fine. In the past i have uploaded a few megs worth of html/php/css/jpegs in a zip file[/QUOTE] Have you tried uploading a zip file recently? | |
Re: More information please. When you start up your computer, is an option to boot Windows listed anywhere in GRUB (the bootloader)? What is the output on the screen? | |
Re: You had [code=cplusplus]#include "Window.h"[/code] at the top of Main.h, right? You'll also want sentinels for your header files, so they don't get included twice: Window.h [code]#ifndef WINDOW_H #define WINDOW_H // code goes here #endif[/code] Main.h [code]#ifndef MAIN_H #define MAIN_H // etc #endif[/code] and so on. Aside from that, perhaps elaborating … | |
Re: Boot off your Gentoo installation disk. Open a terminal, get root with su, then mount your root partition: [code]mount /dev/sd[COLOR="red"][B]Xn[/B][/COLOR] /mnt/gentoo[/code] Replace 'sdXn' with the device that corresponds to your Linux root partition. If you're unsure about which device is your root partition, try running [icode]fdisk -l[/icode] first. Repeat the … | |
Re: You don't need to format your disk prior to installing FreeBSD. The installer allows you to run fdisk, which you can use to repartition your disk. After doing so, the installer will format the partitions you created and will copy the operating system onto them. | |
Re: >I get the following "undefined reference" error You need to link with the libraries too. Simply including header files isn't enough; at the linking stage the linker needs the actual implementations for the functions which were used in the program. Look in the documentation for which libraries you need to … | |
Re: [code]t = current->next;[/code] This is where your problem lies. Since the memory address 't' is purely local (it's just been pushed onto the stack), when the function returns, the linked list pointer in the parent function will keep pointing to the address of the memory that you deleted. | |
Re: Moved to Windows forums until further details of the system are provided. | |
Re: Several ways to do it, depending on how you run the program: - If you're using relative paths in your program, they will always be relative to the current working directory. For example, if you always run your executable from the current working directory, you could find the right location … | |
Re: You might want to try running your program from the command line as opposed to your IDE's built in console (I assume that's what you're using right now). | |
Re: You'll want to create a structure that is designed like a binary tree. One pointer points to the next row in the matrix, and the other points to the next element in the row. So your structure would look something like: [code=c] struct matrix { int data; struct matrix *next; … | |
Re: [url]http://httpd.apache.org/docs/2.2/howto/access.html[/url] Your httpd.conf file is located in [icode]/private/etc/apache2[/icode]. | |
Re: It's up to you to figure out what kind of text you're trying to read. All ReadFile() does is grab raw data from a file and put it in a buffer. It doesn't care whether it's binary or ASCII or Unicode or something else, it's just doing what you told … | |
Re: >why would we use a recursive function to check if it's in ascending order? It's just another poor example of teachers trying to get students to use recursion. In most cases the solution to the assignment they hand out would be much better suited to a loop, and the result … | |
Re: It all depends on the size of the browser window that you're using, because if the image can't fit in your browser window, it will automatically be scaled to as large as possible within the current browser window you're using, which can often affect the readability of text in a … | |
Re: >IE already tracks peoples habit by storing URL's to Index.dat file That's not tracking. index.dat is nothing more than a database residing on your hard drive which holds various bits of data, including web history, for Internet Explorer. At no time is that file ever sent back to Microsoft, although … ![]() | |
Re: >a friend of mine said they weren't needed In that case, I wouldn't recommend relying on your friend for teaching you good coding practices. A break statement is always needed in a switch() statement unless you want execution to continue into the next case, or you're already at the last … | |
Re: This should give you a better idea of what a ring buffer is. [url]http://en.wikipedia.org/wiki/Circular_buffer[/url] All that's left to do is for you to implement it. :icon_wink: | |
Re: The official download site for the Linux kernel is kernel.org. You can also get kernel source through your package manager, although keep in mind that Red Hat Linux is an old and outdated distro, so you probably won't be able to get an up to date kernel with it. In … | |
Re: [QUOTE=Ancient Dragon;611162]That's rather odd -- c++ classes normally do not teach C functions such as printf(). All the code you posted is C, not C++.[/QUOTE] I don't think that's such a bad idea to teach C first. C in itself is actually a simpler language than C++, and it's the … | |
Re: Use the same logic that you would use if you were outputting a 2D array. Nest two loops, and have two separate indices (in this case, iterators), which keep track of your position in the vector. Something like this: [code=cplusplus] std::vector< std::vector<int> > my_vector; // ... std::vector< std::vector<int> >::iterator iter_x; … | |
Re: [url=http://www.daniweb.com/forums/post465204-7.html]That's what I thought, too[/url]. But then again, looking in the forum archives, I see that Narue became a moderator because she [URL="http://www.daniweb.com/forums/showthread.php?t=19571"]requested[/URL] the position. I don't think it's a hard-set rule in any case. | |
Re: Tell me which language the code is written in, and I'll move it to the appropriate forum. Lounges aren't meant for support questions, and you'll receive better help if it's in the Software Development forums. | |
Re: And don't bother posting any code. We all have psychic powers which allow us to see into your mind and your computer and can tell you where your problem lies. In this case, you're dereferencing a null pointer on line 34. | |
Re: Apology accepted. Here's a link to the rules you were supposed to read when you signed up (in particular, "Keep It Organized"): [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] >I still, however, require assistance on two articles I am writing. I left one thread: [url]http://www.daniweb.com/forums/thread124412.html[/url] Finally, this thread would be better suited in the Community Feedback … | |
Re: I highly doubt that you have a virus on entourage. It's more likely that someone is sending email from their account, with your return address, effectively spoofing. Then you recieve the bounced emails that you never sent. I cannot find any reports of a Entourage virus on OS X. | |
| |
Re: I'm not quite sure I entirely agree with some of the things he said, such as here: [quote=the article]Yes, evolution by descent from a common ancestor is clearly true. If there was any lingering doubt about the evidence from the fossil record, the study of DNA provides the strongest possible … | |
Re: If it's the Javascript, a temporary solution would be to disable the client-side scripting enhancements option in your Control Panel here at DaniWeb. | |
Re: [url]http://www.oracle.com/technology/tech/oci/occi/index.html[/url] | |
Re: That's because the memory address contained in the pointer is lost when the function is popped off the stack. In other words, you can modify the value that the pointer points to, but you can't modify the memory address that the pointer holds (well, you can, but the change won't … | |
Re: [QUOTE=dazed&confuzed;597594].cpp is what you have to save the file as ..... one is the main page and the #include functions.cpp is on a notepad doc. ----- the .cpp is called from a diff file[/QUOTE] Nope, sorry, but it just isn't supposed to work like that. If you're using an IDE, … | |
Re: I added code tags, but I see it didn't help much. Also, we don't have a category for the Matlab programming language, so instead I've moved it to "legacy and other languages". | |
Re: If you don't know how to use an array, I'd seriously question your ability to write a sorting function. | |
Re: >What is that mean? I did login though... But you didn't log in [i]with that shell[/i]. In other words, you're running a shell within a shell, and you must exit those shells first before you can log out. So, type 'exit' to end the csh session, then type 'exit' or … | |
Re: Make a class that contains the firstname, lastname, and score. Now overload the '<' operator for it so that returns the object which is 'smaller' in terms of lastname. Finally, run std::sort on the entire vector, which will in turn use your overloaded operator< for your class. | |
Re: >It is most likely a spammer forging her email address in the header...... No, it's most likely a hacked hotmail account. When your email password is changed without your knowledge, that's usually a subtle hint that someone else has access to your account. :icon_rolleyes: If you haven't tried already, use … | |
Re: You need to get yourself a compiler. If you get Visual Studio 2008 Express or Dev-C++ (both free downloads), you'll notice a code editor's built in. | |
Re: A couple of other notes: - [URL="http://users.aber.ac.uk/auj/voidmain.shtml"]void main is evil[/URL]. Don't use it. - You shouldn't have your function prototype inside main(). Move line 13 to somewhere before main() | |
Re: [QUOTE=jimJohnson;597603]i know that but having trouble computing that in coding terms[/QUOTE] So if you have [B]4[/B] items, you would need to find items [B]2[/B] and [B]3[/B]. (Hint: 2 is half of 4.) | |
Re: The correct command to list [I]all[/I] your network interfaces (and their states) would be: [code]ifconfig -a[/code] If you're running this as a normal user, you'll probably have to do: [code]/sbin/ifconfig -a[/code] |
The End.