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
Type: Posts; User: Mrnate592
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
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,...
Hey John. I get this but I don't understand what format operator do I replace it with?
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...
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
...
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...
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"
As you can see below some elements are not in the matrix and there is a big gap.
adwa — ImgBB
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...
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...
insert
char matrix[10][10] = { 'H', 'e', 'l',
'l' , 'o', 'I'}
So my expected output is HleolI.
But I'm not getting it to print using putchar() so can I use a for loop and print the matrix instead?
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>...
Aw man I'm so sorry I realised till at the end I would need the 2D array:(
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...
I don't want to store output to a file. Can I use scanf instead?
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...
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...
insert
#include <bits/stdc++.h>
using namespace std;
// Function to string into grid form
void gridStr(string str)
{
char * censor( char *sentence, char *word)
[Error] 'for' loop initial declarations are only allowed in C99 or C11 mode
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...