"menu of that program"? Are you working with a GUI application? Then you may need to clean up othe resources than just calling exit().
Type: Posts; User: eMMeMM
"menu of that program"? Are you working with a GUI application? Then you may need to clean up othe resources than just calling exit().
When it comes to beginner books, I'd recommend C++ Primer (by Lippman), followed by The C++ Standard Library: A Tutorial and Reference (by Josuttis).
1. No int main().
2. Use of pre-standard and deprecated headers, etc.
Works very well. Infact, the original poster is using Dev-C++, which ships with mingw, the win32 port of gcc.
[ nitpick ]
You don't have to 'use' namespace std if you are using non-standard C++ headers.
[ /nitpick ]
From what I remember about Turbo C++ and its graphics, you need to copy those .BGI (Borland Graphics Interface) files to the same folder your .exe is present in. These files otherwise would be...
That is slightly incorrect.
if((Command[8] >= '1') && (Command[8] <= '9'))
would be what'd do the trick.
Also, if all digits ('0'-'9') are to be utilized, then std::isdigit (<cctype>)...
#include <iostream>
#include <sstream>
#include <string>
int main()
{
int myInt;
std::cout << "Enter an int: "; std::cin >> myInt;
std::stringstream ss; std::string s;
ss << myInt;
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingtrycatchblocktocatchexceptions.asp
(you have to be more specific you are facing a particular problem.)
My recommendations:
http://msdn.microsoft.com
http://www.gotdotnet.com
http://www.dotnetjunkies.com
He hasn't yet specified the exact 'problem' he faced.
In addition, I'd definitely recommend MSDN as an online reference.
look up the AllocConsole and related APIs for win32 (check at http://msdn.microsoft.com)
delay?
(is my machine faster than yours?) ;)
Take a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp and see if it helps..
Yes.
Hint #1: Attempt your homework yourself.
Hint #2: Get and Read a book.
Why not use a deque<yourstruct> instead of a deque<char> (which I suppose you are using)?
On the other hand, you could do thequeue.push_back(yourstructobj.charmember); if you are using...