Posts Tagged ‘c program’

Is there any software that will allow me to program in a programming language like C on a PC?

I took C programming in college and I want to try my hand at it again. Is there any software that will run a C program or programs in other languages? Also, is there any language that has become very popular since the early 1990s that would be even better to learn than C?

How to write a program to send an email in C?

My email takes a really long time to boot up, log in, and send an email. Also I am learning C, so I was wondering if anyone knows a function or other way to send an email from a C program? I already have a program to prompt for address, subject, and body message, but I don’t know how to send it. Any ideas?

How to split a string and store each portion to a separate array in C?

I am writing a c program and i can’t quite figure out how to split each string (such as: ABC|DEF|123 using ‘|’ to split.) and store each part into a different array.

C++ ?!!!!!!!!!!!!!!!!!!!!?

I have these problems in C++ and i cant figure how how to solve them !! could you help me plzzzzzzzzzzzzzzzzzz?
Question no.1:

Write C++ Program that calculates the following series using for loop :

Result= 1 + 2 + 3 + 4 + 5 +………………..+ N
1! 2! 3! 4! 5! N!

Where :
N: is the last number in the series ,and it must be entered by the user
(!) Is the factorial of a non –negative integer .
For example 4!=4*3*2*1=24

Question no.2:

Using C++programming language ,make a Log In system for a company .
This system should log in the user after entering two codes .The first code used for specifying the user category ,then a Sub code must entered for individual users.
Using the following codes:

**Categories:
Category Code
Administrator 1
Backup operator 2
Network Configuration operator 3
Guest 4
Other error

** Sub code :

User Code
Administrator1 12879
Administrator2 23547
Administrator3 54789
Backup operator 1 45822
Backup operator 2 54078
Backup operator 3 55698
Network Configuration operator 54473
Guest 52136
Other error

(Rewrite the previous using Switch )

plzz help me !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
++ ?!!!!!!!!!!!!!!!!!!!!?
I have these problems in C++ and i cant figure how how to solve them !! could you help me plzzzzzzzzzzzzzzzzzz?
Question no.1:

Write C++ Program that calculates the following series using for loop :

Result= 1/1!.+ 2/2! + 3/3! + 4/4! + 5/5! +………..+ N/N!

Where :
N: is the last number in the series ,and it must be entered by the user
(!) Is the factorial of a non –negative integer .
For example 4!=4*3*2*1=24

Question no.2:

Using C++programming language ,make a Log In system for a company .
This system should log in the user after entering two codes .The first code used for specifying the user category ,then a Sub code must entered for individual users.
Using the following codes:

**Categories:
Category Code
Administrator 1
Backup operator 2
Network Configuration operator 3
Guest 4
Other error

** Sub code :

User Code
Administrator1 12879
Administrator2 23547
Administrator3 54789
Backup operator 1 45822
Backup

How to raise a negative base to a fractional exponent in C++?

I am trying to raise -13 to the 1.854 power in a C++ program but the software cannot raise negative bases to non-integer values.

Does anyone have an algorithm for doing this? This is a calculation that I need to repeat many times.
Thanks

How to write a C program to evaluate epsilon for a single-precision floating point number?

Can anybody help me to write a C program to evaluate the epsilon for a single-precision floating point number? I seriously have no idea. Thanks a lot!!

How do I compile a C# program with an icon from the command line?

I am working with C#, and I do not be happening to be using visual studio for this and a lot of it is very automated, so I was wondering how you compile a C# program so that the executable will have an icon. DO I need to make assembly instruction files or something?

How to write a C program to find the factorial of 500 or even bigger numbers?

How to write a C program to find the factorial of 500 or even bigger numbers?