What do you mean a software task?
Is it possible to provide an example :) ?
Type: Posts; User: r00t
What do you mean a software task?
Is it possible to provide an example :) ?
yes, that's exactly what i was wondering about..
can u tell me about the alternative method? how do i organize it in CLI?
Thanks!
Hey everyone,
I'm writing a two thread application.
First thread:
Requests for commands and processes them.
Second thread:
Periodically, for example every 10 seconds, shows all items in...
yeaaah i know i know... any suggestions?
i think what im gonna do is (as it was suggested above) sort the words into the array
and the count the most frequent one, that's an easy way of doing it......
yep, it should be called bucket sort, but i dont remember the exact name.
and yes, the whole point of this thread was to discover the right algorithm to encrypt it :)
thanx for the code _Mike,...
yeah i c what u mean, but it wont work with the arrays right? i cant use that integer as an index of an element of an array. would u recommend any other way to solve my problem?
thanx :)
the maximum number of characters in a word is 30, so if asscii value of every char is 2 digits then, i would have 60 digit integer. am i right? i dont think this way going to work.
please correct me...
that's the thing man, i need an algorithm that generates a unique integer, for every different string
im not sure that hashing works in reverse algorithm, i.e i can get the actual string from that.. if not then i need encryption algorithm, so then i can decrypt it.
ok thanx, i'll try to find hashing function
Hello folks!
Today my task is to implement the program which inputs the name of the file and outputs the most frequent word in the textfile.
Limits: max - 50000 word, each word max - 30 chars.
So...
ah ok thnx, i'll try to pass it as you wrote..
but the problem is occuring on the line i marked red....why is that happening? i couldn't get it...
so how to solve this problem?
ok... if i declare it as an array of char like char binstr[8]="00000000";
then i want to return pointer to that string....
Hey folks sup!
I have a segmentation fault here:
char * inttobinstr(int n)
{
char *binstr;
binstr = (char*)malloc(sizeof(char)*8);
binstr = "00000001";
binstr[6]='s'; <---------this...
just declare 2d array of char, and two integers i and j
i=0, j=0;
using getchar() increase j, if you see '\n' -> increase i and j=0.
what your input file looks like?
Hey thanks a lot, Adak,
now i know how fread() works!
Thanks everyone!
but then why do you need getUserName() method?
as i understand your input is username and you need to look for his password in .txt file, is that right?
it is this way:
you read first 3 bytes(key).
then you read N bytes until you reach \0 terminator. (Name)
after that, you count 20-N bytes(ignore them).
and then read 4 bytes (Mark)
which...
or
char *s = "hui";
Adak, have you taken a look at my bin file?
RapidShare: 1-CLICK Web hosting - Easy Filehosting
I can't put the contents of binary file because there are some characters which cannot be displayed in simple text editor. for example null character '\0'
so, ok here is the example of bin file with...
I think you should declare username variable first in main() and then pass it to getUsername()
as a second arg, and then deal with it in that method, rather than making a new one and then
setting...