5,331 Posted Topics
Re: After the cout (and add an `<< endl` to the line), you need to pause the problem. Usually this is done by taking some input, such as a line like `char avar; cin >> avar;`. That should keep the window open until you hit the Enter key. | |
Re: So, your 33 lines of C code generates 383 lines of assembler. And you expect us (most of us have day jobs) to analyze it? You set both ax and ay to the same value, and then call the atan2f() function with both variables. If atan2f() is a system library … | |
Re: 1. We don't do your homework for you (this is a repeat from my post on your other thread). 2. Show your work. If you don't make an effort, we can't help. | |
Re: 1. We don't do your homework for you. 2. Why Turbo-C? It is so out-of-date that it probably won't work on most modern machines. | |
Re: Why do you think SDL is dependent upon Code::Blocks? It is a development library with standard headers. Have you been to the SDL web site? Here is a link: http://libsdl.org/ | |
Re: Really, the only significance between "pure" Java and Android is the virtual machine that runs the byte code the respective compilers generate. For Android, that is called Dalvik. Its compiler generates different byte-code than that of native Java, and so requires a different virtual machine to interpret it. The source … | |
Re: It's a start at least. Take the input. Print it out to verify what you got. This may be what the teacher of the class wants at this point. So Winston, do you have a problem here? | |
Re: What virtual machine manager are you using? What is the host operating system? Did you verify the ISO or DVD that you used to install Vista - the disc checksum (usually an md5 or sha256 checksum)? | |
Re: What ddanbe said. Start with the math. Then code. Then when you have some problems with the code, post it here and we may be able to help you sort it out. | |
Re: Python is a run-time compiled scripting language. C++ is a compiled machine-level language. With python, you can edit your source code and run/test it immediately. With C++, you have to compile and re-link your application after editing the source code. A lot of people like python, and it is used … | |
Re: And what happens when you press the "any key"? Is this a new problem with the system? Was it working ok before this started? Have you tried booting into the recovery partition and running the recovery tools? In any case, it sounds like you have a disc or disc controller … | |
![]() | Re: This is a case where you need to incorporate multiple threads - one to handle the character, and another to play the music. In a single thread, only one activity can go on at a time. ![]() |
Re: What do YOU mean by "an updateable program"? Any program you have the source code for can be updated. So, please clarify what you want to accomplish. | |
Re: And that is just the start! :-) Remember, PHP is an object-oriented language. If you approach it that way (C++ for web sites), then you will do well. If not, then I have a gazillion examples of failed PHP projects that forgot that maxim! | |
Re: Assuming that your modem provides a real ethernet connection/port, then it should be capable of use by any of the ports on your router. So, if the WAN port is bad, you would see the behavior you did. Assuming that when you restarted the laptop and that the modem was … | |
Re: These are "abstract" types that express certain types that are compatible with the architecture of the CPU you are running on. For example, size_t is the size of an unsigned integer, a 64-bit value on 64-bit systems, and a 32-bit value on 32-bit systems. An ssize_t is a signed value, … | |
Re: No. We don't do your homework for you. You do the work, post your code with errors when you are stuck. Then we may help. | |
Re: dd is a great tool, but as with all great tools, its proper use requires great responsibility! All the other posts are right on - Rev. Jim, Gerbil, and Mike2k. I use dd to create bit-image backups of my system on a regular basis, and only use it to copy … | |
Re: Agree 98% with Mike2K, except the 2% that is the fact that EXT4 is a journalled file system. :-) Minor point, but agree - btrfs is still too new to rely upon for a reliable system. Ext3 and ext4 are both based upon the old ext2 file system, but with … | |
Re: iOS and OSX only run on Apple hardware. You will have to replace your laptop. Another solution is to install Linux on the laptop if you cannot afford the new hardware gear. | |
Re: What tinstaafl said. Look at the function definition on line 43: `int SingleGame(char file_letter);` You want to remove the semicolon as that makes the compiler pretty much ignore the rest of the code. | |
Re: You can use your virtual machine(s) to access external systems without difficulty. I do this frequently. I do like VirtualBox as a virtual machine manager since it allows me to make snapshots of a VM so that if it gets a virus or some such it won't infect the host … | |
Re: To remember: if you install Windows after Linux, you will have to reinstall the Grub bootloader and reconfigure it to know about both your Linux and Windows installation. Windows seems to think that it "owns" your system... :-( | |
Re: Good explanation Moschops. Now on to nit-picking and some common new C++ programmer errors. 1. Always initialize member variables that do not have default constructors, such as pointers. See code below. 2. DO NOT use NULL for null pointers in C++. Always use 0 (as shown below). NULL is usually … | |
Re: Why don't you just use qsort() to do this? It is a standard C function that works fine with scalar arrays like this in C++. I use it all the time, if needed. It is fast, proven, efficient (if the array is not already sorted). | |
Re: 1. You have to process the incoming data, such as verifying that it is legal for your program's needs/design. 2. You are responsible to format the data so that it can be reasonably displayed on the terminal. 3. This assumes a cursor-addressed terminal/display. You can use curses/ncurses libraries, or similar … | |
Re: I'm not sure it is possible to call shell scripts from PL/SQL. You can call embedded java code which in turn can call a shell script. I had to do that in the past to solve this problem. Here is a link that may help: http://stackoverflow.com/questions/4068816/how-to-call-a-shell-script-from-plsql-program | |
Re: This is a compiler, not a linker error. You are not including the header that has declared Swprintf. | |
Re: To make a long story short, we don't do your homework for you! Make an honest effort, show us your code, show use where you are getting errors or unexpected results, and then we may decide to help you. | |
Re: How do they differ? When you login with RDP / terminal services, you are getting logged into the session that your ID did last time. If they didn't log out, then you get the open windows and configurations active when they left. If you log out, then they get reset … | |
Re: And what? What is the problem? What is the error? ??? You are NOT providing enough information to help you in any tangible way... :-( | |
Re: With appropriate driver support, the 946GX does support OpenGL 2.0, which should have the shader support you need. Go to the Intel web site support page for these GPUs and see what they say. | |
Re: Static methods are NOT instance methods! An instance method will operate on instance variables typically, and require an instance to run. A class static method is like a global function, but associated more closely with a class, especially if the class has static member variables. | |
Re: If you get a degree by cheating using our work, do we get the degree? | |
Re: If he meant a Mac PC (Apple), then the BT driver should be part of the basic OS and you should only need to pair the external device with the system. Most devices have a setting (such as holding down the power-on button until the light alternates between red and … | |
Re: According to Intel it does. http://www.intel.com/p/en_US/support/highlights/graphics/intel946gz shows that is supports OpenGL, and another article indicates that as of Vista, Intel had OpenGL 2.0 drivers for the chip set. | |
Re: If this is a full-size sd card then it has a read-only slide that sometimes gets moved into the read-only from read-write position. If this is the case, that would explain your situation. If you are using a micro SD card and you use a full-size SD carrier, then the … | |
Re: As some wag once observed, "There are lies, damned lies, and then there are statistics!". One could make the case that most people think breathing is bad for your health, assuming you leave off (or minimize) the fact that the study was what people think about breathing truck exhaust fumes... | |
Re: Why specifically MSI? There are other motherboards that support the AMD FX series processors. Try some Google searches. | |
Re: Does the original Mac mouse work ok? What about the Magic Mouse? If the Mac mouse works, then it is likely not a computer problem, but a faulty mouse. If it also behaves erratically, then it is likely there is a problem with the USB or wireless controller in the … | |
Re: What Rik said is pretty correct, though it may be a bad solder joint in the power or battery connector. Unless you are a capable electronics technician, take it or send it in for repair by qualified people. | |
![]() | Re: Boot a live linux CD/DVD/USB drive and you can reformat/erase the device without any problem. To erase the drive completely, use the command (assume the SD card is /dev/sdb) "dd if=/dev/zero of=/dev/sdb bs=1M". That will happily zero out the entire device, in 1MB increments. Of course, it is easier to … |
Re: Sorry. We don't do your homework for you. Make an effort and we can help you debug your work. Do read this site's terms of service (TOS) in regard to this issue. | |
Re: Linux is NOT Unix, though they share a lot of design features, and support many of the same tools and application sets, though each application needs to be built for Unix or Linux separately. Unix was developed by Brian Kernighan, Dennis Ritchie, and Ken Ken Thompson at AT&T Bell Labs … | |
Re: You need to install the GNU compiler suite for your system. That will include gcc, g++, and such. You may also need to install make and cmake. | |
Re: A PDF form should not require writer to input the signature and fill out the form. The standard Acrobat viewer should work just fine for that, and it is available for most all Linux systems. | |
Re: This is just the machine playing with itself. What about real user input? This is a situation where a proper description of the flow of the game is required. Pseudo code is ok, or just text descriptions of how the game should flow, and how user input is interpreted to … | |
Re: Not enough information. Does this happen when you boot? After leaving computer alone for some time? What? |
The End.