Results 1 to 8 of 8
  1. #1
    Edsport's Avatar
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    10
    Thanks
    0

    Help with error please.

    I'm try the "Learn C++ in 21 days" (gotta start somewhere lol) and i'm trying to run this program that it teaches. No errors when i compile it but when i hit run there is a problem. Not sure if i missed something but i followed the the instructions. I'm using Borland Turbo C++.

    Here is a link to a pic i saved using the "print screen" button. It shows the error... Thanks...
    Send big files the easy way. Files too large for email attachments? No problem!

  2. #2
    Calster's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    3
    Next time upload the picture to a image hosting site so we dont have to download it.

    I think you may have made the wrong project type. Try creating an empty project and using your code. You may also need to add the line
    Code:
    using namespace std;
    under you're includes.
    ~ Hope i can help ~
    ~ Thank me if i do ~

  3. #3
    Edsport's Avatar
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    10
    Thanks
    0
    Thanks for replying. I managed to get a thing come up on the screen that is suppose to contain the text "Hello World" but only the thing popped up but no text. I tried with the code you suggest also...

  4. #4
    Edsport's Avatar
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    10
    Thanks
    0
    Not sure how to do it with empty project. Here is a pic of what i did. Can you give me step by step after i open borlands turbo?

    https://i155.photobucke*****m/albums/s...rt/Problem.jpg

  5. #5
    zeta2000's Avatar
    Join Date
    Dec 2008
    Posts
    1
    Reputation
    10
    Thanks
    0
    I recommend you to start learning C before you learn C++

  6. #6
    nukeist_'s Avatar
    Join Date
    Jul 2007
    Location
    in HELL
    Posts
    295
    Reputation
    12
    Thanks
    92
    2 problems

    One, You should put this code at the VERY TOP of each program so it imports the BASIC windows things
    [php]#include <windows.h>[/php]

    Also, COUT is only used in CONSOLE applications, and what you have there is a FORM.

    A console APP is like Command Prompt, in that you can input/output/prompt the user to get and process info. So, COUT just makes the 'command prompt' basically write something into the field, and nothing more. What you're trying to do is do the same thing in a form, and the compiler is getting confused, since it has nowhere to print the information, since there isn't a console.

    Instead of that, write:
    [php]ShowMessage("Hello, MPGH!");[/php]

    I am also a Borland user, I use Borland C++ 2007 Pro

    If you want to make a CONSOLE application just as the tutorial said, go to File>>New>>Other and then select C++ Builder Projects in the tree view on the left, then select CONSOLE APPLICATION.
    Last edited by nukeist_; 12-27-2008 at 09:29 PM.

  7. #7
    Felipeb18's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    6
    At the end of the function main(), put

    Code:
    char c;
    cin >> c;

  8. #8
    Edsport's Avatar
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    10
    Thanks
    0
    Sorrry it's been a while. Thanks all but i'm still confused. I can't get it to run. I chose console application.
    Is it possible you could give me exactly what i need to type so i copy and paste it in and see if that work?. I would appreciate it. I would like to get pass this...

Similar Threads

  1. [Help Request] I need Help with error
    By iKSAi in forum Alliance of Valiant Arms (AVA) Help
    Replies: 4
    Last Post: 06-28-2011, 01:26 AM
  2. Smart Close - Helps with Errors.
    By Obey in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 06-04-2009, 07:03 AM
  3. Help with Unbann please
    By killacrazy2 in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 08-16-2008, 08:04 PM
  4. A little Help With IE Please
    By chc18 in forum General
    Replies: 9
    Last Post: 10-24-2007, 02:53 PM
  5. Help With Coding Please
    By pbguy145 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 10-10-2007, 06:52 PM

Tags for this Thread