tj 0 Newbie Poster

<climits> is a new header file for me. we have only used <iostream> so far. my instructor refers to a std library occasionally; is this part of my software (i'm using microsoft visual c++ 6.0 intro edition)? Is that where I pull up headers to use?

I am going to keep playing with statements and headers and see what kind of monster I can create....lol

Thanks for your help guys!
PS
Out of curiosity...how long did it take for yall to learn C++? Did you learn it from a class or on your own?

tj 0 Newbie Poster

Hello everyone! My name is Tricia and I am too new to this site. I decided to switch careers (actually this will be my first career...I don't consider all the other jobs I had to be a career...lol). I have gone back to school (with the loving support from my husband) to get a BBA in CIS at TAMUK. I have no experience or background in this field....yet. But, I am anxious to learn and look forword to getting to know each one of yall a little better.

tj 0 Newbie Poster

That makes more sense than what I had down. Thank you!

I tried followed the program (after corrections) via paper and it seems to work but, when I run the program on the computer it is still not comming up with the correct results.

Here is the prog again with the corrections

# include <iostream>
using std::cout;    //program uses cout
using std::cin;     //program uses cin
using std::endl;    //program uses endl

//function main begins program execution
int main ( )
{
   int a;       //number of values in set inputed by user
   int b;       //number inputed by user
   int c;       //counter
   int max; //highest vaule
   int min; //lowest value

   //initialization phase
   max = b; 
   min = b; 

   //processing phase
   //get input from user
   cout << "Enter the number of values in the set: "; //prompt for input
   cin >> a;                      //read number from user

   for ( c=1; c <= a; c++ ) {

   cout << "Enter a number: ";                   //prompt for imput
   cin >> b;                       //read number from user

   if (b > max)
      max = b;

   if (b < min)
      min = b;
   }        
cout << "The maximum value is: " << max << "\n";
cout << "The minimum value is: " << min << " " <<endl;


return 0;   //indicates that program ended successfully

}   //end function main
tj 0 Newbie Poster

not sure what cpp is but I found this on the help site for xp about hibernating: how to manually put comp into hibernation & how to automatically put comp into hybernation. (disregard if this if this is not what you are looking for).

To manually put your computer into hibernation
You must be logged on as an administrator or a member of either the Administrators or Power Users group in order to complete this procedure. If your computer is connected to a network, network policy settings might also prevent you from completing this procedure.

Open Power Options in Control Panel.
Click the Hibernate tab, and then select the Enable hibernate support check box.
If the Hibernate tab is not available, your computer does not support this feature.

Click OK to close the Power Options dialog box.
Click Start, and then click Turn Off Computer. In the Turn Off Computer dialog box, click Hibernate.
Notes

To open Power Options, click Start, click Control Panel, click Performance and Maintenance, and then click Power Options.
When you put your computer into hibernation, everything in computer memory is saved on your hard disk. When you turn the computer back on, all programs and documents that were open when you turned the computer off are restored on the desktop.

To put your computer into hibernation, you must have a computer whose components and BIOS support this option.
Using Power Options in Control …

tj 0 Newbie Poster

Hello,
Thank you ....I will keep practicing.

I was getting so fustrated with myself because I seem to be making nothing but errors. I blame myself for not understanding the text. I guess the old saying "practice makes perfect" still holds true!

tj 0 Newbie Poster

Thank you! I have already started utilizing the site. Its great!
Thank you again


look this web site,it is a good tutoria for study C++.
http://www.cplusplus.com/doc/tutorial/

or you can reading "Essential C++" .

tj 0 Newbie Poster

Hello all....I can't seem to figure out why the min value won't display correctly. Could someone please critique my program with out actually giving me the code.

I am so happy that I finally got my loop to work! I've been working on this all evening. It is a great satisfaction when you get something to actually work!

Here is what I came up with:

# include <iostream>
using std::cout;    //program uses cout
using std::cin; //program uses cin
using std::endl;    //program uses endl

//function main begins program execution
int main ( )
{
     int a;     //number of values in set inputed by user
     int b;     //number inputed by user
     int c;     //counter
     int max=0; //highest vaule
     int min=0; //lowest value

//processing phase
//get input from user
cout << "Enter the number of values in the set: ";   //prompt for input
cin >> a;                                          //read number from user

for ( c=1; c <= a; c++ ) {

cout << "Enter a number: ";              //prompt for input
cin >> b;                      //read number from user

     if (b <= max)
        min = b;

     if (b > max)
       max = b;
}   

cout << "The maximum value is: " << max << " ";
cout << "The minimum value is: " << min << " " <<endl;

return 0;   //indicates that program ended successfully

}   //end function main
tj 0 Newbie Poster

Hello everyone I am knew to the site and new to programming. I am currently taking a C++ class. Everything in the text looks greek to me....Don't worry I am not going to ask how to do my hw.....Does anyone have any advise on the best way to learn and understand the material.

Thanks