Well, I'm starting to get into C++ and well.. The only commands I know are simple I\O commands, so, I've programmed in C and if you know C you know that in windows.h you can do say System(""); to execute somthing in the command prompt.
The thing is, I don't know what's what.
For example..
Say there's a command like
System("");
Well, how do I know and access the paremetters of this command?
Also, I'm using Visual C++ 6.0.
Petrock6 0 Newbie Poster
Recommended Answers
Jump to Post>if you know C you know that in windows.h you can do say
>System(""); to execute somthing in the command prompt.
Actually, the system function (no caps) is declared in stdlib.h, and it's not restricted to Windows. However, the string you pass represents a command string that you would use …
Jump to Post>How do I know that I'm supposed to put cout << ""? Is that clear?
Not really. I mean, you know you're supposed to putcout<<"";
by learning C++. Likewise, any API or library you want to use, you read the documentation, sample code (or existing code), and educational material …
All 6 Replies
Narue 5,707 Bad Cop Team Colleague
Petrock6 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
Narue 5,707 Bad Cop Team Colleague
Petrock6 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.