Question: Modify the code below so that it compiles with visual studio, I am getting these errors: Line 65 and 66: too few arguments in function
Modify the code below so that it compiles with visual studio, I am getting these errors: Line 65 and 66: too few arguments in function call and fopen_s too few arguments for call, the actual assignment is below my code ( in C ):
#include
char * converTopigLatin(char *eng, char * platin) { int i; int d = 0; if (isVowel(eng[0])) { for (i = 0; i for (i = first_vowel; eng[i] != '\0'; i++) { platin[d] = eng[i]; d++; } platin[d++] = '-'; platin[d++] = '\0'; strcat(platin, consonent_string); } return platin; } int main() { char platin[100]; char *p; char word[100]; char buf[100]; FILE *fp = fopen_s("C:/Users/Neil/Desktop/pigLatinInput.txt", "r"); FILE *fp_w = fopen_s("C:/Users/Neil/Desktop/pigLatinInput.txt", "w"); while (fscanf(fp, "%s", buf) != EOF) { fprintf(fp_w, "%s ", converTopigLatin(buf, platin)); } printf("Output is written to pigLatinOut.txt "); system("pause"); return 0; } The following is the contents of the file piglatinin.txt: 


go placidly amid the noise and haste and remember what peace there may be in silence as far as possible without surrender be on good terms with all persons speak your truth quietly and clearly and listen to others even the dull and the ignorant they too have their story if you compare yourself with others you may become vain or bitter for always there will be greater and lesser persons than yourself enjoy your achievements as well as your plans be yourself especially do not feign affection beyond a wholesome discipline be gentle with yourself you are a child of the universe no less than the trees and the stars you have a right to be here and whether or not it is clear to you no doubt the universe is unfolding as it should be cheerful strive to be happy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
