Search:

Type: Posts; User: supaben34

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,719

    Encrypting text file with ASCII hex

    Hello all,
    I need your help. I need a very quick program on taking in a file filled with characters and writing into a file with each character's ASCII (hex representation). This is a very...
  2. Replies
    8
    Views
    2,582

    I know I know... but I wanted to do it a bit...

    I know I know... but I wanted to do it a bit differently... oh well, I gues I am just going to have to go back to argc and argv the regular way. Thanks guys
  3. Replies
    8
    Views
    2,582

    Misplaced, could you please help me out with...

    Misplaced, could you please help me out with this... obviously I am having some trouble with this but it's been such a long time since I've done C. Anyways, I want to read from the command line of a...
  4. Replies
    8
    Views
    2,582

    Actually misplaced, it doesn't. All I need to...

    Actually misplaced, it doesn't. All I need to know is how to access that *argv[ARRAYSIZE] element in the command struct. I don't know what your code is doing. I want to create a pointer to that data...
  5. Replies
    8
    Views
    2,582

    Accessing elements in a struct

    Hi all I have a struct defined as the following:


    typedef struct command_struct {
    char name[BUFFSIZE];
    char *argv[ARRAYSIZE];
    int argc;
    } command;
  6. Replies
    2
    Views
    1,093

    obtaining boot time in nice format

    Hey all,
    I need to convert the given boot time which is given in the /proc/stat filesystem in seconds to ctime(). Please look at this code and tell me what I am doing wrong. Thank you.


    ...
  7. Replies
    8
    Views
    3,551

    grib, I apologize for not seeing the second piece...

    grib, I apologize for not seeing the second piece of code. I must not have viewed it properly on my browser. Thank you for all your help in this matter.
  8. Replies
    8
    Views
    3,551

    Thank you so much for your code grib, actually I...

    Thank you so much for your code grib, actually I had already implemented a way for my code to print out all the vertices in a preorder format.


    void preorder(Node* ptr){ ...
  9. Replies
    8
    Views
    3,551

    Traversing a binary tree with pointers

    Hi guys,
    Alright ya'll I need your help with a project that I am developing at school for one of my classes. I need to do a Huffman encoder. Basically my program reads a text file that analyzes...
  10. I am sorry about being more confusing than I...

    I am sorry about being more confusing than I should be... I was wondering if my overloaded <() was legal. Thank you.
  11. Operating Overloading with Pointer Arguments

    I am trying to implement a class x that has an overloaded operator(). This overloaded operator needs to have pointer arguments. Can this be done? Here is my code so far.


    class X { ...
  12. Replies
    8
    Views
    1,897

    For those knowing STL maps...

    Hi all,
    For all those who are knowleadgeable enough I have a question for you. I am creating a program for my assignment in my Data Structures course and a piece of this assignment requires...
  13. Replies
    2
    Views
    1,322

    Breadth-First Search

    I know this is probably one of the most fundamental algorithms you will have to learn when you are a CS major but I cannot seem to understand this part. I need to understand the BFS algorithm and...
  14. Replies
    5
    Views
    1,014

    Literally, all I know are the basics. That is, I...

    Literally, all I know are the basics. That is, I know how to read from a file but thats it. Here goes:


    #include <iostream.h>
    #include <fstream.h>
    #include <iomanip.h>
    #include <stdlib.h>
    ...
  15. Replies
    5
    Views
    1,014

    File Processing

    I have a .dat file that has about 5000 words in it. I would like a program that removes all string that are more than 5 letters long and that has an upper-case character. For example, if this was my...
  16. Replies
    3
    Views
    2,270

    Conversion of character string to integer

    How do I convert a character to an integer? For example if I have a character '1' how do I convert it into an integer type one. There is a good news and bad news. The bad news is that my character...
  17. Replies
    3
    Views
    1,087

    Converting a string to a character array

    Hi there,
    I was wondering how you would be able to convert a user-inputted peice of data of type string to a character array. Any ideas?
  18. Replies
    3
    Views
    1,232

    Operator Overloading

    Hi all,
    I have a question about operator overloading. Suppose we have defined a overloaded operator as so...


    // Implementing class TListIterator < T >
    template <typename T>
    int...
  19. Replies
    6
    Views
    7,600

    Shrinking a HashTable

    Thank you thefroggy for all your help with the Insert() function, I modified it a little bit so it can traverse through the whole table instead of starting at the hashed value. I have a new question...
  20. Replies
    6
    Views
    7,600

    One question

    I asked my professor about other methods of doing it and he will go over the linked list method in two weeks since that seems to be one of the most efficient ways of handling hash tables. Right now,...
  21. Replies
    6
    Views
    7,600

    Hash Table implementation

    Hello there all,
    I wanted to have a question answered. I need to know how we would be able to Insert into a hash table with linear probing. I have half of the code done(where Insert does...
  22. On Dynamic Multi-dimensional arrays and hash tables

    Hey all,
    I would like to like to know if there are any links that I might go to get a detailed explanation of dynamic multi-dimensional arrays. It seems like I would have to dynamically...
  23. Conceptually

    Alright guys, thank you for your posts. It seems to work syntactically but I do not understand why you would put two *'s next to a pointer for a 2-d array? Could someone explain this a little bit...
  24. Pointer to a dynamic multi-dimensional array

    Could someone please tell me why the following code does not work for a dynamic multidimensional array. Thank you.


    HashTable::HashTable()
    // default constructor
    {
    // create a...
  25. Replies
    1
    Views
    1,151

    A BitVector class

    Hello there all,
    I am enrolled in a Data Structures class and we are studying the structure called bitvector. It's a really interesting course... one that actually makes use of C++ other...
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4