• Log in or sign up for an account here: https://www.sythe.org/login

nid help pls

PsychicFreak

Member
Joined
Jun 6, 2008
Sythe Gold
0
Messages
53
how do i make output name in using dev-c++ pls help :(
 
Include the header file:
Code:
#include <iostream>

and then use:
Code:
cout << "my name" << endl;
 
Include the header file:
Code:
#include <iostream>

and then use:
Code:
cout << "my name" << endl;

also with my IDE have to have another header file for it to compile, not sure if the OP'er needs it also

Code:
#include <cstdlib>

also maybe hes trying to make a program that asks your age and displays it? if so

Code:
#include <string>
string myname;
cout<<"What is your name"<<endl;
cout<<"Your name is"<<" "<< myname<<"."<<endl;
system("PAUSE");
    return EXIT_SUCCESS;
 
also maybe hes trying to make a program that asks your age and displays it? if so

Code:
#include <string>
string myname;
cout<<"What is your name"<<endl;
cout<<"Your name is"<<" "<< myname<<"."<<endl;
system("PAUSE");
    return EXIT_SUCCESS;

You'd of course need to include a cin >> myname; after the first cout... seeing as most peoples' names aren't a random string of numbers or characters from leftover uses of the variable 'myname.' Lol :P
 
Runescape Gamblingrunescape gambling
Back
Top