[英]how can I get the source code (html) of a page in C?
how can I get the source code (html) of a page in C? 如何获取C页面的源代码(html)? I need external libraries?
我需要外部库吗? I read a library (libcurl), which is right for me or is there some function that no other libraries should I download?
我读了一个库(libcurl),它很适合我,还是有一些我不应该下载的功能?
For this task string.h library will be enought.This library contains alot of functions which will help you to work with strings of your html page. 对于此任务,string.h库就足够了。该库包含许多函数,可帮助您处理html页面的字符串。
Your algorithm: 1. You are calculate quantity of characters in HTML file; 您的算法:1.您正在计算HTML文件中的字符数量; 2. Allocate array;
2.分配数组; 3. Read file into array;
3.将文件读入数组; 4. Work with your array;
4.使用阵列;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.