China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 16:08
中国DOS联盟论坛 » 网络日志(Blog) » 523066680 Editing Area View 34,792 Replies 42
Floor 31 Posted 2010-08-03 20:43 ·  中国 广东 深圳 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline



#include <BoysAndGirls.h> /*Character nature*/
#include <Garden.h> /*I've thought about the location environment*/
#include <Action.h> /*All kinds of actions*/

int main(int time, char *BoysAndGirlsName)
{
New result;
result=meet(boy("John"),girl("Alice"));
printf("%s",result.body);
/*IYY types out a screen full of characters, and the characters form a pair of twins */
/* return 2, if the output ML character animation, rely on... */
return result.babys;
}




[ Last edited by 523066680 on 2010-9-5 at 19:44 ]
Floor 32 Posted 2010-08-12 22:58 ·  中国 广东 深圳 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline


2i5HMABAA&&ABMMA9A&2hHhG39BBSrs29HM#B#BHA#M#B&A#GSX993X3G2:..
S5H#H Guangzhou Weilishun Electronics XS239irisi5hAH##A#H#BM##ABB323333h&2:..
5GMAA =.= This is converted S32irrSsXSXXX2&3AAMBA3H#MB#AX2X39395:..
53AHAHH#AMBM##BB#h2MhS2G9Srr5s99iX32Ss;r3AB#2iA#B##h2X33X2S,
9&BAHBM##B###MM#A3Mh5hA3555X9AHX5XXiSr,,,X##AiiHMH#B22XXX2i,
&HHABB###M##M###BM9XA&2SXGGB#Bh9hXSiS;...:&#A#23BBM#&22XG&3,
GH&G&MM###AM##AAM39Hh52&HB##&9GAA2iir... ,rMBAA3AM##Bh3hGAA:
GBA&&#MAAAAM#AAMGAA3SGMHA##9SAAhA5r;,.... ,5B#A9&M##HAhGh&A;
GB#MHHMAAA##AAHGBHAGM#AAHHi;XMS9hS:,..... ,&BA#GH##AAABhAM;
GMAM#B#AAA#A#&AMM####HGAh;,rA5rAX,.. .,:;r;;XM#AA&M#A&HM&BAr
hMA#A#AA###H&#AAA###AS2i,.:X3,Xh, ,:s5Sir;::rH#A#GAABA#MBAAs
9B##AAAAMA&A#AAA##AB222sssrh:sG, ,;5i:. .,,:3###A&BMBA#BAAi
9A##AAAMGA#AAAABHG;,:,,:rSSs:S, ,:;:,;h#A#Bhr2##MAABAA##H#A5
AAAM#BB##AAA#A#H2;:rrrr:::;;;,...,:;AAAAA,.#&XM#BAA####HHAAX.
#MMH#AA#AAABB#HX5AAAAAAB;;;::,....:;,hA2; .;;5AAB#ABMMA##AA9.
#AAAAAA#A###HhXXAMrBMAA, .::::,.. .. ,:,,;3AM#A#BB#M#AA&.
2AA#AAA#B#M#M3sriir;r;,.,,,,:::.. ,SAB###BBM&BAAA.
SGAAAAAAHM#MM9;;:,. .,,,,,,::,.... . XABA##HBMGH#AA
25#AAAAAMBAM#Br::. ...,,,,,:,..............A#BA##BM#&H#AM,
3XGAAAAAAMA#MA3;;,,,.....,,,,::,........,,,,.:A#BMA#B###M#A#.
h92AAAAAAA#AMHAi;::::,,,,,,,:;;r:;:.....,,,,.iA#MhH#####MMA#.
9hXXAA#AAAAA#&hir::::::::,,::;rss;:....,,,,,,HA#AAM99A#A##AH.
h&Xh#A#A#AAAAMBS;;:::::::::,,,:::,. .,,:::.sAAB&MBhirr5MAA&
hG9AAAMM#AAAAAA#r:;;:::::::,:::,,,:iX,,:::,;AA#AHBHA9S: rAH
&GhAAA#GMB&#AA#A#;,;;;;;;::rMHh99HM##:,::,rAAMMHHHH&i:. , :AM
HAAMAX#M9BHGAAA#AA5;:;;;;;;;iAAH2si5s..,,iAA##BAHAAG; ,i,5#2
AHA5,rAABAMGAAAAAAAB2r;:;;;;,;ris,:i2i::&AA###HhM&9G;..r:r#2r
X2s:rHA#A#AB&A#AAAAAMBhi;;;;;:;riiS55AHG&B##B#&h#G3G2;;;;&2sX
;:;shABXHA#AHAA#AAM##AM#H3i;;;::,::;XMMA25i2##h#A&i2&;:;92ssA
;;iiiBBh&#A#GAH&M#BA#A23hGGh2ir;;;riSsri2XX2S29AAA;2&,:XA2hH2
;rirrABHH##AA&HAGA#GhHiiS552X33X222ir;;:29SX&2s2HBX&r,SMAGHA5
;;r;:G#AAMAAAA&H&AHH5HXsiiiiiiiiiis;;;rr5#A3S5hXi2Ai:XABA&&&X



[ Last edited by 523066680 on 2010-9-5 at 19:44 ]
Floor 33 Posted 2010-09-05 19:45 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Accidentally needed, the characters in the T-card address book of a certain brand of mobile phone use UTF-8 encoding for storage


#!/usr/bin/perl
open READ,"<next.x";

$lv_=00000000;
$lv_=11000000;
$lv_=11100000;
$lv_=11110000;
$lv_=11111000;
$lv_=11111100;

use utf8;

$a="我";
printf "%s\n",&code2utf(ord $a);
print "END!";
<STDIN>;


sub code2utf {
my ($code,$bin,$level,$hex,$tmp,$result);
$code=$_;
$bin=sprintf "%b",$code;

$level=1;
if (length($bin)>7) {
while (length($bin)>=6) {
$level+=1;
$bin=~s/.{6}$//;
$hex=sprintf "%X",&bin2int(10 . $&);
$result=$hex ."-". $result;
}
}

$tmp=substr($lv_,0,8-length($bin));
$hex=sprintf "%X",&bin2int($tmp . $bin);
$result=$hex ."-". $result;
$result=~s/-$//;
$result; #result - string
}

sub bin2int {
my ($a,$str,$all,$act);
$a=$_;
$str="";
$all=0;
$act=0;
do {
$b=($a % 10) * (2**$act); #** as ^ of the calc
$all+=$b;
$act+=1;
$a=int ($a/10);
} until ($a==0);
int ($all);
}
Floor 34 Posted 2010-11-02 15:57 ·  中国 广东 深圳 电信
初级用户
★★
Credits 95
Posts 66
Joined 2010-08-09 10:45
16-year member
UID 172043
Gender Female
Status Offline
Seeing this makes my head spin...
Floor 35 Posted 2014-04-07 20:29 ·  中国 福建 三明 电信
新手上路
Credits 10
Posts 4
Joined 2009-05-14 06:21
17-year member
UID 145071
Gender Male
Status Offline
Originally posted by 523066680 at 2009-02-13 18:49:

@echo off &setlocal enabledelayedexpansion
set /p inp=" : "
call :funa na %inp%
call :funa nb %inp:* =%


set /a lpna=0,lpr=-1
:lpna
set /a lpna+=1,lpnb=0,lpr+=1,lp=lpr
:lpnb
set /a lpnb+=1,lp+=1
::::::::::::::::::::::::::
set /a cup%lp%+=na%lpna%*nb%lpnb%
set /a tlpa=lp,tlpb=tlpa+1
:cuplp
set /a cup%tlpb%+=cup%tlpa%/10,cup%tlpa%=cup%tlpa%%%10
if !cup%tlpb%! gtr 9 (
set /a tlpa+=1,tlpb=tlpa+1
goto :cuplp
) else (if !cup%tlpb%! equ 0 set /a tlpb-=1)

::::::::::::::::::::::::::
if %lpnb% lss %nb% (goto :lpnb)
if %lpna% lss %na% (goto :lpna)

for /l %%a in (%tlpb%,-1,1) do set /p=!cup%%a!<nul
echo,
echo,wscript.echo %inp: =*%>x.vbs
cscript //nologo x.vbs
pause>nul &exit


:funa
set %1=%2
set funaa=0
:funaa
set /a funaa+=1
set %1%funaa%=!%1:~-%funaa%,1!
if not "!%1:~%funaa%!"=="" (goto :funaa)
set /a %1=funaa


Version 2

@echo off &setlocal enabledelayedexpansion
set /p inp=" : "
call :naxnb %inp%
pause

:naxnb
set numa=%1
set numb=%2
set /a la=0,lpr=-1
:la
set /a la+=1,lb=0,lpr+=1,lp=lpr
:lb
set /a lb+=1,lp+=1,tlpa=lp,tlpb=lp+1
:::::::::::::::::::::::::
set /a cup%lp%+=!numa:~-%la%,1! * !numb:~-%lb%,1!
:cuplp
set /a cup%tlpb%+=cup%tlpa%/10,cup%tlpa%=cup%tlpa%%%10
if !cup%tlpb%! gtr 9 (
set /a tlpa+=1,tlpb=tlpa+1
goto :cuplp
) else (if !cup%tlpb%! equ 0 set /a tlpb-=1)
::::::::::::::::::::::::::
if not "!numb:~%lb%!"=="" (goto :lb)
if not "!numa:~%la%!"=="" (goto :la)
for /l %%a in (%tlpb%,-1,1) do set /p=!cup%%a!<nul

::::::::vbs verification:::::::::::
echo,
echo,wscript.echo %inp: =*%>x.vbs
cscript //nologo x.vbs
pause>nul &exit



[ Last edited by 523066680 on 2009-2-21 at 10:46 ]


Command line mode test:
Can it really add?
How to exit? Damn!
Floor 36 Posted 2015-06-13 14:42 ·  中国 广东 广州 荔湾区 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Hey, there are still people coming up?
Floor 37 Posted 2015-10-14 14:50 ·  中国 广西 电信
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Hehe, you also came online.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 38 Posted 2016-07-06 20:14 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
```
=info
Edit: vicyang
Mail: 523066680@163.com
Date: 2016-06
=cut

use v5.16;
use utf8;
use Encode;
use LWP::UserAgent;
use LWP::Simple qw/getstore get/;
use IO::Handle;
STDOUT->autoflush(1);

our $website = "http://www.pep.com.cn/gzwl/jszx/tbjx/kb/dzkb/";
#our $website = "\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x70\x65\x70\x2E\x63\x6F\x6D\x2E\x63\x6E\x2F\x67\x7A\x77\x6C\x2F\x6A\x73\x7A\x78\x2F\x74\x62\x6A\x78\x2F\x6B\x62\x2F\x64\x7A\x6B\x62\x2F";

our $bookpage;
our $WORKDIR;
our $page1maps;
my ($path, $begin, $end);

my @booklist = qw/
bx1 bx2 xx11 xx12 xx21 xx22 xx23 xx31 xx32 xx33 xx34 xx35 /;


for my $book (@booklist)
{
print "Now is downloading: $book\n";
$bookpage = $website. $book . "/";
$WORKDIR = "D:\\Extra\\Book\\Physics\\" . $book;

CreatePath($WORKDIR);

($path, $begin, $end) = get_pgnum_range($bookpage);
print "Path: $path, $begin to $end\n";

# Page 1 corresponding page number
$page1maps = get_who_map_page1($bookpage);

get_picture($bookpage, $path, $begin, $end);
}

system("pause");

sub get_pgnum_range
{
my $bookpage = shift;
my $all;
$all = get($bookpage); # What is obtained using lwp::simple is unicode,
# What is obtained using lwp::UserAgent is GB2312
my @pglist;
my $path;

$all =~ s/.*封面//s; # If there is a cover, remove it

#./201102/t20110217_1021412.htm
for my $e (split("\r?\n", $all))
{
if ($e =~ /href="\.\/(*_)(\d+).htm"/)
{
$path = $1;
push @pglist, $2;
}
}

@pglist = sort @pglist;
return $path, @pglist;
}

sub get_who_map_page1
{
my $bookpage = shift;
my $all = get($bookpage);

$all =~ s/\r?\n//g;
if ($all =~ /\d+_(\d+)\.htm+第/)
{
return $1;
}
else
{
die "first page code not found! ";
}
}


sub get_picture
{
my ($bookpage, $path, $begin, $end) = @_;

our $page1maps;
our $WORKDIR;
my $all; # Web page content
my $subpage; # Sub-page
my $pic; # Picture name
my $count = 0; # Page number count
my $fname; # File name

# This web page address is in reverse order, book page +1, website code -1

for (my $n = $end; $n >= $begin; $n--)
{
$subpage = $bookpage . $path . $n . ".htm";

$all = get($subpage) or next;
if ($all =~ /IMG src="?\.\/(*.jpg)"?/i) # There may not be "" symbols
{
$pic = $1;
$subpage =~ s /+$/$pic/;

if ($n <= $page1maps)
{
$count++;
$fname = sprintf("%03d.jpg", $count);
}
else
{
$fname = $pic;
}

getstore($subpage, $WORKDIR."\\".$fname) or die "$!";
print "$pic\n";
}
}
}

sub CreatePath
{
my $path = shift;
my @arr=split(//, $path);
my $main;

$main = shift @arr; # Start with the drive letter

for my $s (@arr)
{
$main .= "/" . $s;
mkdir($main) if (! -d $main);
}
}


```
Floor 39 Posted 2016-07-06 22:14 ·  中国 上海 联通
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
The link is invalid, it took one point from me, the thread starter give it back to me.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
523066680 +5 2016-08-31 20:41
1<词>,2,3/段\,4{节},5(章)。
Floor 40 Posted 2016-07-26 14:52 ·  中国 黑龙江 哈尔滨 呼兰区 电信
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
Originally posted by zzz19760225 at 2016-7-6 22:14:
The link is invalid, it took me a minute, the owner returns it to me.

It is not easy to keep the forum.
Data loss is inevitable.
Floor 41 Posted 2016-09-28 11:43 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Actually, it can be accessed. Change the domain part to the current one:

http://www.cn-dos.net

Change to

http://www.cn-dos.net
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
zzz19760225 +5 2016-09-28 13:20
Floor 42 Posted 2016-09-28 13:19 ·  中国 海南 海口 移动
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
I was blind before and didn't see the programming languages below. I see them today, and here's five points for you.
1<词>,2,3/段\,4{节},5(章)。
Floor 43 Posted 2017-12-04 13:49 ·  中国 海南 海口 电信
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Just passing through
1<词>,2,3/段\,4{节},5(章)。
Forum Jump: