🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #26

Re: ASM to fajna sprawa

#26
From: Rat Without Tail
Date: Mon, 13 Mar 2006 22:04
36 lines
2193 bytes
Odpowiedź do listu Wielce Szanownej Pani / Szanownego Pana „Stachu
'Dozzie' K.”.

> Najwyraźniej to ty nie wiesz, o czym mówisz. Przetłumacz mi na kod
> assemblerowy takie coś:
> 
> #v+
> #include <iostream>
> #include <string>
> #include <vector>
> using namespace std;
> 
> int main(void)
> {
>   typedef int mytype;
>   typedef vector<mytype> myvec;
>   myvec v;
>   mytype l;
>   while (cin >> l)
>     v.push_back(l);
> 
>   for (myvec::reverse_iterator i = v.rbegin(); i != v.rend(); ++i)
>     cout << *i << endl;
> 
>   return 0;
> }
> #v-
Używając wskaźników do danych na stosie o przesunięciu zdefiniowanym
jako parametr makra. Dokładnie tak jak to robi kompilator C++.

Wasz
-- 
: qo   |)     =@=N%_g=v=a=g_ed_e=c()=d=8= %IGn@8're: w8in ad
:    _x/ ,     H'%'a'h4'HA.XO'Xo'xo'xO.R %expo1ited: *-1 teh
:    |    ng  __%-- __ -- __ -- __ -- __%/by$qVerCo: &GooMee
^.__ -- __ -- % dbqr74oh4ekrbrgz.onion %/^v^'^ww^v^;_<E-O-F>
Technical Details
Message-ID: <dv4q9i$es3$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <dove53$oto$1@inews.gazeta.pl> <1hxuveusyewma$.dlg@takeda.tk.invalid> <gophi.pcla.1135824238@news.chmurka.net> <19gt62gras201.dlg@takeda.tk.invalid> <dp0qoe$90r$1@inews.gazeta.pl> <1ryj9votzqtrw$.dlg@takeda.tk.invalid> <hb3ar1hk8g7uhut5ssro8qgsopejodn042@4ax.com> <ducrju$dos$1@inews.gazeta.pl> <slrne0jtl4.isp.dozzie@hans.zsh.bash.org.pl> <dun8fv$1it$1@inews.gazeta.pl> <slrne0uap2.384.dozzie@hans.zsh.bash.org.pl> <dunhv6$m3f$1@atlantis.news.tpi.pl> <slrne0ujul.3od.dozzie@hans.zsh.bash.org.pl> <dv3kh0$iad$1@nemesis.news.tpi.pl> <slrne1arl3.9jm.dozzie@hans.zsh.bash.org.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Rat Without Tail <ratwithouttail@gazeta.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: ASM to fajna sprawa
Date: Mon, 13 Mar 2006 23:04:33 +0100
Organization: :
Lines: 36
Message-ID: <dv4q9i$es3$1@inews.gazeta.pl>
References: <dove53$oto$1@inews.gazeta.pl> <1hxuveusyewma$.dlg@takeda.tk.invalid> <gophi.pcla.1135824238@news.chmurka.net> <19gt62gras201.dlg@takeda.tk.invalid> <dp0qoe$90r$1@inews.gazeta.pl> <1ryj9votzqtrw$.dlg@takeda.tk.invalid> <hb3ar1hk8g7uhut5ssro8qgsopejodn042@4ax.com> <ducrju$dos$1@inews.gazeta.pl> <slrne0jtl4.isp.dozzie@hans.zsh.bash.org.pl> <dun8fv$1it$1@inews.gazeta.pl> <slrne0uap2.384.dozzie@hans.zsh.bash.org.pl> <dunhv6$m3f$1@atlantis.news.tpi.pl> <slrne0ujul.3od.dozzie@hans.zsh.bash.org.pl> <dv3kh0$iad$1@nemesis.news.tpi.pl> <slrne1arl3.9jm.dozzie@hans.zsh.bash.org.pl>
NNTP-Posting-Host: os-solna.bochnia.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1142287474 15235 82.160.2.94 (13 Mar 2006 22:04:34 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 13 Mar 2006 22:04:34 +0000 (UTC)
X-User: ratwithouttail
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit