- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Networking, Programming
- PC Specs
- Old 2006 Acer Laptop
3 Posted Topics
Hi all. I am new in C language. I am learning to program by using C for my first step. Now I am reading a chapter about looping (while, for, do.. while, nested loop). In my exercise book, the question is about to: Using nested loop to print out this … | |
Here's the C++ code i did for myself: [CODE] #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include <string> #include <cctype> void terminate() { const unsigned short SEC = 5; // constant for 5 times std::cout << "\nProgram will close in,\n"; // print for (int c=SEC; c>=0; c--) { if … | |
Hello, I'm a beginner in these to programming language. Here I want to know how to display the actual value of variable of enum holds. Like this in C++: [code] #include <iostream> #include <conio.h> using namespace std; int main(void) { enum Difficulty { Low = 1, Medium, High }; Difficulty … |
The End.