473,657 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Managment

mugees4u
1 New Member
Sir I want to accept Employee Salary & it's compansation from keyboard and save it into database & display top 10 employees record on the basis of salary using C language with the help of Filemangment
Please provide source code!!!
Apr 30 '12 #1
1 1457
weaknessforcats
9,208 Recognized Expert Moderator Expert
Do this in logical pieces.

First, write a function that has arguments for your employee data and this function puts the data into an array.

Make the array very simple, like no more than 3 elements.

Second write a function that has arguments for your employee data and this function will display the data.

Third, write your main() where the user enters employee data. After ine emoloyee is entered, call your first function t put the data into the array. When all the employee data is entered, enter a loop where yu cal your second function to display the data.

Make sure this much works.

Then replace the inside of your first function to use a disc file instead of an array. Change your main() to open the file at the beginning and close it at the end.

Unless you write the code yourself you will never learn how to do it. I can help you if you get stuck but I cannot just do your work for you.
May 1 '12 #2

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

Similar topics

2
13824
by: Jake | last post by:
Hi group, I am trying to build a page that allows uploading My ISP only supports Smartupload I am testing on a small hubbed local network, with PWS Any help is appreciated. --------------------- 'rqstupl.asp contents <HTML>
4
3368
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a Document Exchange and Database System (like Lotus Notes or Oracle Managment Content, formerly known as Internet File System IFS ) with .NET interfazes. Basically the idea is that instead of sending papers the whole day,
0
339
by: falcon | last post by:
I know I came after the battle. And I have just another sight on context managment. Simple Context Managment may look in Python 2.4.1 like this: Synhronized example: def Synhronised(lock,func): lock.acquire() try: func()
2
1926
by: Jason Davis | last post by:
Hi there, Is anyone familier with an access managment system for orders? Something simple like products, alphabetic list of clients and archive of ordered products. Thanks! Jas.
4
14769
by: Jason Jacob | last post by:
To all, I've tried to use System.IO.File.Move (srcFile, desFile); but there is an exception similar to this : The process can't access desFile because it's being used by another process I think that it's strange since I've already closed the FileStreams associated to all available files already....
6
1405
by: Kevin Frevert | last post by:
In the process of learning VS2005/C# (having a background in Borland Delphi 2 through 2005) I came across an interesting feature of Visual Studio's file management. At first, it appeared there wasn't a way for me to 'share' common business objects (ex. \Projects\Objects\Customer\CustomerObject.cs) across multiple solutions. When I select Add -> Existing Item, navigate to the directory, and select the .CS file and select Add, VS *copies*...
17
16036
by: cnwy | last post by:
Hi, I have a long string in char * and want to convert it to a File * fp. Is there any best way to do it without using tmpfile? Thanks. wy.
0
1276
by: shining.sea | last post by:
This might be interesting for web master who have lots of digital and want an easy way to manage them http://digg.com/software/AJAX_Based_File_Managment_Web_Application This company, called Fabrik, claims to have a AJAX based web application, that allows for seamless file management using a web browser. Drag and drop capable. The demo is awesome. But the service will be available in about 1 month.
12
10959
by: Darrel | last post by:
I'm still having a hell of a time figuring out this whole SQL Express set up. I finally discovered why I couldn't run the aspnet_regsql...my local sql server wasn't running. I turned that on, and now I can see a list of DBs running locally. However, the .mdf file I have in my app_data folder does NOT appear on this list.
1
1499
by: cowboyrocks2009 | last post by:
Hi, I need to develop the functions below for a server in Java. Is there any package or class that I can use ? I just had a look at one namely... com.mindbright.net.ftp. Can you guide me about developing these functions below:- 1) Retrieve file from server 2) Add, edit, delete a file from server. 3) upload / download file from server 4) Logon and version control
0
8319
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
8837
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8512
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
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...
1
6175
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
4171
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...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
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.