473,408 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

printing "%t"

How do I print " %t %h " (not the quotes) ?
I tried "\" as the escape character, but still the output does not
display "t" and "h"
Anyone have an idea ?

Oct 5 '07 #1
4 4452
"ra**********@gmail.com" <ra**********@gmail.comwrites:
How do I print " %t %h " (not the quotes) ?
fputs (" %t %h ", stdout);
or
printf (" %%t %%h ");
--
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa6 7f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}
Oct 5 '07 #2
On Oct 4, 9:38 pm, Ben Pfaff <b...@cs.stanford.eduwrote:
How do I print " %t %h " (not the quotes) ?

fputs (" %t %h ", stdout);
or
printf (" %%t %%h ");
I swear to god, I tried that earlier !!
But anyways, thanks !!

Oct 5 '07 #3
On Fri, 05 Oct 2007 04:19:31 +0000, ra**********@gmail.com wrote:
How do I print " %t %h " (not the quotes) ?
I tried "\" as the escape character, but still the output does not
display "t" and "h"
Anyone have an idea ?
www.c-faq.com, question 12.6.

--
Army1987 (Replace "NOSPAM" with "email")
A hamburger is better than nothing.
Nothing is better than eternal happiness.
Therefore, a hamburger is better than eternal happiness.

Oct 5 '07 #4
"ra**********@gmail.com" wrote:
>
How do I print " %t %h " (not the quotes) ?
I tried "\" as the escape character, but still the output does
not display "t" and "h". Anyone have an idea ?
putc or puts or fputs. Or the %s string descriptor for printf.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Oct 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Piotr B. | last post by:
Hello, I use MingGW g++ 3.2.3 on Windows 2000/AMD Athlon XP. I tried to output a "long double" variable using stdio printf(). I've tried various %formats (%llf, %Lf etc.), but none of them...
2
by: ML | last post by:
This may have been answered lately, but I have not been able to access this group for some time. I am using Access 2000 and Outlook 2000. (Can move to 2002 or 2003 if necessary). Certain...
42
by: Prashanth Badabagni | last post by:
Hi, Can any body tell me how to print "hello,world" with out using semicolon Thanks in advance .. Bye Prashanth Badabagni
0
by: Harry Whitehouse | last post by:
I misposted this quesiton earlier in this newsgroup. The print dialog in my application (the one where you select a printer) can be centered on the parent form without much trouble. But can one...
25
by: mdh | last post by:
I wrote a little insignificant program, to help me write a more significant one!!...that was supposed to print all Ascii values from 0 to 127: >>>> #include <stdio.h> # define UPPER_LIMT 127...
0
by: Emby | last post by:
Hi, I am aware that the "Printing" dialog displayed by a PrintDocument during the invocation of the doc.Print method can be suppressed by setting the doc's PrintController property to an instance...
0
by: Emby | last post by:
Hi, I am aware that the "Printing" dialog displayed by a PrintDocument during the invocation of the doc.Print method can be suppressed by setting the doc's PrintController property to an...
8
n8kindt
by: n8kindt | last post by:
how do i suppress the outputting and printing dialog boxes that pop up while running vba code such as: DoCmd.OpenReport "Report1" or DoCmd.OutputTo acOutputReport, "Report1", acFormatPDF,...
0
by: Tim | last post by:
Our application has used this PrintersClass module for some time without a problem but some new Toughbooks have caused problems. We use laser printers, usually the default choice, and some label...
1
by: =?Utf-8?B?Y2FzdGVyYnJpZGdl?= | last post by:
HP deskjet F2180 printer, windows XP with SP3 installed. Bought printer when we were still at SP2 and it was fine printing all my works database stuff, haven't used it for a while but now I get an...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.