|
Create a File Processing System which allows for Random Access to Binary Files. The System should manage a file with a maximum of Ten (10) Records. A Record should consist of the following: (1) First Name (2) Last Name (3) Age (4) Sex (5) Salary(Use appropriate datatypes for each field.) The System should provide a menu which enables the user to: (1) Add (2) Delete (3) Modify, a Record.
|
|
|
|
|
When I was at school, I never did my homework. There's no reason why I should do *your* homework way long after I've completed my school.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I used to dig forums and such, but I never posted the homework subject in a forum and asked for ppl to do it.
Seriously, don't expect someone to answer this.
|
|
|
|
|
Tony_P wrote: Seriously, don't expect someone to answer this.
Seriously, you should be replying to the OP, instead of me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
I'm trying to write a wav file to the sound card, but how are you supposed to do this? You can find various libraries to play all kind of music but what's hidden behind those libraries?
Basically, what should I do to directly send data to the sound chip? I can't find much information about this...
Thanks,
Tony
|
|
|
|
|
I think your best bet would be DirectSound API [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
That's again an API. Is there a way to do something like fopen("soundcard","w") ?
|
|
|
|
|
AFAIK, you can't (unless you go in kernel mode).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Too bad then 
|
|
|
|
|
Are you looking for something like Sample Audio Drivers[^]?
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
Well I was trying to write a MP3 player I could easily port to the Nintendo DS by going very low level (ie: fwrite to the sound card). But well, if can't speak directly with the sound device I guess this isn't going to work.
|
|
|
|
|
Tony_P wrote: Well I was trying to write a MP3 player I could easily port to the Nintendo DS by going very low level (ie: fwrite to the sound card). But well, if can't speak directly with the sound device I guess this isn't going to work.
Anything like an "fwrite to the sound card" just plain isn't going to work. Sound cards, like graphics cards, require data to be passed in the right way, and to the right buffer addresses etc, which is why there are drivers and APIs to help you do this.
I'm a game audio programmer, working on PC at the moment, but I've written systems for most consoles in the past - unfortunately not for the DS, so I can't give you specific advice, but it too will have a specific API which is how you should send the audio data and control information to the hardware.
In fact a quick google turns up lots of hits for DS homebrew audio (e.g. here) and the interface looks pretty simple. You should be able to get sounds up and running reasonably quickly using that.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
i need to increment the string value in VC++ 6.0 MFC dialog based application.
if the value of the string is 60 then it should get increment to 61. how can i achieve that. The string would contain number only.
Pl suggest.
|
|
|
|
|
diptipanchal wrote: The string would contain number only.
Then why not use numeric datatypes than string?
|
|
|
|
|
I can not define that variable as int as i would need to store the variable value in txt file using CStdioFile. Using this class, it does not allow to store "int" value.
*********** EXAMPLE ****************
int m_barNo;
cfile.WriteString(m_barNo);
****************************************
if i try to store the int value using WriteString member function of CStdioFile, it gives an error as below "error C2664: 'WriteString' : cannot convert parameter 1 from 'int' to 'const char *' "
Hence i would need to increment string..could anyone suggest how do i proceed...
|
|
|
|
|
sscanf should do the trick no?
|
|
|
|
|
You first have to convert it to an integer (how to do it depends on what you mean by "string" exactly), increment the integer and then convert it back to a string.
|
|
|
|
|
Well, it's simple:
- Convert the string to a numeric value.
- Increment the numeric value
- Convert back the numeric value to string
What are your troubles in doing that?
Too slow Carlo, too slow...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Why can you not just use an integer instead of exploring ways to misuse a string?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: exploring ways to misuse a string
Because abusing strings is always a lot more fun!
|
|
|
|
|
Jim Crafton wrote: Because abusing strings is always a lot more fun!
Well, exporing double roundings is even more fun...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Oh, you cut me low, you cut me really low...
|
|
|
|
|
i like it. 8 bits for each digit instead of 1/ln(|digit|). how many times are you incrementing?
|
|
|
|
|
I want to search all data in a registry using a single file or folder entry using C++, MFC
|
|
|
|
|
Please elaborate.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|