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...
Type: Posts; User: supaben34
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...
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
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...
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...
Hi all I have a struct defined as the following:
typedef struct command_struct {
char name[BUFFSIZE];
char *argv[ARRAYSIZE];
int argc;
} command;
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.
...
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.
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){ ...
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...
I am sorry about being more confusing than I should be... I was wondering if my overloaded <() was legal. Thank you.
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 { ...
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...
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...
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>
...
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...
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...
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?
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...
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...
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,...
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...
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...
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...
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...
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...