... duuuhhh what? im jackass homer. how manny magic beans should i sell the baby for? uuhhhh threee?
*bangs head with big wooden mallet*
alright now now that i have punished my self im gonna...
Type: Posts; User: SilverAdder
... duuuhhh what? im jackass homer. how manny magic beans should i sell the baby for? uuhhhh threee?
*bangs head with big wooden mallet*
alright now now that i have punished my self im gonna...
I tied putting cin.ignore in under cin >> XOR_menu_select, like you suggested, and also right above the getline, like this
cin.ignore(80,'/n');
getline (cin, file_name);
ifstream...
Well now it doesnt even wait for input from the user...
Oh right ofcourse! Thanks.
Hmm right. Thanks.
Well it works now. Or that is, if there are no spaces on the filename. If there is a space, it doesnt work. I suppose i can use cin.getline to...
Alright ive started a new thread to get some order on things...
THe problem i have right now is that i want the user to be able to choose what file to encrypt and decrypt. The code loks like this:...
yes i am.
It says `c_str' has not been declared. But im not supposed to do that am i?
cin >> file_name;
ifstream in(file_name.c_str());
im supposed to write more than that right? Cause tat doesnt work...
Hmm i dont understand... so i write like
string file_name
ifstream enc_file (file_name.c_str())
...?
Well like i said earlier i am pressed for time so for now im more or less gonna go with what i have. Once i have turned in the program and the report at school im probably going to look into the...
Sweet! Thanks Swoopy! It worked like a charm! Seems like im finaly nearing the end of this little program! :) Now i just have to fine tune it... i hope ;)
Thats all well and good but it doesnt realy help me... or am i missing something?
Alrighty then ive made some changes. Fist of all i descided to use strings instead of arrays after all. Alot easier once i got the hang of it. cin.get works now too since there will never bee excess...
Oh one thing, sorry about the thread name. Im working on two encryptions and forgot that i had written ASCII problem... got confused... :)
I dont think i want to start changing the arrasy to...
Alright i tried getting rid of getch() but i couldnt get cin.get to work. The program never paused, it just ran through it all and closed. I left the code in there if somecan give me a hand,...
Well, seems i finaly made what i wanted to! Not the most comprehencive program but still... its more than ive ever made before :) Its probably not the best method but still it works... I descided to...
Alright thanks. Ill experiment a little with this. And thanks for the pointer on globals. Ill remember that ;) Ill give a shout here once i get stuck again :D
Im with you so far. I en up with this:
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
... All i heard was ASCII and then... white noise. No seriously im so lost. The only reply i realy understood was Salems. So thanks dude :) I didnt know you could just do it like that. But the...
Well this is my first post on the forum. Been browsing the site for some days but i need some quick help so figured, why not go here?
Well im pretty new to this whole programming thing, although...