Array Help.

Hello Everyone , I am writing a code in which i search a char array and look at what is missing in the array i mean what letters are missing in the array.

I worked out a small code but i seem to have some error in the answer though it compiles fine.
This is not a homework assignment. But a small project i am working on which needs something same like this.

In that case, your loops are inside out. The outer loop should run through the alphabet and the inner loop should check every letter against your input. If the letter was found, raise somesort of flag (bool) and only display the letter if this flag wasn't set by the inner loop.

for (int a=0;a<=strlen(one);a++)

Change this to : for (int a=0;a<strlen(one);a++) or else you'll get undefined behavior because you'll go out of your array bounds.

I will now post down the original code which is still unfinished and i am placing a similar problem in the code. So i decided to first get a different program to perform the function and then copy and paste the code and modify it in my original

Here is the original code

#include <iostream>
using namespace std;
int s;
int main()
{ int s1,j;
char en[26],ci[26],keyword[10],key,message[40];
cout<<"\nEnter the keyword\n";//beta
cin>>keyword;
cout<<"Enter the key\n";//r
cin >>key;
cout<<"Enter the message that you want to cipher: \n";
cin >> message;
cout<<"Your keyword is:: "<<keyword<<"\n";
cout<<"Your Key is :: "<<key<<"\n";
cout<<"Your message is :: "<<message<<"\n";
int y=0;
for(int x='a';x<='z';x++)
{//This creates the English Alphabets placed in en
en[y]=x;
y++;
}
for (int j=0;j<=25;j++)
{
if (key == en[j])
{
::s = j;//Getting the Cypher KEY number to continue
}
}
cout<<"The cypher Key Number is "<<s<<"\n";
int b=0;
for (::s;b<=strlen(keyword);s++)
{
ci[s]= keyword[b];
b++;
}
for(b=0;b<(s-(strlen(keyword)+1));b++)
{ci[b]='0';}
for(b=(s-1);b<=25;b++)
{
ci[b]='0';
}
int a;
/*Here i am trying to get the function to place the remaining letters into the array on the right hand site first and the remaining on the left hand side so that i will get the total cypher code But i get no errors during compile time or runtime but the wrong answers. */
for(a=(s-1);a<=25;a++)
{
for(b=0;b<=25;b++)
{
for(int c=0;c<=25;(c++))
{
if(en[b]!=ci[c])
{
s1=c;
}
else{
break;
}
}
}
j=s1;
ci[a]=en[j];
}
for(int d=0;d<=25;d++){cout<<ci[d];}//Trying to see what its producing..
cout<<"\n"<<en;
cin.get();
cin.get();
}
//And over here will be the remaining part of the program where i take the message and then encrypt it up using the cypher alphabets comparing to the english alphabets.

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...