473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

convert codings to software

rampraveen
I am creating one small C program which is used for performing addition and some mathematical calculations. My doubt is if I want to calculate any thing in that program first I have to compile that program, then i can able to get the answer. Without compiling can I give that input numbers? If we are opening calculator in computer(windows xp) first we gave the input numbers then it shows the corresponding output. So like that can I do something similar in C?
May 7 '10 #1

✓ answered by Markus

You can do that by passing command-line arguments to your C program.

For example, consider this (MyCalc is your calculator executable):

C:\> MyCalc.exe multiply 2 5
>>> 10

Here multiply, 2, and 5 are command-line arguments, and your program functions according to them.

See this google link for informatin on the subject.

1 1573
Markus
6,050 Expert 4TB
You can do that by passing command-line arguments to your C program.

For example, consider this (MyCalc is your calculator executable):

C:\> MyCalc.exe multiply 2 5
>>> 10

Here multiply, 2, and 5 are command-line arguments, and your program functions according to them.

See this google link for informatin on the subject.
May 7 '10 #2

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

Similar topics

3
by: Eric | last post by:
Guys, I have the following hexadecimal string - '\xff\xff\xff' which i need to convert to binary. How would i go about doing this? Eric
1
by: NsonHo | last post by:
May i know the coding for Insert, Update and Delete of MS SQL? Any good websites to search for Codings?
3
by: NsonHo | last post by:
Hi.. can i know what is the .Net Framework coding for Insert, Update, Delete for MS SQL? Any websites to find codings? Please reply asap.. thx...
0
by: wajja | last post by:
I Need to know how to assign passwords to access tables.please show me some SQL sample codings.and what are SQL Access Controls
6
by: sreekandan | last post by:
Hi Now im doing one project to maint the login and logout time of the organization. So I need the VB codings to get the Current time and Date with detail. So kindly reply me anyone.
0
by: asenthil | last post by:
Hai, this is senthil... i'm now working in the field of VC++.. i have to convert text data into xml data... i will explain u clearly what i have to do... i'm having XML codings for creating...
1
by: asenthil | last post by:
Hai this is senthil... I had tried to write a string which fetched from a database. into a file... when i tried to compile the solution the following error occurs like this error C2664:...
2
by: =?Utf-8?B?VGltb3Rp?= | last post by:
Given any string in C# as variable, how to convert that into Initial Capital Ex: "how are you doing?" to be displayed as "How Are You Doing?" -- God bless you for the help
7
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm new to Visual Studio 2005. I'm creating a windows application using Visual Basic. After I added a control to a form and added some codings to the control, I want to rename the control. ...
1
by: jiaudheen | last post by:
hi..i'm jiaudheen. i'm a entry level software employee. i'm new to .net environment. i work on Visual Studio2005. ASP.net as front end. Sql 2000 as back end. C# as code behind. the task is..i have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.