#include <object_name>
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world.. \n";
}
cin.get();
int main()
{
int age_here
cout << "please enter your age";
cin >> age_here;
cin.ignore(); //this causes to skip the user requiring to press enter...
cout << "You entered an age of" << age_here << "!\n";
cin.get();
return 0;
}
char string[number here];
cout<<"Enter your name.";
cin.getline (string, number here, '\n';
cout<<"Your name is: "<<string<<endl;
cin.get();
#include <object_name>
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world.. \n";
}
cin.get();
int main()
{
int age_here
cout << "please enter your age";
cin >> age_here;
cin.ignore(); //this causes to skip the user requiring to press enter...
cout << "You entered an age of" << age_here << "!\n";
cin.get();
return 0;
}
char string[number here];
cout<<"Enter your name.";
cin.getline (string, number here, '\n';
cout<<"Your name is: "<<string<<endl;
cin.get();
Copyright © 2024, NextGenUpdate.
All Rights Reserved.