This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#include "dictionary.h" | |
int main (int argc, char *argv[]) | |
{ | |
FILE *open = fopen(argv[1],"r"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _XOPEN_SOURCE | |
#include <unistd.h> | |
#include <cs50.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
int toasci(int c); | |
int main(int argc, string argv[]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int toasci(int c) | |
{ | |
int ascii; | |
if (c >= 0 && c <= 25) | |
{ | |
ascii = 65; | |
int upper = 0; | |
while (upper < c) | |
{ | |
ascii++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <cs50.h> | |
#include <ctype.h> | |
#include <string.h> | |
int main (void) | |
{ | |
string s = get_string(); | |
char f; | |
int len = strlen(s); |