zoj1099_html格式转换
本文最后更新于 1836 天前,其中的信息可能已经有所发展或是发生改变。
// zoj1099_html格式转换.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

int main()
{
	string str;
	char ch1[100];
	int len = 0;
	while (scanf("%s", ch1) != EOF)
	{

		if (str == "<br>")
		{
			cout << endl;
			len = 0;
		}
		else
		{
			if (str == "<hr")
			{
				if (len != 0)
				{
					printf("\n");
				}
				for (int i = 0; i < 80; i++)
				{
					cout << "-";
				}
				cout << endl;
				len = 0;
			}
			else
			{
				int len1 = str.length();
				char *ch = new char[len1];
				strcpy(ch, str.c_str());
				if ((len + len1)> 80)
				{
					cout << endl;
					cout << str << " ";
					len = len1 + 1;
				}
				else
				{
					cout << str << " ";
					len = len + len1 + 1;
				}
			}
		}

	}
	cout << endl;
	return 0;
}

作者:Yuyy
博客:https://yuyy.info
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇