In my final code I switched to using strings instead of c-style strings.
string encrypt_string(string& input){
for(string::iterator i = input.begin(); i != input.end(); ++i){
*i...
Type: Posts; User: bob887
In my final code I switched to using strings instead of c-style strings.
string encrypt_string(string& input){
for(string::iterator i = input.begin(); i != input.end(); ++i){
*i...
edit: solved it, thanks very much for all the help :)
Ah, I was wondering if that happened. When can I delete the pointer? Is it possible to delete space allocated in a method from main? I ended up changing the way I did it and used strings instead. I...
Alright, thank you all, I got that part of my code working(I also created a string version of the encrypt and encrypt functions).
Hopefully I can get the i/o stuff done without having much trouble.
I suppose I could probably do that, was just reading about pointers so I figured this would be something to practice it a bit. Thanks for the advice, I got it working. As I said, my main goal is...
I am working on making a simple program which allows rot13 encryption and decryption of files. I am starting small and I am working on making code to perform rot13 to and from on a char*. For some...
Alright thanks, I originally had Code::blocks and I liked it, just decided to practice being able to self compile a bit while reading one of the books. Thanks for the response.
Im sorry if this is the wrong section.
I am reading a book on c++ and I am using windows to program(not that good with linux at the moment) The book got to a section on using make files to...
Awesome thanks a lot for helping out, the Inheritance confuses me a little but I think I am starting to pick it up.
I am working with fraction classes in a book, I have run into a problem I cant seem to get around, I was going to read through and skip the examples, but it appears the last few chapters all deal...
Awesome thanks so much, I was missing #include <iostream> and using namespace std; in the header file.
Thanks so much for helping me out with something thats fairly basic, I really appreciate it.
I did write it, originally I had it exactly the same as the book,
a fraction header file, included in two other files, then one file containing fraction function definitions, and a final one with...
Well I got it working, when using headers, does it matter where they are saved?
Also, In my fraction class from the book, I created a member function as
friend ostream &operator<<(ostream...
This may seem like a basic question.
I am reading c++ without fear and I am near the end. He switches from writing all programs in one file to using include directives.
While I understand how...