如何在C中打印没有库函数的字符?
如果例如我不应该使用标准库函数像printf,putchar然后如何我可以打印一个字符到屏幕容易。有什么简单的方法做。我不知道很多关于系统调用,如果我必须使用它们然后如何?
所以,任何一个建议一个简单的方法打印一个字符,而不使用库函数?提前感谢。
If for example I should not use standard library functions like printf, putchar then how can I print a character to the screen easily. Is there any easy way of doing it. I dont know much about system calls and if I have to use them then how?
So can any one advice an easy way of printing a character without using library functions?? Thanks in advance..
好的谢谢你所有的答案。我发现一个简单的回答郝先生的评论下面的问题。他的回答是简单的程序这样
Turbo C(DOS程序):
Well thank u all for ur answers.I found one simple answer by a comment from Mr. Hao below the question. his answer is simple program like this
Turbo C(DOS program):
char far* src = (char far*) 0xB8000000L;
*src = 'M';
src += 2;
*src = 'D';
或尝试: http://en.wikipedia.org/wiki/Brainfuck :) - // Hao(一小时前)
我试过在Turbo C和它的工作。
我想要一个像这样的简单解决方案,我想接受它作为正确答案,但他(Hao)把它作为一个评论,所以我把它粘贴在这里为其他用户知道这个代表他并接受它。再次感谢郝先生。
or try this: http://en.wikipedia.org/wiki/Brainfuck :) – //Hao (an hour ago)
I tried it on Turbo C and its working. I wanted a simple solution like this and I wanted to accept it as correct answer but he(Hao) gave it as a comment so I pasted it here for other users to know about this on behalf of him and accepted it. Once again thank u Mr.Hao.