Thread: Rate My In C++

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Gyurin's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    \Wrong Section
    Posts
    588
    Reputation
    -54
    Thanks
    59
    My Mood
    Innocent

    Rate My In C++

    Hello All
    Today It's My First Day In C++
    Please Rate Me

    Code:
    #include <iostream>
    #include <string>
    
    using namespace std; 
    int main()
    {
        int x;
        std::cin>>x;
        std::cout<<"Hello Dave\t\n";
        std::cout<<std::endl;
        string name;
    
    
        return 0;
    }

  2. #2
    skulhead's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    714
    Reputation
    0
    Thanks
    158
    My Mood
    Cheerful
    why std::?

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by skulhead View Post
    why std::?
    why not?
    Ah we-a blaze the fyah, make it bun dem!

  4. #4
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Nice start?

  5. #5
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Why a random unused string? =o

  6. #6
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    Quote Originally Posted by Brinuz View Post
    Why a random unused string? =o
    Quote Originally Posted by freedompeace View Post
    Nice start?
    Quote Originally Posted by skulhead View Post
    why std::?

    I will do some Lvl. 9 Magic, Divide by zero and....

    Voila...

    There posts have been combined into one.

    Code:
    Why are you declaring a string at the end if your not using it. You are using "namespace std", so you dont need "std::". Either way this is a good start.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  7. #7
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Awww... Void he said hi to you! =I

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  8. #8
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    For first day, not bad.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  9. #9
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by why06 View Post
    Awww... Void he said hi to you! =I
    My name is not Dave. |:

  10. #10
    Gyurin's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    \Wrong Section
    Posts
    588
    Reputation
    -54
    Thanks
    59
    My Mood
    Innocent
    Quote Originally Posted by Void View Post
    My name is not Dave. |:
    It's A Random Name ..

  11. #11
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Good for first day.

  12. #12
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by Void View Post
    My name is not Dave. |:
    Dave ... David, same thing.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  13. #13
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by aanthonyz View Post
    I will do some Lvl. 9 Magic, Divide by zero and....

    Voila...

    There posts have been combined into one.

    Code:
    Why are you declaring a string at the end if your not using it. You are using "namespace std", so you dont need "std::". Either way this is a good start.
    If you wanna be so nitpicky... You forgot the fact that he used '\t\n' and std::endl, which you "don't need".
    =/
    Last edited by freedompeace; 03-09-2011 at 12:26 PM.

  14. #14
    masterupload's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    why not just declare
    Code:
    using namespace std;
    will suggest using it if ur thinking on making a program that is going to output lots of msg other wise

    ur just gonna stick with

    Code:
    std::

  15. #15
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    Quote Originally Posted by freedompeace View Post


    If you wanna be so nitpicky... You forgot the fact that he used '\t\n' and std::endl, which you "don't need".
    =/
    Those werent my posts. I combined them from other people lol.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


Page 1 of 2 12 LastLast