Search:

Type: Posts; User: Inquirer

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: MD5 Algorithm

    by Inquirer
    Replies
    2
    Views
    13,678

    MD5 Algorithm

    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...
  2. Replies
    18
    Views
    2,707

    Um, in my experience, one need not know how many numbers there are in the number...

    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
  3. Replies
    4
    Views
    1,025

    Accessing memory of other programs

    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...
  4. yeah, unbeffered io... that means nothing to me. ...

    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...
  5. Replies
    19
    Views
    2,967

    heh. efnet? stable? thats a new one. The...

    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...
  6. Piping between processes, using pipes, using low level read() and write()

    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...
  7. Replies
    2
    Views
    4,074

    Circular Bit Shifts

    Is it possible to do a circular bit shift in c++?

    i.e:
    10001000 => 00010001 => 00100010 => 01000100

    ~Inquirer
  8. thanks. I'll bookmark that site.

    thanks. I'll bookmark that site.
  9. God, i feel like a n00b again. How do i do exponents?

    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...
  10. Replies
    3
    Views
    1,047

    Try this (I added in comments where i changed it)...

    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)...
  11. Wow. So simple. Thanks! i'll have to remember...

    Wow. So simple. Thanks! i'll have to remember that.

    ~Inquirer
  12. using external libraries: undefined reference

    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...
  13. Replies
    16
    Views
    1,669

    What bug does it have? Is it that the loop could...

    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'?
  14. Replies
    16
    Views
    1,669

    That would probably do something similiar, or the...

    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...
  15. Replies
    2
    Views
    1,200

    Function reference problems

    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:...
  16. Aaah. Thats interesting. Thanks for the...

    Aaah. Thats interesting. Thanks for the explanation. I'll remember that.

    Thanks
    ~Inquirer
  17. Wow! it worked! What, exactly, does inline do...

    Wow! it worked! What, exactly, does inline do that would make it unable to be "referenced" from another source file?

    ~Inquirer
  18. Replies
    5
    Views
    995

    7stud: Yes, but not necessarily. Here is what...

    7stud: Yes, but not necessarily.
    Here is what i've commonly seen done:

    mine.cpp


    #include "mine.h"
    cout << "Hello" << abc.endl;
  19. Replies
    1
    Views
    1,020

    it was mentioned that you "can do operator...

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

    ...
  20. Replies
    7
    Views
    1,596

    This was recommended to me, and i wtill swear by...

    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/
  21. Thread: loop help

    by Inquirer
    Replies
    4
    Views
    980

    Howabout this: int i, z, tmp; cout

    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 <<...
  22. Replies
    13
    Views
    1,243

    Nope. not possible in C/C++

    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...
  23. And here is the only part of blackjack.cpp that...

    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...
  24. cards.cpp // +++Date last modified:...

    cards.cpp


    // +++Date last modified: 05-Jul-1997
    /*
    ** CARDS.CPP - Playing card classes
    **
    ** public domain by Bob Stout
    */
  25. Linking multiple source files: Undefiled Reference to...

    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,...
Results 1 to 25 of 280
Page 1 of 12 1 2 3 4