well, thanks everyone for your help... im out..
Type: Posts; User: Andy717
well, thanks everyone for your help... im out..
well, my prof said he'll meet me (thank goodness) in about an hour and 10 mins... so, i hope he'll help me... well, he'll only help me with really specific things, but, at least it's help... and...
it wont let me post the whole code... ok, fixed
this is my code now
#include <string>
using namespace std;
#include <fstream>
#include <iostream.h>
#include <stdlib.h>
annnndddd.... i also have an infinite loop after entering the characters and the input file
ok thank you, i have it as "string key[26];" is that correct?... ugh.. now my letters don't show on the output screen like they are supposed to.. *sigh* is it a lost cause? I hope not.
so, should key be a string or a char? should i have it declared as "char key" or "string key"?
oh, wait, its changed now
hm, the mystring thing is kind of confusing me, i think that's what i need, but i'm not completely sure what the mystring is equal to
the only question i have about what the one integer thing is... how do i get the program to ask for the specific replacements of the letters, like "replacement for a: " "replacement for b: ", etc...
Yeah, well, my prof never really explained anything... the only reason i know how to do the file opening is because someone else showed me how to do it...
OOOOHHHHH.... ok, i get it... thank you, see.. that was never explained to me before... lol
well, seeing as how i dont know how to do i 26 char string (i haven't been taught) it's kinda hard. i've been trying to do one this whole time, but... im guessing at how to do it.
ugh... it goes down asking for the replacement like it's supposed to and then it asks for the input file and then it asks for the replacement letters again
ok, thanks, im trying that now... and joshdick.. im trying to figure out what you mean by 'the initialization of key should only happen once. '
this was my assignment..
write a program that encodes the text in a data file using a character array named "key" containing 26 characters; this key is read from the keyboard; the first letter...
ok, here it is
#include <string>
using namespace std;
#include <fstream>
ok, well, i'm kinda stuck on the whole code, heh.. but.. I can't get the character array named "key" to read from the keyboard
no, he met with me once before, for a previous assignment.. but that was a while ago. And when i ask him, he wont.. i e-mail him with questions, and he doesn't reply. It's his first year teaching...
no, i've asked my prof for many meetings, and he wont meet with me :( oh well.. i figured out a way for it to be horizontal :)
And i've been working on this since friday night, but.. i just didn't...
So, I'll work on this now, and post what I have after I've had a try at it. Or, if I'm really stuck, I'll ask a more specific question focused on exactly what it is that I don't know. I apologize for...
Here is the second one:
"another simple code encodes a message in text such that the true message is represented by the first letter of each word; there are no spaces between the words, but the...
I'm learning C++ code in my engineering class, but my professor doesn't help, or explain. He just gives homework. Here is my assignment (it is split into 4 parts):
1.) Write a program that reads a...