473,386 Members | 1,801 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,386 software developers and data experts.

Printing in a Tabular format to the screen

I am a beginner in programming, but still its interesting as i always want to know the real programming ,so thats why i keep asking. I need assistance on how to code using functions so that the output to the screen is in a neat tabular format.
Oct 1 '11 #1
2 8497
you can use gotoxy() function for reaching specific position on screen.
Also you can use 2D array to store results and finally print them.
Oct 1 '11 #2
donbock
2,426 Expert 2GB
Are you using printf() or cout to print text?

For printf(), you can specify a field width to help your columns line up nicely. For example, "%8d" instead of "%d".

I'm sure there's some way to do the same for cout.
Oct 1 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Ben Bullock | last post by:
Hi, I want to print a string of UTF8 encoded characters as two-character hexadecimals. For example I want to print Unicode 3003 as "E3 80 85". My problem is, what format string should I...
4
by: Eric | last post by:
How to i create a form in tabular format without using wizard. thanks,
3
by: lucky | last post by:
Hi guys, i want to write some data in tabular format in text file. i've data in strings and i want to write like this in file col1 col2 col3 d1 d1 d1 d2 d2 ...
2
by: teju | last post by:
Hello, I have to display all the data from the database in tables in ASP. I am able to get the data but the problem is of displaying one to many relations.Like below Title1 has two records but how...
2
by: madhu542 | last post by:
Hi, I am trying to print the values of a file in the tabular format... The contents of the file are :- TILE 1: Serial Number: 1 Model Number: 110A Hardware Rev: 220A
1
by: sharan | last post by:
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. Want a c program on that in Linux environment....
1
by: sharan | last post by:
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format using C language. i am getting ouput serially but not in...
2
by: Aparna Shukla | last post by:
I have written a vb 6.0 code to send email. but now i want to insert table like wise in word and send email through vb code so how to dot it ? *** Sent via Developersdex...
4
by: jeet123 | last post by:
hi, i am new to c#. How can i make a form which displays data in a tabular format where the data is retrieved from the database (ms-access) and displayed in that from in table. No matter if the...
1
by: zwamin | last post by:
can someone let me know the html code for reading a text file with tab delimiter in a webpage in tabular format? number of rows in the text file is not known...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.