Search:

Type: Posts; User: Mrnate592

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,596

    I don't understand

    I don't understand, how I understand is that the program is splitting this number in two because of the space after the area code.
    (564) 412-0388
  2. Replies
    8
    Views
    2,596

    Searching not working now

    So the format of which the program reads the file is now correct. Thank you so much. Here's how it looks:

    [(564) 412-0388] [] [Rodriguez, Rodriguez and Rodriguez] [Suite 287 1609 Hayes Rue,...
  3. Replies
    8
    Views
    2,596

    Reply

    Hey John. I get this but I don't understand what format operator do I replace it with?
  4. Replies
    8
    Views
    2,596

    Searching a file in C

    Hello there, I am trying to search a file in C using a phone number. Records are stored in this format:
    1-###-###-### x###|Name|Address|false

    Now the real issue. Say these two records are in the...
  5. Replies
    9
    Views
    3,788

    So I'm trying to do the opposite of what I did earlier

    Here's my code. It basically reverses everything by using the key and jumbled text. Again it won't put a whole column into the matrix. I also took out this part is_used[j] = true;

    insert
    ...
  6. Replies
    9
    Views
    3,788

    I see you are indeed correct.

    I realise the mistake you are speaking about. The code doen't swap the outer column. With the string "one two three four five" and key king the output should be " eofnwh rvotteuieorf e" not what I...
  7. Replies
    9
    Views
    3,788

    What do you get for phrase "one two three four five" and key "king"?

    I get eorf enwh rvotteui which is correct. However if I add an "s" to that key I will get "e erenoeuvowroi thff-" instead of " t noeuvowroie erethff"
  8. Replies
    9
    Views
    3,788

    Still not working

    As you can see below some elements are not in the matrix and there is a big gap.

    adwa — ImgBB
  9. Replies
    9
    Views
    3,788

    Algorithm not working in C

    I have an algorithm which transposes columns based on a key and its alphabetical order. This is an example. However, when I input a key of more than 5 characters long the program is messed up. Some...
  10. How to call string from different function in C?

    So this creates a file, stores some text and presents a menu. Currently only 1 option is to censor the file. I created read_string to open the file and take the text from there. So I want to censor...
  11. How to print columns of a 2d array as one string

    insert


    char matrix[10][10] = { 'H', 'e', 'l',
    'l' , 'o', 'I'}




    So my expected output is HleolI.
  12. Thanks!

    But I'm not getting it to print using putchar() so can I use a for loop and print the matrix instead?
  13. How to store a string letter by letter in a 2D matrix?

    It takes a string and key both chars. The amount of columns are determined by the length of the key. However, I'm not getting this to work.






    #include<stdio.h>
    #include<string.h>...
  14. Aw man I'm so sorry I realised till at the end I...

    Aw man I'm so sorry I realised till at the end I would need the 2D array:(
  15. How do I rearrange the columns?

    So basically now the code collects the string, key and generates a matrix with column size based on key size. Also it prints the key in alphabetical order. Question is for columnar transposition say...
  16. It takes the str and key

    I don't want to store output to a file. Can I use scanf instead?
  17. So I want to actually make a columnar transposition algorithm to encrypt the messages

    So basically it asks for a key and string. The length of the key determines how many columns in the matrix there are. However I call the strlen function but it doesn't work. It keeps on giving me the...
  18. So I want to actually make a columnar transposition algorithm to encrypt the messages

    So basically it asks for a key and string. The length of the key determines how many columns in the matrix there are. However I call the strlen function but it doesn't work. It keeps on giving me the...
  19. Is there any possible way to convert this program from C++ to C?

    insert



    #include <bits/stdc++.h>
    using namespace std;

    // Function to string into grid form
    void gridStr(string str)
    {
  20. Replies
    5
    Views
    4,531

    Hey thanks is it possible to put this into a function like format?

    char * censor( char *sentence, char *word)
  21. Replies
    5
    Views
    4,531

    Hey thanks for your help however I am getting a problem when compiling.

    [Error] 'for' loop initial declarations are only allowed in C99 or C11 mode
  22. Replies
    5
    Views
    4,531

    Censoring Text In C

    I am trying to censor a word in a sentence by replacing all the letters with aesterisks (*). But I only know how to replace the word with one aesterisk and when I space out the sentence it doesn't...
Results 1 to 22 of 22