Results 1 to 6 of 6
  1. #1
    Kody103's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    0

    C++ Path Directory

    I've been learning on how to make hacks with C++, but everytime I type in

    #include <iostream>

    int main()
    {
    cout << "Hello World!\n";
    return 0;
    }

    It gives me aleast two errors, and when i try to fix the errors, i end up getting more errors. I'm pretty sure its because of my Enviroment Options but i dont know how to get to it and change it. I'm using both Microsoft Visual C++ 2008 Express Edition and Bloodshed Dev-C++.

  2. #2
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical
    moving to the C++ section for actual help. i'll give you a 1 hour redirect.
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  3. #3
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Post your errors, we can't just magically retrieve them.

  4. #4
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    37
    My Mood
    Amused
    I see a error right away, you just got cout instead of std::cout, that ought to render a error. If you want to be lazy and only write cout, you need to add: using namespace std; (preferably before your main).

  5. #5
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75
    Code:
    #include <iostream>
    using namespace std;
    int main()
    {
    cout << "Hello World!\n"; << endl;
    return 0;
    }
    That should work.

  6. The Following User Says Thank You to Calebb For This Useful Post:

    jokerskull123 (01-21-2010)

  7. #6
    jokerskull123's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    illinois
    Posts
    68
    Reputation
    10
    Thanks
    4
    My Mood
    Doubtful
    Quote Originally Posted by Calebb View Post
    Code:
    #include <iostream>
    using namespace std;
    int main()
    {
    cout << "Hello World!\n"; << endl;
    return 0;
    }
    That should work.
    nice u helped him so i thanked you. for helping him. yes. using namespace std; and #include "stdafx.h" are very basic. that can explain ur first two errors.
    " I will reach the sky and more "




Similar Threads

  1. whats the path for cod4?
    By Rico760 in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 1
    Last Post: 08-19-2008, 01:56 PM
  2. Combat Arms Going On The Path Of Self-Destruction?
    By KakashiRock in forum Combat Arms Hacks & Cheats
    Replies: 25
    Last Post: 08-18-2008, 10:37 AM
  3. Some Hack for wolfteam for new path
    By elad123456 in forum WolfTeam General
    Replies: 6
    Last Post: 07-29-2008, 10:52 AM
  4. Replies: 0
    Last Post: 03-25-2008, 12:30 PM
  5. Following The Wrong Path
    By Haxors in forum General
    Replies: 44
    Last Post: 09-12-2007, 03:37 AM

Tags for this Thread