nid help pls

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

nid help pls
  1. Unread #1 - Jul 4, 2010 at 4:54 PM
  2. PsychicFreak
    Joined:
    Jun 6, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    PsychicFreak Member

    nid help pls

    how do i make output name in using dev-c++ pls help :(
     
  3. Unread #2 - Jul 5, 2010 at 2:56 AM
  4. blindkilla
    Joined:
    Jun 22, 2005
    Posts:
    1,896
    Referrals:
    0
    Sythe Gold:
    6
    Discord Unique ID:
    282000633404456960
    Discord Username:
    sogord

    blindkilla Guru
    $25 USD Donor New

    nid help pls

    Include the header file:
    Code:
    #include <iostream>
    and then use:
    Code:
    cout << "my name" << endl;
     
  5. Unread #3 - Jul 6, 2010 at 12:54 AM
  6. Barz
    Joined:
    May 24, 2010
    Posts:
    753
    Referrals:
    0
    Sythe Gold:
    0

    Barz Apprentice
    Banned

    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;
     
  7. Unread #4 - Jul 13, 2010 at 1:11 AM
  8. ET Phone Home
    Joined:
    Sep 8, 2008
    Posts:
    663
    Referrals:
    1
    Sythe Gold:
    0

    ET Phone Home Apprentice

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site