thanks, I did this and worked great :)
Type: Posts; User: nik2
thanks, I did this and worked great :)
the problem that I have with XOR is that the encrypted message has strange characters
for example for something like
char data[] = "THIS IS SECRET";
char key[] = "XVHE UW NORGDZ";
I get...
hello friends, lately I've been reading about one time pad and read somewhere that people usually use XOR in order to encrypt the message
if we use caesar cipher do we get a more secure...
thanks the app has something to do with passwords etc thats why i was asking
thank you, I will be doing this
hi guys, how can I encrypt the C++ code?
when I use olly dbg or a simple hex editor, the program has the strings displayed, how can I prevent this from happening?
thank you in advance
how would you do that? i really think there is a better way of doing this
and i dont think this way is the qsort algorithm, because you cant know if it does a minimum amount of rearrangements in...
i dont think that would work
im actually thinking of doing something like this
count the number of 1,2,3 in the sequence and then i can know how the sorted array would be
so for example we...
i ve asked the same question 6 months ago but havent really understood how to solve this yet
suppose that we have an array of size n where n <=10 and the keys are 1,2,3
if n = 3 then
A[] =...
i hope it is like this, i will just wait and see
the problem is that it's not just me, i ve asked many students and all are very dissapointed with the exercises, because we expected to have plain...
actually no he doesn't, I know it seems weird, but he doesn't give any scratch paper and even if you ask him to give one like one of my class mates did he gave nothing, because he said that the space...
nothing of the above
when i took these 2 exams using a compiler we had no internet access, and no reference with us
i told you why i can hardly write code on paper
and this why im asking for...
hi guys i have a huge problem
i cant write code on paper
actually i can, but im not good at it
this year i took 2 exams on C and C++ programming where i coded using a compiler, I took two...
does anyone know a C++ reference book that I can buy?
I'm using Windows 7
in the C++ recommendations section there are many books, but which is the best?
oh ok i understand it now ;)
thanks a lot for your help :D
are you talking about y or x array?
if i free y then i would lose the elements, hence i wouldnt return anything back to x(from the reallok)
about the x i agree that i should delete the...
for the delete[] x i guess i should create a destructor right?
something like this
~stack(); //this would be in stack.h
and this would be the code
thanks for the alternative solution, but sadly i dont know anything about vectors yet & my professor used realloc malloc and free in his program
i ll be taking exams in 3 days and was just curious...
im trying to reallocate memory for the stack but it seems that im doing it wrong, is this a correct way to reallocate memory for a simple array?
#include <iostream>
using namespace std;
...
yes i understand that, but im not using realloc at all, im using reallok
i dont want to make it using structs, i made it using class, i used pointers that would help to free the stack when i finish and also reallok works like realloc
about vectors, as I said i know...
actually thats the first thing i saw about indentation, i hope i have it correct in the files
Edit: about the realloc, yea when i used it it didnt work at all, im new to C++ i dont know anything...
ok i think i have it correct right now
i made 3 different files, main.cpp has the main function, stack.h has the class and functions.cpp has the class functions
im not sure about the realloc...
thanks for your help :)
hi
when i want to stop the dos window should i use cin.get() or system("pause")?
in C i used getchar() or system("pause") but what's the best in C++?
thanks in advance