Hi, does anyone know or has any idea how to import values from a table and assign it to a variable?
For example:

Ambient Temperatures| 30 40 50
Corresponding factors |0.9 0.7 0.6
(note the table is in excel format and much larger)

double At,Ca;

cout<<"Enter Value for Ambient temperature";
cin>>"At;

if i enter At as 30 then Cg would correspond to the value of 0.9 or if it is 40 then Ca would correspond to the value of 0.7 anyone has a idea? It would be great if you could offer some help

If it is a csv file, I believe you can read it just like a text file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.