Whats the deal with every single MD5 algorithm I find? I've tried them all (the ones that you have to call like 3 methods just to get the md5 hash), or at least all of the ones I can find, and none...
Type: Posts; User: Inquirer
Whats the deal with every single MD5 algorithm I find? I've tried them all (the ones that you have to call like 3 methods just to get the md5 hash), or at least all of the ones I can find, and none...
I know this is true of base 10, but i'm not sure about the others every time.
You look at each number in turn:
1243
0 -> current number
10 -> base
Mark A
I used to have this nifty program that i could use when i was playing a game, that i could specify a number and a program, and it would locate that number in memory. Once it did that, i could change...
yeah, unbeffered io... that means nothing to me. I i have tried (the equivalent of) what you showed me, but it still doesn't work. I'm trying varius means of debugging it, to make sure its looking...
heh. efnet? stable? thats a new one. The network's servers are alwas up, yes, but thats where you go when you are training netsplit bots, if you get my drift. Freenode is better, but i have found...
Okay.. Here is the deal
I have multiple processes. I have a unistd.h pipe open, and one end is a file descriptor (int fd1) and the other is stored in another int (int fd2). Unfortunately, these...
Is it possible to do a circular bit shift in c++?
i.e:
10001000 => 00010001 => 00100010 => 01000100
~Inquirer
thanks. I'll bookmark that site.
Since the AP cirriculum changed to JAVA, i have been totally c++ deprived for a long time. Now, i am writing an encryption algorithm, and can't remember how to do some things. The most pressing of...
Try this (I added in comments where i changed it)
...
while ( (!infile_1.eof()) &&(!infile_2.eof()) )
// while not end of file for both input files...
{
if ( number_1 > number_2)...
Wow. So simple. Thanks! i'll have to remember that.
~Inquirer
It seems these "undefined reverence" things are really plaguing me. Now, i am writing a cryotographic prgram, and i am going to be implementing an MD5 hash, so i downloaded OpenSSH and installed it...
What bug does it have? Is it that the loop could end with 80, then assign the 81 [one more than the array has, it stars on 0] to '\0'?
That would probably do something similiar, or the same. There is a built in function to do this easily for you:
char * strdup( char * );
Masically, it allocates space for the nre wtring then...
I'm trying to reference a function to pthread_create, and i am using the exact same syntax as elsewhere, but it doesn't work. Whats the problem?
Errors:
g++ -pthread -c parser.cpp
parser.cpp:...
Aaah. Thats interesting. Thanks for the explanation. I'll remember that.
Thanks
~Inquirer
Wow! it worked! What, exactly, does inline do that would make it unable to be "referenced" from another source file?
~Inquirer
7stud: Yes, but not necessarily.
Here is what i've commonly seen done:
mine.cpp
#include "mine.h"
cout << "Hello" << abc.endl;
it was mentioned that you "can do operator overloading-like things with functions", so how would he do this?
...
cout << "Hello, my " << personal_info_part[i] << " is " << val[i];
...
...
This was recommended to me, and i wtill swear by its principles in all of my servers and clients.
Beej's Guide to Network Programming:
http://www.ecst.csuchico.edu/~beej/guide/net/
Howabout this:
int i, z, tmp;
cout << 1 << endl; //EDIT: this will make the whole sequence correct
for(i = 0, z = 1; i + z <= 500;) { // allows you to test its < 500 and stop
cout <<...
I think you are trying to emulate what many BASH shell scripers do:
#!/bin/bash
read input_name
read input_value
$input_name="$input_value"
export $input_name
would allow you to change...
And here is the only part of blackjack.cpp that actually deals with the blackjack game/cards/deck.
blackjack.cpp
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include...
cards.cpp
// +++Date last modified: 05-Jul-1997
/*
** CARDS.CPP - Playing card classes
**
** public domain by Bob Stout
*/
I have about 9 .o files, and make compiles quickly and quietly until it gets to the part where it links them all together... here are the errors and makefile. I won't post the code unless i need to,...