-
June 9th, 2006, 12:51 AM
#1
Member
Displaying command prompt
I know this has to be a very dumb question, but I can't yet pull it off. I am writing a simple c++ program that is supposed to display the command prompt that has these three elements
1)the command number starting at 1
2)name of the machine
3)current working directory
The problem is...I don't know how to do that in a C++ program..
Ok I have that much figured out, now the problem is I want to pass a string value to
system(). When i try to do
system(s); when s is declared as string s="";
This gives me an error about converting string to char*....Any Ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|