| | |
table value
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 101
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
// file temperature table.cpp //conversion of celsius to fahrenheit temperature # include <iostream> # include <inomanip> using namespace std; int main() { const int CBEGIN = 10; const int CLIMIT = -5; const int CSTEP = 5; float fahrenheit; cout << " Celsius " << " Fahrenheit " << endl; //display the table for (int celsius = CBEGIN; celsius >= CLIMIT; celsius -= CSTEP) { fahrenheit = 1.8 * celsius + 32.0; cout << setw(5) << celsius << setw(15) << fahrenheit << endl; } return 0; }
thhe program ssaid that the setw(5) is undeclared
can u correct for me and explain more for me the function of setw in the simple way
![]() |
Similar Threads
- Adding a record from a table to another (VB.NET)
- How can i deledet and update from table ??????? (PHP)
- Copying table from one mdb to another (ASP)
- Need help with HTMl Table echoing? (PHP)
- Table of Contents Script (Java)
Other Threads in the C++ Forum
- Previous Thread: Implementaion of stack in c++
- Next Thread: How to optimize this code further for prime numbers
| Thread Tools | Search this Thread |
api array arrays based binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






