560 Posted Topics

Member Avatar for happygeek

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 …

Member Avatar for Hiroshe
2
427
Member Avatar for tomeika.griffith

"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 …

Member Avatar for Suzie999
-1
214
Member Avatar for MasterHacker110

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 …

Member Avatar for mathematician
0
241
Member Avatar for arunkumars

I beleive TFS has some sort of capability of importing git repositories, so you might have better luck going Mercurial -> Git -> TFS.

Member Avatar for arunkumars
0
222
Member Avatar for ChrisP-C++

"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++. …

Member Avatar for ChrisP-C++
0
510
Member Avatar for coding101

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.

Member Avatar for Hiroshe
0
125
Member Avatar for annonah

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.

Member Avatar for Hiroshe
0
213
Member Avatar for mavtcr
Member Avatar for mavtcr
0
258
Member Avatar for shubham05

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 …

Member Avatar for shubham05
0
251
Member Avatar for mustafa.bahaa

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 …

Member Avatar for Hiroshe
0
162
Member Avatar for finders
Member Avatar for Hiroshe
0
139
Member Avatar for nouth

I personally like Tkinter. There is also [Kivy](kivy.org/) which also works on tablets.

Member Avatar for ZZucker
0
361
Member Avatar for Jonathan_5

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`. …

Member Avatar for Hiroshe
0
102
Member Avatar for eldesperado
Member Avatar for GiantBy
0
189
Member Avatar for Slavi

> 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 …

Member Avatar for Slavi
0
1K
Member Avatar for Doogledude123

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 …

Member Avatar for JamesCherrill
0
875
Member Avatar for Awais ramzan

It's difficult to understand what you mean. Give us an example, or show us your code, and where your stuck.

Member Avatar for Akash_Soni
0
221
Member Avatar for ELIAS MUTHAMA

http://www.ubuntu.com/download/desktop/install-ubuntu-desktop

Member Avatar for rch1231
0
130
Member Avatar for muhammad.asim.5458
Member Avatar for Avishek_1
0
181
Member Avatar for Ghost0s

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 …

Member Avatar for Ghost0s
0
329
Member Avatar for Auroch

#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 …

Member Avatar for Auroch
0
263
Member Avatar for nitin1

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 …

Member Avatar for Hiroshe
0
352
Member Avatar for zulqarnain02
Member Avatar for deceptikon

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 …

Member Avatar for ddanbe
1
581
Member Avatar for thabo.tman.545

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)`, …

Member Avatar for woooee
0
534
Member Avatar for abaddon2031
Member Avatar for Gribouillis
0
419
Member Avatar for abdiqani

`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.

Member Avatar for Hiroshe
0
226
Member Avatar for Adamsappleone
Member Avatar for AbstractEden

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.

Member Avatar for Hiroshe
0
1K
Member Avatar for blackmiau

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 …

Member Avatar for blackmiau
0
182
Member Avatar for Brandy_1

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. …

Member Avatar for Brandy_1
0
466
Member Avatar for erniestl

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", …

Member Avatar for erniestl
0
183
Member Avatar for Goldfinch

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 …

Member Avatar for Goldfinch
0
197
Member Avatar for Builder_1
Member Avatar for Hiroshe
0
139
Member Avatar for wngus0

Ok, I checked it. What? Are you asking for help, or are you just sharing your code?

Member Avatar for Hiroshe
0
643
Member Avatar for johans22

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?

Member Avatar for johans22
0
90
Member Avatar for alina.nazchowdhury

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 …

Member Avatar for Hiroshe
0
196
Member Avatar for Mya:)

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.

Member Avatar for Mya:)
0
358
Member Avatar for nitin1

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 …

Member Avatar for blackmiau
0
444
Member Avatar for rowen_1

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 …

Member Avatar for Hiroshe
0
185
Member Avatar for Acting_geek

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 …

Member Avatar for Hiroshe
0
105
Member Avatar for Patel_Ankit

[Depth-first search](http://en.wikipedia.org/wiki/Depth-first_search)?

Member Avatar for iamthwee
0
273
Member Avatar for ram619

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!

Member Avatar for ram619
0
3K
Member Avatar for sikander_1

> 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 …

Member Avatar for Mya:)
0
551
Member Avatar for riffat.jaffery.3

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 …

Member Avatar for stultuske
-2
111
Member Avatar for Slavi

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 …

Member Avatar for iamthwee
0
235
Member Avatar for Reesee

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 …

Member Avatar for Hiroshe
0
244
Member Avatar for shelton22

> 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.

Member Avatar for Hiroshe
0
388
Member Avatar for syukria.sufilieya

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 …

Member Avatar for Hiroshe
0
96
Member Avatar for sasikrishnasamy

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 …

Member Avatar for jwenting
0
121

The End.