Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
1
answer
45
views
How can i get int value of ith charactor in the string
i want to get the integer value of ith character in the string, this is my program please tell me mistakes. … #include <stdio.h>
#include <cs50.h>
#include <string.h>
int main (void)
{
string s = GetString();
int n=strlen(s);
for (int i=0;i<n;i++)
int a = s [i];
printf("%i",a);
} …
0
votes
1
answer
40
views
I have written this code for vigenere and it is giving 02 errors
isalpha(argv[1][i]))
{
printf("must be alpha\n");
return 1;
}
}
printf("please enter string of txt\n");
string p = GetString();//plain … text
int plen = strlen(p);//lenth of plain text
int klen = strlen(argv[1]);//lenth of key
string key[klen];// string used as for key
for (int j = 0; j < klen; j++)
{
if (isupper …
0
votes
1
answer
56
views
This is my code for vigenere pset2 and it is giving 4 errors please help.Errors are as follows
isalpha (argv[1][i]))
{
printf ("must be alpha\n");
return 1;
}
}
printf ("please enter string of txt\n");
string p = GetString();//plain text … int plen=strlen (p);//lenth of plain text
int klen=strlen (argv[1]);//lenth of key
string key[klen];// string used as for key
for(int j=0;j<klen;j++)
{ …