I just need to print out a key for each iteration of a loop so I don't think I need to pass anything. I changed my code to say:
class Key
{
private:
struct key_element
{
char enc;
char...
Type: Posts; User: racerday182
I just need to print out a key for each iteration of a loop so I don't think I need to pass anything. I changed my code to say:
class Key
{
private:
struct key_element
{
char enc;
char...
Oh I am sorry, I forgot to copy that in as part of my code but I actually had
struct key_element
{
char enc;
char dec;
int man_flag;
};
struct key_element key[26];
Hey guys,
I was working on a program where I am supposed to convert a c program to a C++ program and I was running into some trouble converting a function to a member function in a class.
I am...
LOL oh thanks good idea.
Okay, well that gets rid of the System.NullReferenceException but it's still only reading in the first line of the ciphertext because when it loops through, every other line...
I am doing that in my code, I just didn't show it here.
Tabstop, I have now changed my code to:
while((fgets(input,80,fp))!=NULL)
{
ciphertext[m]=new char(strlen(input)+1);...
Yeah we don't have to do that
Yay! now the program compiles but it only runs for the first instance of the loop. After the program executes through the while loop the first time it gives me a...
Hey guys,
I was working on a program where I had to convert an old C program into a C++ program.
I am supposed to create a ciphertext class and use it to output a ciphertext that I get from a file....
Hey guys,
I was studying for my test and I came across a question that left me baffled. I am supposed to find and fix the bugs in the code below. I was able to find 2 bugs and I was hoping one of...
Arite, tried that and it gets rid of the errors, but what do I need to do to actually get the program to print out the ciphertext, do i need to define some private members within my class?
Oh and...
Hey everybody,
I was having trouble completing my last assignment which required me to redesign a C program into a C++ program using classes and objects.
So far my Cpp code looks like this:...
Any HELP would be greatly appreciated. THANKSSSS
I'm sorry if I made it seem like I was spamming the forums with my homework. Rather, I was just looking for a starting off point. From now, I will...