560 Posted Topics
Re: The stuff you see on tv is imaginary. Saying the project is a recreation of skynet portrays the wrong idea about the technology. The competition would be intersting though. Specifically, it tests the following: Autonomous Analysis, Autonomous Patching, Autonomous Vulnerability Scanning, Autonomous Service Resiliency and Autonomous Network Defense. I can … | |
Re: "Give a man a fish, feed him for a day, teach a man to fish, feed him for a lifetime." We're not going to do it for you. If you don't understand c, then I would suggest you pay attention in class! Do you have a textbook? If so, which … | |
Re: In your first example, your using an interrupt to make a system call. If you want, you can think of system calls (and more generally, interupts) as a kind of primitive api. Your not 'directly' interacting with the hardware. You can also make calls to libraries in linux, much the … | |
Re: I beleive TFS has some sort of capability of importing git repositories, so you might have better luck going Mercurial -> Git -> TFS. | |
Re: "vanilla headers in dev-cpp" I suppose you want to stick with the C++ Standard Library? Or are you allowed to use the windows API as well? You can't make a UI just by using standard C++ libraries, unfortunatly. I'll assume you already know how to do [file IO](http://www.cplusplus.com/doc/tutorial/files/) in C++. … | |
Re: Are you having a problem with understanding the math? In decimal, another way to write 123 is: `123 = 1*10^2 + 2*10^1 + 3*10^0` Same argument can be made for hex: `0x17 = 1*16^1 + 7*16^0 = 23` Programming this should be easy. Try it. | |
Re: If you need it to handle atleast 10 byte integers, I would probably just use 2 uint64_t's. It would be much faster then an array of chars, and the code would be nice and simple. | |
Re: http://msdn.microsoft.com/en-us/library/zffx82xt%28v=vs.90%29.aspx | |
Re: We're not going to write it for you. You should already know that a prime number is a number that is only divisible by 1 and itself. So, the most trivial way to check if p is prime is to check to make sure it's not divisible by any number … | |
Re: 1. Why are you using conio.h? It's an old unsupported library that you should have stopped using two decades ago. It's use is incorrect. 2. scanf_s is only usable with Microsoft compilers. You should probably use scanf instead. Or even safer, use fgets to get a string, and examine it … | |
Re: Just use if-else-if-else statements. ie, `if (R1 < 2) val = 1;` etc. | |
Re: I personally like Tkinter. There is also [Kivy](kivy.org/) which also works on tablets. | |
Re: To find the grand total, have a sum outside of the loop, and add every total to the sum every iteration. Ie: ... int sum = 0; do { ... sum += a*b*c*d; } while (i != rooms) Some other things wrong with your code: 1. `main` always returns `int`. … | |
| |
Re: > It is incorrect to say that DFS is to find the shortest path. DFS can be used to find the shortest path, or finding (a) path(s) of (a) particular condition(s) for that matter. > WHat kind of stopping condition would I have? Does the graph have cycles? If it … | |
Re: How you represent your board really depends on how you're planning to solve it. A good way to decide how you should save the board is to decide which operations you'll be performing on the board, and then deciding on how you want to store it. A 9x9 array will … | |
Re: It's difficult to understand what you mean. Give us an example, or show us your code, and where your stuck. | |
Re: muhammad.asim.5458, show us your code, and your question, and we'll help. | |
Re: If you want to know how these low level features work, it you would be better off to learn assembly first. Especially if you want to learn about os developlemt. Learning some thing about compiler design will also be helpfull. I recommend you start off with programming in 8086 dos … | |
Re: #include <iostream.h> The `.h` is not recommended. Remove it. #include <iomanip.h> What are you using this for? You don't need it. #include <conio.h> This library is not well supported. You program won't even run on a modern compiler. People stopped using it 20 years ago. On top of that, you're … | |
Re: The 4th gen's actually have pretty decent integrated performance (for normal work). If your using GPU rendering for movies, it actually out performs NVIDIA dedicated graphics cards (atleast it does on my computer using LAV decoders)! So if your not playing any graphics intensive games, or rendering 3D scenes or … | |
Re: [Knapsack problem.](http://en.wikipedia.org/wiki/Knapsack_problem) | |
Re: One problem is that some inputs are ambiguous, like: "10114". That can be interpreted as 10/01/2014, or 01/01/2014. One simple solution would be backtracking. Assuming ISO8601 order. Input: "1114" You can read the day as 1 or 11. Try day as 11: You can try to read the month as … | |
Re: It would be nice to see the output so we can see the size of valid_mode. It's kind of hard to tell whats going on with that spacing, but my guess it that your always appending one thing onto valid_move with each iteration. This is flagged by the line `valid_move.append(valid_moves)`, … | |
Re: I would honestly just pass them as arguments. Nice and simple. | |
Re: `system("pause");` Don't use this to pause your program. This only works if you're using specific environment setups in windows. Instead, flush cin with cin.ingnore and wait for using input with cin.get if it's absolutly nessacary. Also, you might want to consider posting this as a code snippit. | |
Re: Or much more aggressively: http://www.truecrypt.org/ | |
Re: Wait a minute. Our [CS349](https://www.student.cs.uwaterloo.ca/~cs349/s14/a1.html) student's got a simular question. Wierd. I wonder if prof's are running out of ideas. | |
Re: Is the error from the BIOS? After the BIOS runs POST, it will look for the boot sector on the primary boot disk. It loads it to 0000:7C00. Then it verifies that 0000:7DFE is set to 0xAA55. If it's not, it will generally give an error simular to "Cannot boot … | |
Re: This doesn't have anything to do with pseudocode, and doesn't really belong in computer science. It sounds like a problem in a particular language. See, psudocode is basically writting code in english, and there is no defined standard. You seemed to have some very language spesific terms floating around there. … | |
Re: Is it formatted propery? Go to "Start", search for "Computer Management" -> "Storage" -> "Disk Management". Right click on the second hard drive, Click "Format", Choose NTFS as the Filesystem. Give it a cute name if you want. After you format it, right-click it and select "Change Letter and Paths", … | |
Re: Are you just translating 'words', ie, making a dictionary? Or are you translating whole sentences? I'm assuming you want to translate sentences. (1) Inflected languages would be nice here. Inflected means that the ending of the word indicates what part of speach it is (aswell as tense). This means that … | |
Re: These questions are starting to sound like assignment questions... | |
Re: Ok, I checked it. What? Are you asking for help, or are you just sharing your code? | |
Re: We're going to need more information then that. What toolchain are you using? What commands are you using to compile said DLLS? Can you write a simplefied example with 2 ddls and 1 exe that reproduces the problem? | |
Re: Well, there's really 2 things to consider. First, your skill, and second, the implementation. You could just jump right into building apps with huge web frameworks without really understanding the funamentals of programming. The problem with that is you'll lack understanding of what your doing, and if you can't find … | |
Re: This isn't really an idea for a particular program. But if you want something to sharpen your skills, [Project Euler](https://projecteuler.net/) is very interesting and fun. | |
Re: I prefer not to catagorize laptop quality by brand. Sometimes a "bad" brand makes a good laptop. Sometimes a "good" brand makes a bad laptop. Lotta people judge brands by just one laptop they've had in the past. Maybe there was sometihng wrong with that particular laptop. Maybe there is … | |
Re: I beleive you're asking about how to solve the knapsack problem with a [branch and bound](http://en.wikipedia.org/wiki/Branch_and_bound) algorithm (using proper terminology will get you better results). Yes, most of the resources are theories, because how you implement the algorithm depends on the problem being solved (not to say that you can't … | |
Re: We're not going to do it for you. Show us what you think, and what you have tried. Then we'll help. Also, your problem is poorly worded, and difficult to understand. A cleared example would help. To me it looks like something that a simplex algorithm should be solving if … | |
Re: [Depth-first search](http://en.wikipedia.org/wiki/Depth-first_search)? ![]() | |
Re: Best way would probably be to test it out and see for yourself. Close anything important, open your proccess manager, and just keep increasing it until it stops working! | |
Re: > Probobly, Im no genius but i know that according to law they have to keep all their data (history of users and stuff like that) for about +/- 5-10 years. > If you want facts try googling it ;) No, there is not law that says to need to … | |
Re: Are you just asking for a compiler to start java off with in general? [OracleJDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) works fine on most platforms. If your looking for the source, most of it is here [here](http://hg.openjdk.java.net/jdk8u) (written in C/C++/Java). If this is for an assignment, there's no way you'll get away with handing that … | |
Re: Unfortunatly I'm not familiar with the innards of Luna. Furthermore, I beleive this has to do with your hardware setup as well (specifically, how your DAC(s) are set up). Maybe you can try to install gnome-alsamixer (I'm not sure if that's lunas default or not), or see whats in the … ![]() | |
Re: You can get into the 450gb partition without remembering the password: 1. Recover the forgotton password with something like http://ophcrack.sourceforge.net/ . 2. Reset the forgotton password with something like http://www.ultimatebootcd.com/ . Generally speaking, moving your programs over isn't a good idea (paths get messed up, etc...), and I'm not sure … | |
Re: > Can any one convert this Java code to c++? The answer to your quesiton is "yes". No one will do it for you. Try it youself and we'll help. | |
Re: This should be catagorized in Computer Science. What I can tell you is what your looking for is the power set (the set of all subsets). One hint I'll give you is that building the powerset is exactly the same as traversing a binary tree. Each element can exist or … | |
Re: In order to use foreach, the collection your iterating over needs to implement Iterator. Also, the datatype inside your foreach needs to match whatever datatype the collection is containing. So, now you know that Employee implements `Iterator` and it iteratates over integers. There are a number of ways you can … |
The End.