473,765 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

loop in structure while using c#.... how can we declare

1 New Member
if we r making a library record for five book then we have to use for loop like title, author, subject, pages..etc

how will i call them in C#,
in c++ we st[5]; and we write st[i].title...etc

how we can make similar thing in c#
Mar 19 '13 #1
1 1183
r035198x
13,262 MVP
They are called arrays. You can read about them from the C# programming guide: http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx

You loop through them using a while or a for statement: http://msdn.microsoft.com/en-us/library/ch45axte.aspx

You should read the whole C# programming guide before writing code in C#.
Mar 19 '13 #2

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

Similar topics

2
2199
by: Sylvia | last post by:
Hi, I'm trying to render a XML structure to HTML using XSLT. My XML describe the header of a table with a complex and not linear structure. The first row of the header table always contains the ServiceName (attribute name), under I have to show all the other fields with correct structure. Can you help me to write XSLT document? My XML doc:
1
7183
by: Srihari | last post by:
I'm trying to develop a tree structure using javascript. The node values of the tree are generating from a mysql table depending on login. The tree structure contains 3 sub levels. I developed static HTML tree using http://www.treeview.net. now i need to generate this tree dynamically. Can any one has code for this?
3
4182
by: Raj | last post by:
I want to pass a C structure from a windows server to the C# client using the Sockets. Will there be requirements to cast the data types in the C# client?
4
7860
by: adamrobillard | last post by:
Hi, I have always used fopen and FILE* to load and save structures to file. I am trying to convert all the older code to use proper C++ calls... the following code works properly but I would like to know if I am using the fstream methods properly. (as long as I am cleaning up I might as well do it right). By the way, this is just a bogus example with a structure, values and filename for demonstration purposes. PS-> I have a funny...
7
9148
by: ayesha | last post by:
hi i am beginner in java and i need help with programining ,Please if you could suggest me some sites where i can see some solved examples of codes as well as i need code for following ******** * * * * * * ******** I need a code to make above mentioned , in nested loop form.
1
1298
by: SAIRAAM | last post by:
hi all I am right now in a work of enhancing a project which is already availiable. Its a log file analyser project.in that the existing system takes single log file as input.. my target was to enhance it by making it to accept multiple files. i am able to do that.. now the requirement is that although it takes multiple files at single stroke the computations are to be made 1 file at atime only.. so i splitted the fies with the code...
1
4434
by: asadjahangir | last post by:
I need ur help regarding Serial communication in Win32. The problem, i m having is quite strange. It is related to fParity member of DCB structure After setting the fparity=True with SetCommState(), when i get DCB structure with GetCommState(), i always find fparity=FALSE. I have tested it on 3 machine all running windows xp sp2 and standard COM driver but having the same problem. Its looks as SetCommState is unable to set fparity...
1
1316
by: sriathma | last post by:
How to Copy empty structure using Postgres. Sridharan
4
1607
by: damjanovic | last post by:
Hi all, I've got some code in a form (frmTimer) which checks another form (frmOrders) every 2 seconds to see if any new records have been added. If yes, then a MsgBox pops up on the admin's screen. I'd like to add some more similar code to frmTimer to check if a particular field (chkAcknowledged) in frmOrders has been checked off, and if yes, issue a popup MsgBox. However - the caveat is that in this case I need to be able to identify the...
4
9957
amitpatel66
by: amitpatel66 | last post by:
In real time applications, there is always a requirement to generate the data selected from database in XML format. using Oracle, generating XML Structured data becomes easier using the inbuilt package DBMS_XMLGEN. This package can be used to convert the OUTPUT of the SELECT Query in to XML Format. The below code can be used to generate the SELECT Query OUTPUT in XML Format: DECLARE my_context NUMBER := 0;
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9833
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.