I know only Basic and I have recently made a nice programm that makes a story from info that you give to it. Problem is that my friends like it and I have downloaded a trial version of DarkBASIC programm, wich actually uses C++ and Pascal, because it can easily make an .exe file but I don't know how to set an answer with a name.
Ex. (in QBasic) :
Print "Hello, whats your name?"
set name$
Print "Hello, " name$.
Please help. The trial is active only for 25 days.
How to set something in Pascal and C++?
free versions of pascal and c++
http://www.bloodshed.net/devpascal.html
http://www.bloodshed.net/devcpp.html
in c++:
#include %26lt;iostream%26gt;
#include %26lt;string%26gt;
int main()
{
using namespace std;
string name;
cout %26lt;%26lt; "Hello, what's your name?";
cin %26gt;%26gt; name;
cout %26lt;%26lt; "Hello " %26lt;%26lt; name %26lt;%26lt; endl;
system("pause");
return 0;
}
elephant ear
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment