473,387 Members | 3,781 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,387 software developers and data experts.

Complex input getting

Hi Friends,
If any one know the answer please reply as soon as possible.
In my program i want to get three input values seperated by spaces(not on seperate lines), at the same time i want to check my second input value whether it was a character or an interger.
If it was a character then i dont want to get the third input and directly it must go to a function,
Else if the second input was an integer value means then it must go to another function meant for that....
Actually this is a program specification for a calculator program.....
the input format must be like this:
4 7 /
and
4 S (for finding the square value)
so for this it wont get the third value

Thanks in Advance.
If you have any doubt in the specification please feel free to ask.

Priya
Jul 11 '08 #1
3 1576
sicarie
4,677 Expert Mod 4TB
So you can read in the line as a string and parse it by the delimiting spaces.

Are you going to be using C or C++ for this?
Jul 12 '08 #2
So you can read in the line as a string and parse it by the delimiting spaces.

Are you going to be using C or C++ for this?
Thanks for your reply
I'm doing it in C
i tried that pgm and got it...
But the thing is i am getting the inputs in different lines....
I want to get that in a single line.....
I still have some specifications like checking for alphabets, if there are any operators other than * + - / , S and R
so need an idea for that....If possible reply me
if u want i can send u that part of code.....

Thanks in Advance
Jul 12 '08 #3
sicarie
4,677 Expert Mod 4TB
How are you currently getting the line?
Jul 14 '08 #4

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

Similar topics

3
by: Peter Olsen | last post by:
I want to define a class "point" as a subclass of complex. When I create an instance sample = point(<arglist>) I want "sample" to "be" a complex number, but with its real and imaginary...
34
by: Pmb | last post by:
I've been working on creating a Complex class for my own learning purpose (learn through doing etc.). I'm once again puzzled about something. I can't figure out how to overload the assignment...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
7
by: Alan Holloway | last post by:
Hi all, Firstly thanks for your golden insight on my earlier post re bitwise operations. I now have another question! I've just been reading the excellent Peter van der Linden excerpt ...
2
by: mkiger | last post by:
Hey guys, I've never seen a dataview.rowFilter example that was anything more than something like "id = 100" or something like that. I'm trying to right one (in asp.net/vb.net) that looks like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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,...

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.