A
Animatorboy
Ok I am making a very simple program (I am new to this so I dont know
much, its kinda a trial and error thing)
This is what I am trying to do:
-Get a name from the user (designated as variable 'name')
-Take that name and say this to them
"Well, Helllo 'name' welcome.
Then from there I dont know what I wanna do, but this is what I have
for code so far:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
//Welcome them.
cout << "Welcome to my first program.\n";
cout << "I hope I can do some preety neet things.\n";
//Get there name and intoduce myself.
int name;
cout << "So we can be more formal please tell me your name:";
cin >> name;
system ("PAUSE");
}
Now how would I make a reply.
Let's say that they enter the name Sam, How would I have it say:
Welcome Sam. I am Joe, nice to meet you!
Thanks alot for anyone that responds.
much, its kinda a trial and error thing)
This is what I am trying to do:
-Get a name from the user (designated as variable 'name')
-Take that name and say this to them
"Well, Helllo 'name' welcome.
Then from there I dont know what I wanna do, but this is what I have
for code so far:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
//Welcome them.
cout << "Welcome to my first program.\n";
cout << "I hope I can do some preety neet things.\n";
//Get there name and intoduce myself.
int name;
cout << "So we can be more formal please tell me your name:";
cin >> name;
system ("PAUSE");
}
Now how would I make a reply.
Let's say that they enter the name Sam, How would I have it say:
Welcome Sam. I am Joe, nice to meet you!
Thanks alot for anyone that responds.