By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,434 Members | 1,878 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,434 IT Pros & Developers. It's quick & easy.

(part 22) Han from China answers your C questions

P: n/a
its urgent.pls help me.

mona said:
hi,i urgently need a project including graphics,pointers.
not a major one.
pls send at "jahanm...@gmail.com"
mona said:
hey i m a new user,i dont how nd where wil i get ds project.
pls help
Hey again, mona.

Please check the thread "(part 21) Han from China answers
your C questions", in which I gave you a program with
the required functionality. Since any sort of graphics
programming requires tight optimization, plenty of others
have contributed optimizations for the initial program, and
we're still looking for ways to refine the program for
you.

I have come up with a way that uses only the preprocessor:

----- program begins -----
#error -->
----- program ends -------

As you can see, I have used a couple of the optimizations
contributed by others. I have changed "===>" to "-->", for
two reasons: one, using '-' instead of '=' enables certain
scanning devices to encode/compress the program output a
little better and reduces the load on certain older display
devices; two, dropping a byte saves valuable space. There's
talk about changing the --to -in the next release
branch, but nobody has really had the time to write and test
a patch yet.
Yours,
Han from China

Il mittente di questo messaggio|The sender address of this
non corrisponde ad un utente |message is not related to a real
reale ma all'indirizzo fittizio|person but to a fake address of an
di un sistema anonimizzatore |anonymous system
Per maggiori informazioni |For more info
https://www.mixmaster.it

Nov 15 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
George Orwell wrote:
its urgent.pls help me.

mona said:
hi,i urgently need a project including graphics,pointers.
not a major one.
pls send at "jahanm...@gmail.com"

mona said:
hey i m a new user,i dont how nd where wil i get ds project.
pls help

Hey again, mona.
[...]
I have come up with a way that uses only the preprocessor:

----- program begins -----
#error -->
----- program ends -------
[...]

Your revised program fails to make use of pointers, plural. Perhaps you
could combine them as follows, similar to how you did with your first
solution using printf?

#include "-->"

A filename is a pointer of sorts, and the error due to not finding the
file will likely print the pointer graphically. The use of ">" in the
filename also shows knowledge of the #include mechanism, that the ">"
won't be interpreted specially inside the quotes, whereas #include -->
would be invalid because the filename doesn't begin with a "<".
Nov 15 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.