Editing my c code for this question 4) Write a C program named a4q4.c which read
ID: 3929974 • Letter: E
Question
Editing my c code for this question
4) Write a C program named a4q4.c which reads the standard input and extract HTML-style tags from it. We consider that the HTML-style tags are all strings starting with character “less-than” (<) and end with the character “greater-than” (>). In case that there is a tag starting with ‘<’ but not finishing with ‘>’ at all, then print it all the way to the end of input. Each tag should start at a new line. Input The input is in a free textual form. Output The output consists of a list of tags in the order that they appear in text. Each tag should start on a new line. All content of a tag should be printed in the same way as it appears in input. If a tag is not finished, it should still be printed. The sample input and output below illustrate behaviour of the program. Hint : The program should read input character by character and immediatelly produce output or not based on the context.
The code is :
The out put for this code is mixing beteween the string and html tags. Please help me as soon as possible.
Explanation / Answer
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
if(a[i]>0)
if(d[i]>0)
printf(" + ");
else if(d[i]<0)
printf(" - ");
else
printf(" ");
printf("%dx^%d",d[i],i-1);
}
getch();
}
#include <stdio.h>
#include <stdlib.h>
typedef struct polynomial Polynomial;
void init_poly(Polynomial *p)
void print_poly(Polynomial *p)
p->coefficient[p->order--] = 0;
}
void r_print_differential_poly(Polynomial *p)
}
int main(void)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.