Programming using Structures


 
Thread Tools Search this Thread
Top Forums Programming Programming using Structures
# 1  
Old 03-22-2006
Programming using Structures

Hi All,

I was given a format of a file, and was asked to write a program which displays the data contained in the file in that purticular format.

Its all so confusing.
Please find the example of the format as well the code I have written in the attachment.

I hope any one of u guyz can find me a way.

Thnkx
Jazz
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

C- static initialization of structures

Situation: I have an array of structures: struct my_struct_type { char tags_sn; char group_c; char is_err_c; }; struct my_struct_type stuff = { "abcd", 'A', 'E', "efgh", 'B', 'E', "ijkl", 'C', 'E' NULL, '\0', '\0' ... (14 Replies)
Discussion started by: garysk
14 Replies

2. Programming

Signalsafe data structures

Hello, I have a signal handler which manipulates a data structure. The data structure's operations aren't atomic. So if two threads/processes are in a critical section at the same time the data structure will be broken. With threads you can avoid this stuff with semaphores etc. However,... (10 Replies)
Discussion started by: littlegnome
10 Replies

3. Shell Programming and Scripting

Perl Data Structures

Here is what i need to do. @data #has all column wise data so say info for col 1 location for all rows would be in this array $array = \@data But i need to create a file which should contain these information in a format for all columns even if i have got no values from some of the index... (0 Replies)
Discussion started by: dinjo_jo
0 Replies

4. Programming

Dynamically allocated structures in C

I have a pointer to a structure containing an integer pointer: struct members { int id; int *neigh; }; The number of members N and its neighbors M change as the code runs, so I allocate the memory dynamically: members *grid = malloc(sizeof(members)*N); for(i=0;i<N;i++)... (2 Replies)
Discussion started by: brinch
2 Replies

5. UNIX for Dummies Questions & Answers

Production Directory Structures

We (our company) has just purchased a new IBM unix machine. We have been doing some research and have found that it is NOT a good idea to put your own in-house-written applications under the existing file folders such as /usr or /bin ect. Instead you should place these applications in directories... (7 Replies)
Discussion started by: jbrubaker
7 Replies

6. Linux

about system structures

hello can any1 plz tell me about the system defined structures (like sysinfo) which wil give system and n/w charecteristics (ex: freeram in sysinfo). (1 Reply)
Discussion started by: jeenat
1 Replies

7. Programming

Problem with pointers, structures, and Pthread

Hello all, I'm working on a small wrapper library for a bigger project, and i've been killing my self over (what I think is) a pointer problem. Here is the code (I extracted the part of the code where the problem is for better reading, I tested the code below, and I get the same problem):... (13 Replies)
Discussion started by: tmp0
13 Replies

8. Programming

pointer to structures

Dear friends I have a bit basic doubts in pointers and the structures inter relationships. the first one. static struct apvt { int dead; int pending; int abouttograb; }*agents=NULL; what agents pointer is... (1 Reply)
Discussion started by: tech_voip
1 Replies

9. Programming

reallocating structures dynamically in functions

I've recently started using structures, but I am having problems in allocating the structure dynamically. In the code below if i allocate the structure in the main program it works fine, and i get the expected output. However if i use the function rper below to increase the size of the structure i... (0 Replies)
Discussion started by: cezaryn
0 Replies
Login or Register to Ask a Question
exunicod(3alleg4)						  Allegro manual						 exunicod(3alleg4)

NAME
exunicod - Using Unicode string functions. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exunicod DESCRIPTION
This program demonstrates the use of the 16-bit Unicode text encoding format with Allegro. The example displays a message translated to different languages scrolling on the screen using an external font containing the required characters to display those messages. Note how the Allegro unicode string functions resemble the functions you can find in the standard C library, only these handle Unicode on all platforms. SEE ALSO
BITMAP(3alleg4), DATAFILE(3alleg4), END_OF_MAIN(3alleg4), FONT(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), destroy_bitmap(3alleg4), font(3alleg4), install_int_ex(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), keypressed(3alleg4), load_datafile(3alleg4), replace_filename(3alleg4), rest(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_uformat(3alleg4), set_window_title(3alleg4), text_height(3alleg4), text_length(3alleg4), textout_ex(3alleg4), uconvert_ascii(3alleg4), unload_datafile(3alleg4), ustrcat(3alleg4), ustr- cpy(3alleg4), ustrsize(3alleg4), ustrsizez(3alleg4) Allegro version 4.4.2 exunicod(3alleg4)