pgm没有std库函数 [英] pgm without std library functions
问题描述
是否可以使用C和C ++中的标准库函数编写程序来读取和打印不带
的数字?
如果是......怎么样?
等待回复...
is it possible to write a program to read and print a number without
using standard library functions in C and C++?
if yes ....how?
waiting for a reply...
推荐答案
Letsee ++写道:
Letsee++ wrote:
是否有可能编写一个程序来读取和打印数字而不使用C和C ++中的标准库函数?
is it possible to write a program to read and print a number without
using standard library functions in C and C++?
定义读取和打印。
答案可能是否定的。
为什么你不想使用标准库?它真的非常有用,而且,错误...标准的一部分是有原因的。
Ben Pope
-
我不仅仅是一个数字。对很多人来说,我被称为字符串...
Define "read" and "print".
The answer is probably no.
Why would you not want to use the standard library? It''s really quite
useful, and, err... part of the standard for a reason.
Ben Pope
--
I''m not just a number. To many, I''m known as a string...
Letsee ++写道:
Letsee++ wrote:
hi,
是否有可能编写一个程序来读取和打印数字而不使用C和C ++中的标准库函数?
如果是......怎么做?
is it possible to write a program to read and print a number without
using standard library functions in C and C++?
if yes ....how?
>
答案是明确的可能。许多平台提供了可用于此的其他非标准的
功能。在某些情况下,您甚至可以直接使用某些特定的hackery直接访问硬件。
The answer is a definite "maybe". Many platforms offer other, non-standard,
functions that could be used for this. On some, you might even be able to
do some specific hackery to access the hardware directly.
" Letsee + + QUOT;写道:
"Letsee++" writes:
是否有可能编写一个程序来读取和打印数字而不使用C和C ++中的标准库函数?
如果是的话...... .how?
is it possible to write a program to read and print a number without
using standard library functions in C and C++?
if yes ....how?
你当然可以在DOS时代的机器上做到这一点。我不记得了所有的话,x86浮现在脑海中。您可以通过
类型的后门与操作系统进行通信。我怀疑如果一个人足够聪明你可能仍然能够做某事。我写了一个例程来打印(在*打印机*上)
仍在Windows 98中使用这些技术我正在考虑 - 我
没用过最近。这避免了印刷负担沉重的GUI方式,所以它实际上有用。您可以同时打印
程序执行是一个Windows程序(控制台
程序)。
还要考虑使用system()函数可以做什么。
You could certainly do it on machines in the DOS era. I can''t remember all
the buzz words, x86 comes to mind. You could communicate with the OS via a
kind of back door. I suspect if one were clever enough you might still be
able to do something. I wrote a routine to print (on a *printer*) that
still worked with Windows 98 using these techniques I am thinking of -- I
haven''t used it lately. This avoided the heavily burdened GUI way of
printing, so it actually served a purpose. You could do printing
concurrently with program execution is a Windows program (which a "console"
program is).
Consider also what you might do with the system() function.
这篇关于pgm没有std库函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!