Thread: How do you write to a document

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    10

    How do you write to a document

    I know HTML and javascript... besides that ive just started today with tutorials and i have no clue what im doing. How do i just make a simple program that says hello or something???

  2. #2
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Make a hello world program???

    Code:
    #include <iostream>
    
    int main()
    {
         std::cout << "Hello World!" << std::endl;
    }
    Last edited by abrege; 01-27-2003 at 06:49 PM.
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    it's std::endl if you don't include the using namespace std;

  4. #4
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Oops
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    10
    How would i use a compiler to do this, im an idiot please help.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    okay, d/l a compiler, there are a bunch of free ones, like mingw and borland bcc55.

    www.mingw.org www.borland.com

    you could also d/l bloodshed dev-c++ which is the easiest to d/l, it comes with mingw.

    www.bloodshed.net

    dev-c++ includes an IDE, so it makes it easier this way.

    you could also d/l Quincy from:

    www.alstevens.com/quincy.html

    You could use both mingw and borland with Quincy 2000, but only mingw with Quincy 2002.

    once you have an IDE, and compiler, you will be well on your way.

    - alpha

    P.S. read the installation instructions with both compilers if you decide to d/l Quincy or another IDE. D/Ling bloodshed's, just read their site. The instructions are very helpful.

  7. #7
    Registered User
    Join Date
    Jan 2003
    Posts
    10
    I have dev-c++ thats what ive been using but i still dont get it and im very very confused.

    Edit: the help file was so worthless i almost died.
    Last edited by Tempest1; 01-27-2003 at 07:21 PM.

  8. #8
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    what version of dev-c++?

  9. #9
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330

    ~

    Tempest1: Read a tutorial.
    "He who makes a beast of himself, gets rid of the pain of being a man." Dr. Johnson

  10. #10
    Registered User
    Join Date
    Jan 2003
    Posts
    10
    I have read tutorials... they dont help. I think its dev-c++ 4.9.7.0

  11. #11
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    go to bloodshed's website, and read how to use the program. Anyways, just write the code, save the file, and then click Execute, Compile. after compiled, run it.

  12. #12
    Registered User
    Join Date
    Jan 2003
    Posts
    10
    AHHH This is driving me crazy.. i go tabout 72 errors when i tried that.

  13. #13
    Registered User
    Join Date
    Jan 2003
    Posts
    14

    Hello World

    Code:
    #include <iostream.h> // for input-output
    
    int main()
    {
        cout << "\nHello World!" << endl;
        
    
        return 0;
    }
    When i went from learning html and javascript to c++ and java it was a little tricky too. Problem with programming is you can't make small mistakes. Eventually you will learn what the errors mean and you will be able to fix them. Only way to learn is to stick with it. Good luck, post the errors if that doesn't work.
    ~fin

  14. #14
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>Problem with programming is you can't make small mistakes.
    Especially with C++ where there are no small mistakes, just big ones :-) When I started with C++ I was shocked with how much the compiler complained! It's disheartening.
    *Cela*

  15. #15
    Registered User
    Join Date
    Jan 2003
    Posts
    10
    Still doesnt work lol, this sucks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling a script that can write information to a word document
    By superflygizmo in forum Game Programming
    Replies: 6
    Last Post: 02-14-2006, 05:27 PM
  2. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  3. Document Class and Dialog Windows :: MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 12-01-2002, 12:27 AM
  4. MultiDocument And MultView (and per document) :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 04-09-2002, 09:00 AM
  5. write in c
    By PutoAmo in forum C Programming
    Replies: 6
    Last Post: 04-03-2002, 07:53 PM