The end result has to be a virus scanner, or at least something that is capable of looking inside files for certain patterns/signatures.
Type: Posts; User: osiris^
The end result has to be a virus scanner, or at least something that is capable of looking inside files for certain patterns/signatures.
Ah this looks like what I was looking for.
Thanks.
I was aware of this, but is there anyway to embed it into a C program? It's part of a larger problem and thus I need to be able to visit every file on the hard disk.
Argh, sorry. The program needs to run on Windows XP.
Hi all,
I need to scan the contents of a hard drive on a computer and return the list of files on that drive. I'm able to scan the first level of hierarchy for a given drive letter, and am using a...
It's part of an encryption program assignment, which is why I cannot use the mod operator, as the inverses aren't always precise, so I may end up with multiple solutions when I try to decrypt. This...
Well, I didn't need any code to do it, I just wanted ideas on how to do it.
However, here's the code which gets the unicode numbers from a string called 'plain'. Each character of the array refers...
Hi all,
I have numbers X and Y, which have to be used to perform a calculation such that the resulting number, Z, is always within a particular range. However, as I'll need to find the inverse of...
Which takes me back to the original thread topic; how do I do that? I wrote what I thought did that and was told by a couple of posters that I could not pass a pointer to a local variable because it...
Hi all, I've read through all your replies and thought I'd just clarify what exactly I'm trying to do and what my problem is.
I have a struct called player with various attributes, and an array of...
So assuming I want to create a struct in one function and have lots of other functions interact with it in some way (not at the same time though) how would you go about implementing that?
Can I...
I presume it's because the return type was defined as char, but a string is being returned?
I have changed the function now to what vart suggested and it compiles fine. Am I right in saying that...
Hi all,
I have the below function which I want to return a pointer to the array of type struct. However, I'm unsure of the syntax; what do I need to type as the return type of the function and in...
Good stuff.
Thanks for your help guys :)
Ok thanks, so just for my understanding, why can I not initialise the 2d array in the same way as the other struct variables? As per your code example, I have to change the whole way in which I am...
I see.
I have done this in other parts of the program before the 2d array was present (as shown below), and there was never a problem. Or do I now have to change the way in which i instantiate the...
Hi all, I am having a little bit of difficulty initialising a 2d array, for a player of type struct.
I've created a struct to represent a player, and created two players of this struct type, as...
Hi all,
Assuming I had a file with tons of figures in it (I think a csv would be the easiest to use), how would I go about exporting it to an xls file, and then view it in Excel? Going through the...
One for each plane?
Hello all,
I've been given an assignment to be written in C#, and I'm unsure how to approach it. The assignment is meant to assess our skill in concurrent programming, which - after reading the...
Yeah, sorry, I wrote that exact thing about 45 seconds ago, and was coming back to the thread to say nevermind lol.
Cheers for the explanation on what's actually happening :)
Hey all,
The following code causes the error "incompatible types" on the line "Osiris.name = "Osiris";"
struct player {
char name[10];
int chosenNumbers[6];
Hello all,
Got a bit of the programming "bug" going on, and was just curious as to how difficult it would be to write an encryption/decryption program. I wasn't planning on anything too difficult;...
I've coded your problem, but just giving it to you is pointless. So, I'll go through each line/section of my code, and be as helpful as I can in terms of telling you what to do.
The algorithm for...
Okay, I don't know if you've managed to do it yet, so I've very quickly knocked up a solution. There are probably more efficient ways to do this, but I've tried to make the calculations as...