Adblock breaks this site

nid help pls

Discussion in 'Programming General' started by PsychicFreak, Jul 4, 2010.

  1. PsychicFreak

    PsychicFreak Member

    Joined:
    Jun 6, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0
    nid help pls

    how do i make output name in using dev-c++ pls help :(
     
  2. blindkilla

    blindkilla Guru
    $25 USD Donor New

    Joined:
    Jun 22, 2005
    Posts:
    1,896
    Referrals:
    0
    Sythe Gold:
    6
    Discord Unique ID:
    282000633404456960
    Discord Username:
    sogord
    nid help pls

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

    Barz Apprentice
    Banned

    Joined:
    May 24, 2010
    Posts:
    753
    Referrals:
    0
    Sythe Gold:
    0
    nid help pls

    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;
     
  4. ET Phone Home

    ET Phone Home Apprentice

    Joined:
    Sep 8, 2008
    Posts:
    663
    Referrals:
    1
    Sythe Gold:
    0
    nid help pls

    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
     
< [VB6] Installed Internet Explorer 7/8/9?, Visual Basic Now Broken? | Help a beginner out at c >


 
 
Adblock breaks this site