i have started coding in c but i keep getting errors i don,t know how to solve maybe it is because i am used to coding in php language but i hope anybody can help me
#include <stdio.h>
#include <cs50.h>
#include <string.h>
int main(int argc , string argv[])
{
string tekst[] = 0 ;
string plain = get_string("plain text: ")
;
string encripted = 0;
string plaintext[] = plain;
string alphabet = "abcdefghijklmnopqrstuvwxyz";
int count = 0;
for (int i = 0; i < strlen(plain); i++ ){
for(int x = 0; x <strlen(alphabet); x++){
if(plain[i] == alphabet[x]){
tekst[i] = argv[x];
}
}
printf("%s",*tekst);
}
}
if i run this it will give me
substitution.c:8:8: error: array initializer must be an initializer list string tekst[] = 0 ;
substitution.c:14:8: error: array initializer must be an initializer list string plaintext[] = plain;
i tried google but doens,t help me