help with c programming?
Write a C program that will do the following:
•Read in a number of records of your friends’ names and birthdays (string with format %26lt;mmdd%26gt;). Save it on a binary file. Each record (struct) must also have a record number (sequential and starting at 1) that is generated automatically by the program and stored in the first field of the struct.
•Create two index files, i.e. a file consisting of a name field and a record number field. The file must be sorted (use a sorting algorithm) according to the name field. Do the same for the birthday field. This process must take place automatically after the names have been entered.
•Use the index files to find the birthday of a friend if the name is entered, or the name if a date is entered, or a list of every birthday in a specific month.
•You must also be able to update the file (go to the end and add records).
Index files in records in C programming?
You want someone here to write that for you? It's not a quick question and many people here could do it, but I'm sure your instructor would prefer you do your own homework.
Friday, May 21, 2010
How do you write exponents in c Programming?
lets say to the 12th power
How do you write exponents in c Programming?
#include %26lt;math.h%26gt;
....
y = pow(x, 12);
Reply:Under the assumption that you are using a linux box for your programming... The below example should give you a clear picture.
#include %26lt;math.h%26gt;
int main()
{
printf("3 to the power of 12 equals: %f\n",pow(3,12));
}
To compile ( Ensure to link the math library )
gcc exp.c -lm
To run
./a.out
Reply:use the pow(int,int) function, defined in math.h
Ex: (takes x to the fifth power)
#include %26lt;math.h%26gt;
#include %26lt;iostream%26gt;
using namespace std;
int main() {
int x = 5;
cout%26lt;%26lt;pow(x,5)%26lt;%26lt;endl;
return;
}
Reply:pow() function in math.h (there is no operator for exponentiation)
song lyrics
How do you write exponents in c Programming?
#include %26lt;math.h%26gt;
....
y = pow(x, 12);
Reply:Under the assumption that you are using a linux box for your programming... The below example should give you a clear picture.
#include %26lt;math.h%26gt;
int main()
{
printf("3 to the power of 12 equals: %f\n",pow(3,12));
}
To compile ( Ensure to link the math library )
gcc exp.c -lm
To run
./a.out
Reply:use the pow(int,int) function, defined in math.h
Ex: (takes x to the fifth power)
#include %26lt;math.h%26gt;
#include %26lt;iostream%26gt;
using namespace std;
int main() {
int x = 5;
cout%26lt;%26lt;pow(x,5)%26lt;%26lt;endl;
return;
}
Reply:pow() function in math.h (there is no operator for exponentiation)
song lyrics
How can i remove the penalty of access violation in c programming?
I use microsoft visual studio 6.0 in writing my code in c, and i has a problem when dynamically allocating a large size of memory, the error is access violation to memory. the answer is how can i getride of this problem
How can i remove the penalty of access violation in c programming?
Do u deallocate memory (i.e. use free) each time u allocate some ?
Reply:Check for null or bad pointers in your program.
It sounds like your program has a bug where you are trying to access a bad memory location.
Reply:The access violation error is caused when you access memory that is NOT allocated to the program. This could be caused by a null or zero pointer.
Double check your pointer allocation that it is set to point to the allocated memory.
Reply:Post the buggy code so we can take a look.
How can i remove the penalty of access violation in c programming?
Do u deallocate memory (i.e. use free) each time u allocate some ?
Reply:Check for null or bad pointers in your program.
It sounds like your program has a bug where you are trying to access a bad memory location.
Reply:The access violation error is caused when you access memory that is NOT allocated to the program. This could be caused by a null or zero pointer.
Double check your pointer allocation that it is set to point to the allocated memory.
Reply:Post the buggy code so we can take a look.
C programming language?
Could anyone please tell me, today where C programming language is in mostly use. what is its importance. I finished a book about it and want to improve it. But I am not sure yet, I need someone to convince me. I am still a student, and interesting in software...What languages can u suggest me?
C programming language?
now learn c++ then java
Reply:If you want to made money learn SAS. Its easy. Too many c programmers and the coding is done in india. I am a lotus notes programmer.
Reply:C is the basic thing. you can do any thing with a set of code.
Linux and Windows are bult up in C. I don't suggest you to improve to c++. But it's good to study about some concepts in OOPs. You can Implement any of these concepts in C.
Now C is used in win32 application in VC++ and in programming in linux, C is a major thing.
Reply:Learn as you can get all the C families
C , C++ , MFC , C#
This is the best lanuage I ever known
Reply:Windows itself is written in C. You can basically write anything in C. If you feel you have a good grasp on it, move on up to C++
Reply:Anything where speed is an issue, Linux and its programs (that is why a Pentium is good enough as a modern machine), Windows and programs that deals with hardware, Palm programs. A study in C is not complete without C++ today.
Reply:I'm going to tell you something that comes from my own experience as a Software Developer (7 years now). I learned C, C++, Java, practically all the mainstream (and not so mainstream) programming language. IMHO, it all comes down to what you would like to do for your life, how do you see yourself in 10 years from now, that sort of things.
1. C and C++, these are what they called 'System Programming Language', because they are used to program low-level stuff, like the Operating System, a Device Driver for a piece of Hardware, or even to write 'other' programming language. This is all cool, if you are good, you will get paid a lot.
2. Java used to be the 'golden boy' of Software Development, the slogan 'Write Once - Run Anywhere' promised a lot, and delivered most of it. Java is still widely used in a lot of project, from small coursework to running financial trasaction in big banks. Although it will be still around for quite sometime, for me it already look like a Dinosaur. Nevertheless, it is a very good entry to the world of commercial Software Development. You can learn of Object Oriented using Java.
3. Comes Microsoft's own baby project, it's called .NET. .Net is not a programming language, rather it's a development framework, on which you can build your software. The new slogan is 'Write with anything, Run anywhere you want', soft of. The framework is Language agnostic, meaning you can write the 'same' program with any language you want, provided it adheres to certain criterias, mix together. The new .NET framerwork 2.0 is very good, and it also comes with 'free' IDE. If you are serious about Developing Software in Enterprise level, I suggest you start with this.
4. The dawn of Agile Programming. This is new phenomenon, it came with the 'second' coming of the Web, hence it usually refer to Web Development. Traditional Software Development process tends to do their releases in a long gap between versions (when was the last time we have major Windows release ?). Agile Programming suggests that application should be release in small chunks but often, like every month or even every week. If you are interested in Web Programming try Ruby on Rails, goto http://www.rubyonrails.com, check out the 'screencasts', you'll love it :) If you 'do' decide to go to this route, let me know :)
Rememver that we need to realise that sooner or later, our life is going to be very dependent on the NET, hence Web Developers are badly needed. The Web is the future.
Reply:C++ is the standard for most applications today. If you want to do programming You need to get a Computer science degree from a school with a good reputation for technology. The best way to learn programming is in a real work environment, and the only way to get there is with a good degree. Don't try to teach yourself programming, you will never learn it very well that way. You need professionals to mentor you, or you will never learn the right way to do it.
C programming language?
now learn c++ then java
Reply:If you want to made money learn SAS. Its easy. Too many c programmers and the coding is done in india. I am a lotus notes programmer.
Reply:C is the basic thing. you can do any thing with a set of code.
Linux and Windows are bult up in C. I don't suggest you to improve to c++. But it's good to study about some concepts in OOPs. You can Implement any of these concepts in C.
Now C is used in win32 application in VC++ and in programming in linux, C is a major thing.
Reply:Learn as you can get all the C families
C , C++ , MFC , C#
This is the best lanuage I ever known
Reply:Windows itself is written in C. You can basically write anything in C. If you feel you have a good grasp on it, move on up to C++
Reply:Anything where speed is an issue, Linux and its programs (that is why a Pentium is good enough as a modern machine), Windows and programs that deals with hardware, Palm programs. A study in C is not complete without C++ today.
Reply:I'm going to tell you something that comes from my own experience as a Software Developer (7 years now). I learned C, C++, Java, practically all the mainstream (and not so mainstream) programming language. IMHO, it all comes down to what you would like to do for your life, how do you see yourself in 10 years from now, that sort of things.
1. C and C++, these are what they called 'System Programming Language', because they are used to program low-level stuff, like the Operating System, a Device Driver for a piece of Hardware, or even to write 'other' programming language. This is all cool, if you are good, you will get paid a lot.
2. Java used to be the 'golden boy' of Software Development, the slogan 'Write Once - Run Anywhere' promised a lot, and delivered most of it. Java is still widely used in a lot of project, from small coursework to running financial trasaction in big banks. Although it will be still around for quite sometime, for me it already look like a Dinosaur. Nevertheless, it is a very good entry to the world of commercial Software Development. You can learn of Object Oriented using Java.
3. Comes Microsoft's own baby project, it's called .NET. .Net is not a programming language, rather it's a development framework, on which you can build your software. The new slogan is 'Write with anything, Run anywhere you want', soft of. The framework is Language agnostic, meaning you can write the 'same' program with any language you want, provided it adheres to certain criterias, mix together. The new .NET framerwork 2.0 is very good, and it also comes with 'free' IDE. If you are serious about Developing Software in Enterprise level, I suggest you start with this.
4. The dawn of Agile Programming. This is new phenomenon, it came with the 'second' coming of the Web, hence it usually refer to Web Development. Traditional Software Development process tends to do their releases in a long gap between versions (when was the last time we have major Windows release ?). Agile Programming suggests that application should be release in small chunks but often, like every month or even every week. If you are interested in Web Programming try Ruby on Rails, goto http://www.rubyonrails.com, check out the 'screencasts', you'll love it :) If you 'do' decide to go to this route, let me know :)
Rememver that we need to realise that sooner or later, our life is going to be very dependent on the NET, hence Web Developers are badly needed. The Web is the future.
Reply:C++ is the standard for most applications today. If you want to do programming You need to get a Computer science degree from a school with a good reputation for technology. The best way to learn programming is in a real work environment, and the only way to get there is with a good degree. Don't try to teach yourself programming, you will never learn it very well that way. You need professionals to mentor you, or you will never learn the right way to do it.
C programming question?
I've just started C programming and how can I make a program to trace the ip of the receiver of the packets/data that I send across the internet? For example, I open the program and send an email and the program traces the data and gives me the receiver ip.
C programming question?
You really can't do what you say you want to do. When you send an email, it goes first to your ISP's mail server, then from there to the recipient's mail server. Later, when they pick up the email from their ISP, there's no way for you to know what IP address they're using to retrieve the email.
Reply:If you are writing an email client, you can get the ip of your smtp mailserver.
If you want the ip of the recipient's mail server you do:
host -t mx domain (note the hostname)
and then host hostname
See the link for how to resolve a hostname in C
C programming question?
You really can't do what you say you want to do. When you send an email, it goes first to your ISP's mail server, then from there to the recipient's mail server. Later, when they pick up the email from their ISP, there's no way for you to know what IP address they're using to retrieve the email.
Reply:If you are writing an email client, you can get the ip of your smtp mailserver.
If you want the ip of the recipient's mail server you do:
host -t mx domain (note the hostname)
and then host hostname
See the link for how to resolve a hostname in C
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
This is the book
http://search.barnesandnoble.com/booksea...
Is it a good first guide for the programming scene with c#?
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
Them Head First books from Oreilly are ok.
It really didn't say if it was for the 2005 version or not.
As xna needs at least the 2005 C# express edition, you might want to look for books that do instruct working with 2005 (not really that much difference) but there is a few new things that XNA might use (such as generics) that might not be explained in some books.
savage garden
http://search.barnesandnoble.com/booksea...
Is it a good first guide for the programming scene with c#?
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
Them Head First books from Oreilly are ok.
It really didn't say if it was for the 2005 version or not.
As xna needs at least the 2005 C# express edition, you might want to look for books that do instruct working with 2005 (not really that much difference) but there is a few new things that XNA might use (such as generics) that might not be explained in some books.
savage garden
What are priority quess in c programming language? How can it be implemented? Explain.?
check this link
http://cplusplus.com/reference/stl/prior...
http://cplusplus.com/reference/stl/prior...
Subscribe to:
Posts (Atom)