473,407 Members | 2,306 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,407 software developers and data experts.

how do I convert the following statement to C?

The curveGR is a column of numbers
The numbers in the statement are values to match against the curve to give the name of the mineral in this case dolomite. Dolomite is to be shown in a column beside the CurveGR with heading Mineral

The statement is--
if curveGR=>11.5 and curveGR <17.5 then print "dolomite"
Aug 14 '10 #1
2 1434
weaknessforcats
9,208 Expert Mod 8TB
Maybe:

Expand|Select|Wrap|Line Numbers
  1. if (curveGR=>11.5 && curveGR <17.5)
  2. {
  3.    printf ("dolomite\n"); 
  4. }
I'll let you work out the print layout.
Aug 14 '10 #2
thank you i will try it.
jim
Aug 15 '10 #3

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

Similar topics

2
by: wenmang | last post by:
//a header file #define API_ABC //a CPP file class API_ABC Myclass; class Myclass{
0
by: Relaxin | last post by:
UPDATE BALANCE set TOTAL = TOTAL + ? WHERE ID = ? The "TOTAL = TOTAL + ?" fails with an error, but didn't fail using 7.2 (Peer Direct Windows port). If I change the statement to this: UPDATE...
4
by: Polly | last post by:
I had a macro that ran a parameter query and created and opened an Excel file with the system date as part of the file name, but I had to change the file name by hand. So I converted the macro to...
9
by: photomonkey | last post by:
I am having a problem with a relatively simple sql query, and was hoping that somebody could help me on this forum. Basicaly the situation is that I have two tables, a Vendors table (Vendors)...
3
by: ooze | last post by:
I have read the Programing language C 6.10.3.2 The # operator Constraints 1 Each # preprocessing token in the replacement list for a function-like macro shall be followed by a parameter as the...
16
by: NetPointer | last post by:
How to convert following in to VB.NET ??? specifically the constant...es_number. const int ES_NUMBER = 0x2000; protected override System.Windows.Forms.CreateParams CreateParams { get {...
1
by: hmartinez | last post by:
=Trim("1" & Right(Str(),2) & "0" & Left(Str(),1) & "0" & Mid(Str(),3,1)) don't know why it is returning an error
0
by: feeblemind | last post by:
Hi everyone, I am having problem/troubles with creating an sql inline statement for our application. How do I create a statement/query that selects list of servers with defined date ranges, but...
0
by: becksinthecity | last post by:
I'm trying to convert the below SQL into Oracle but am having some issues with the variable declarations. SQL commands declare @sqlstring varchar(500) select @sqlstring= (select ...
1
by: rparcha | last post by:
How to convert following MS access quey to SQL server statement ACCESS: Testx: IIf(Mid(dbo_ITMaster!City,1,2)="AB",IIf(Mid(dbo_ITMaster!Plan,1,3)<>"XYZ","M",IIf(dbo_ITMaster!Center="1111", "A",...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.