hello i am new to the programming world and was wondering if anyone could help me out with a problem i am having.....i need to accept keyboard input, and reproduce it after eliminating whitespace unless in "string literal"....so far i am able to print the input but im not quite sure how im supposed to delete the whitespace....here is what i have so far...
i dont expect anyone to do this for me....but i have a textbook and notes and i just dont understand how to get this done....if anyone could give me any hints i would appreciate it. thanksCode:#include <stdio.h> int main() { int c; printf("This program eliminates whitespace from an input stream,\n"); printf("except from within string literals in double quotes.\n"); printf("\n"); printf("Type characters, and enter EOF after <enter> to finish:\n"); while ((c = getchar()) != EOF) { putchar(c); } system("pause"); return 0; }