Search:

Type: Posts; User: nik2

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    7,316

    thanks, I did this and worked great :)

    thanks, I did this and worked great :)
  2. Replies
    8
    Views
    7,316

    the problem that I have with XOR is that the...

    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...
  3. Replies
    8
    Views
    7,316

    one time pad and caesar cipher

    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...
  4. Thread: encrypt C++ code

    by nik2
    Replies
    13
    Views
    6,864

    thanks the app has something to do with passwords...

    thanks the app has something to do with passwords etc thats why i was asking
  5. Thread: encrypt C++ code

    by nik2
    Replies
    13
    Views
    6,864

    thank you, I will be doing this

    thank you, I will be doing this
  6. Thread: encrypt C++ code

    by nik2
    Replies
    13
    Views
    6,864

    encrypt C++ code

    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
  7. how would you do that? i really think there is a...

    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...
  8. i dont think that would work im actually...

    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...
  9. sort array of 3 keys while minimizing the total cost

    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[] =...
  10. Replies
    10
    Views
    5,922

    i hope it is like this, i will just wait and see...

    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...
  11. Replies
    10
    Views
    5,922

    actually no he doesn't, I know it seems weird,...

    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...
  12. Replies
    10
    Views
    5,922

    nothing of the above when i took these 2 exams...

    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...
  13. Replies
    10
    Views
    5,922

    writing code on paper

    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...
  14. Replies
    6
    Views
    6,675

    does anyone know a C++ reference book that I can...

    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?
  15. Replies
    29
    Views
    10,267

    oh ok i understand it now ;) thanks a lot for...

    oh ok i understand it now ;)

    thanks a lot for your help :D
  16. Replies
    29
    Views
    10,267

    are you talking about y or x array? if i free...

    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...
  17. Replies
    29
    Views
    10,267

    for the delete[] x i guess i should create a...

    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
  18. Replies
    29
    Views
    10,267

    thanks for the alternative solution, but sadly i...

    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...
  19. Replies
    29
    Views
    10,267

    im trying to reallocate memory for the stack but...

    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;
    ...
  20. Replies
    29
    Views
    10,267

    yes i understand that, but im not using realloc...

    yes i understand that, but im not using realloc at all, im using reallok
  21. Replies
    29
    Views
    10,267

    i dont want to make it using structs, i made it...

    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...
  22. Replies
    29
    Views
    10,267

    actually thats the first thing i saw about...

    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...
  23. Replies
    29
    Views
    10,267

    ok i think i have it correct right now i...

    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...
  24. Replies
    3
    Views
    3,843

    thanks for your help :)

    thanks for your help :)
  25. Replies
    3
    Views
    3,843

    cin.get() or system("pause")?

    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
Results 1 to 25 of 73
Page 1 of 3 1 2 3