That last reply really helped me, Thanks alot.
Type: Posts; User: kctrk4
That last reply really helped me, Thanks alot.
It is returning 0 even when i reduce it to:
if (*ptr==x[i])
count++;
*ptr++;
The answer would be 11 but only return 11 when i use single.
Ive toggled between = and ==. If i simplfy the code down just to count strg length with ==, it returns 0 with = it returns 11. Thanks for reply though.
I am trying to have my function return # of repeated letters in a strg. Ex. mississippi has 3:i,s,p(can't count repeats) I am getting no errors but can't figure out how to get the right answer. If...
Not sure what you by last source.
Implement RC4 decryption in C as follows using the algorithm description from Wikipedia: (Wikipedia RC4 file)
Format taken from Wikipedia
I just don't...
I don't understand C all that well. I already thanked you but is there anyway you can tell me the problem in my program, which is causing me to print a random mess.
Thanks, although your code is quite different, can you explain it?
well i got it to compile without errors but my output is still not matching, can anyone help me?
Should be:
Money is better
Mine:
M-yM-t&^@M-2I{dM-^BPnzM
Use global variables for the key and keylength; the key will be your VU LDAP UserID, all lowercase. For example:
char key[] = "frodo";
int keylength = 5;
reset the RC4 permutation array:
...
Assignment is RC4 Decryption (General Idea)
It says im suppose to call reset and init to initialize the array in main.
#include <stdio.h>
char K[6]={'k','c','u','n','n','i'};
int i, j, T;
void reset( int S[])
{ for(i=0; i<=255; i++)
S[i]=i;
}
void init( int S[])
{
for(i=0; i<=255; i++)
Wrong, why are you at these boards. Perhaps i worded it wrong, i needed help finding the period using a sliding window. You couldnt figure it out anyway.
Write a program to produce 51 samples of...
It says the entire homework, i already did part1 involving parrallel-series component reliability.
Plus i already have part2 half done which is what i posted.
So thanks for nothing.
You are rude
You don't need to reply or look at my thread
#include <stdio.h>
#include <math.h>
#include "drand.h"
#define PI (4*atan(1))
int main(void)
{
double A, t, T, p, n, w, y, a, b, c;
A=drand()+1;
T=((drand()+1)*10);
That works for the 1st part, now i need to have it print out everything except syn pattern and stuffed bits
int main( void)
{
int state, next, c, out;
setbuf( stdout, 0); /* make stdout unbuffered */
next = START; /* set initial state */
while( 1)
{
/* get next input */
I am a freshman in college trying to learn C and i need help with this program if anyone would mind helping me.
For the first part i need to detect stuffed bits + SYN sequences and have the...
Im a freshman in college and im taking C but i may transfer to a college that uses C++. I was wondering if anyone thinks i would get credit for the course and the diffculty of moving to C++. I...