Search:

Type: Posts; User: L_U_K_E

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Try having a look at this: ...

    Try having a look at this:

    http://www.gamedev.net/reference/articles/article1991.asp
  2. Thread: Parse a file

    by L_U_K_E
    Replies
    1
    Views
    1,791

    Parse a file

    I have a file called "db.ini" which contains a list of ilenames that all end with '0'. I want to parse this data and find and remove the '0' and then store the new filenames in a vector of strings....
  3. Thread: Animated text

    by L_U_K_E
    Replies
    36
    Views
    7,080

    I was told you should really type for ( int...

    I was told you should really type


    for ( int i=0; i !=Len; i++ )

    instead for good measure.Dont really know why but hey.
  4. Replies
    4
    Views
    2,974

    Yeah i know but it is funny!

    Yeah i know but it is funny!
  5. Replies
    4
    Views
    2,974

    I know its a bit of topic and all.......

    but i just thought this was soooooo funny and had to share it with everyone on the forums:

    http://www.spikedhumor.com/articles/38062/Family_Guy_The_Best_of_Stewie_Griffin.html?autoplay=true
  6. Replies
    17
    Views
    3,296

    I dont know whether this will be of any use...

    I dont know whether this will be of any use however i made a file editor not so long ago here is the source code for it though there is no comments on it sorry bout that:

    Also there are a few bugs...
  7. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    It was just a guess really.I guess i could try...

    It was just a guess really.I guess i could try read in each char 1 at a time and use its corrisponding type('a' | 'A' | '0').What do you think of that?
  8. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    Do you think i could do something like: for...

    Do you think i could do something like:


    for (int i = 0; i != alphabet_size; ++i)
    {
    cyphertext += ( ( (plainchar[i] - '0' | 'A' | 'a') + shift) %) + '0' | 'A' | 'a';
    plainchar2 +=...
  9. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    Ahh i get you thanx for all of your help by the...

    Ahh i get you thanx for all of your help by the way.
  10. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    what do you mean by 'abstract the common code out...

    what do you mean by 'abstract the common code out of it'?(sorry about this but by asking questions it makes it easier to learn and not make the same mistakes again).
  11. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    So do you mean that instead of typing: ...

    So do you mean that instead of typing:


    cyphertext += ( ( (plainchar[i] - 'a') + shift) %26) + 'a';


    I would type:


    cyphertext += ( ( (plainchar[i] - '1') + shift) %9) + '1';
  12. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    Thanx for all your help and i ahve made those...

    Thanx for all your help and i ahve made those changes hopwever i get problems if i change "luke" to numbers or the letters 'a' or 'z' is that because i havn't linked it round?
  13. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    I sorted it anyway by just creating a new string...

    I sorted it anyway by just creating a new string and using that thanx for all of your help.Here is my code:


    #include <iostream>
    #include <fstream>

    using namespace std;

    int main()
    {
  14. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    Done it sorry 4 the arigance but it works except...

    Done it sorry 4 the arigance but it works except i cant remember how to flush a string?
  15. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    decompose definiton = to decay, putrefy.(lol)...

    decompose definiton = to decay, putrefy.(lol) look i have tried this before what makes you think that it will work this time?
  16. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    KK i finally understand all of this after playing...

    KK i finally understand all of this after playing around with it a bit however when i still try to decrypt this just prints the right amount of characters this time except it prints not "luke" like...
  17. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    I changed but alli get is 1 little heart on the...

    I changed but alli get is 1 little heart on the encrypted part and decrypted = 1 little smily face!
  18. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    could someone tell me whats the matter with this...

    could someone tell me whats the matter with this please:



    #include <iostream>
    #include <fstream>

    using namespace std;

    int main()
  19. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    I know that the caeser cipher is incredibaly easy...

    I know that the caeser cipher is incredibaly easy to crack for anyone that knows how to however i am just using it as something to start on as i have aways been really interested in cryptography and...
  20. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    I just cant do it i ave tryed reversing my code...

    I just cant do it i ave tryed reversing my code e.g:


    decrypted += ( ( (a[i] + 'a') - (offset + offset2) * (offset3 / offset) + offset2) %26) - 'a';

    But that doesn't do it so i drastically...
  21. Thread: Caeser Cipher

    by L_U_K_E
    Replies
    35
    Views
    5,354

    Caeser Cipher

    Recently i have been playing around with caeser cipher and i came up with this:



    string a = "thisisit";
    string ciphertext;
    int b = a.length();
    int offset = 3;
    int...
  22. Thread: New Project

    by L_U_K_E
    Replies
    4
    Views
    1,005

    Thanx im just like coming up with ideas and just...

    Thanx im just like coming up with ideas and just thinking wether or not they are logical and what would be the easiet and most time effective way of doing a project like this.Do you have any idea...
  23. Thread: New Project

    by L_U_K_E
    Replies
    4
    Views
    1,005

    I was thinking about doing this thing where the...

    I was thinking about doing this thing where the user can add a respons to a question and that way the program can forever expand and have multiple answers to a wider array of questions.What do you...
  24. Thread: New Project

    by L_U_K_E
    Replies
    4
    Views
    1,005

    New Project

    I was browsing some of the pages on this forum when i came across this page where someone was planning on making a prog. that is a bit like this....

    http://www.oliverbot.com/

    And i decided that...
  25. Replies
    17
    Views
    1,862

    Write this is what i have done sofar (not that...

    Write this is what i have done sofar (not that much but i only do it in my spare time) but have a look if you want and tell me what you think of it.Thanx.
    ...
Results 1 to 25 of 108
Page 1 of 5 1 2 3 4