你将如何打印照片,无需在C库函数的性质? [英] How will you print a character without library functions in C?

查看:181
本文介绍了你将如何打印照片,无需在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..

推荐答案

好感谢ü所有乌拉圭回合answers.I由郝先生的问题下面留言找到了一个简单的答案。他的答案很简单,这样的程序

的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 : ) - //浩(一小时前)

我想它的Turbo C和它的工作。
我想这样一个简单的解决方案,我想接受它作为正确的答案,但他(郝)把它作为一个评论,所以我贴在这里为其他用户知道这代表他并表示可以接受。再次感谢üMr.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.

这篇关于你将如何打印照片,无需在C库函数的性质?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆