I am currently studying at college C++ and we pretty much covered everything there is in terms of Procedural Programming. Now we are moving into stuff like SDL, displaying images, etc. But i wanted to take things further and make some sort of encryption system. the most basic possible one that you can think of, and maybe then make it into a proper program. Anyway to the main point...this is what i have so far
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <string>
#include <cctype>
using namespace std;
void Encrypt( char LOL);
void Decrypt( char LOOL);
int a = 0;
int main()
{
char LOL;
cout<<"Please enter something"<<endl;
cin>>a;
Encrypt(LOL);
i keep getting errors like :
1. unresolved external symbol "void__cdecl Encrypt(char)" (?Encrypt@@YAXD@Z) referenced in function_main
2. 1 unresolved externals
any way to fix??? also it would be great if i could get some pointers where to start...from the bottom and have it related with the stuff im doing atm.
but different implements that do not match these definitions above.
You have implementations instead for:
void Encrypt(char LOL[])
{
...
}
and
void Decrypt(char * LOOL)
{
....
}
That is why you are getting a link error.
Looks like you should change your function definitions to match your implementation. Then also pass LOL as a char array for main instead of a char.