starting programming c+ with visual studio 6.0

This is a discussion on starting programming c+ with visual studio 6.0 within the C++ Programming forums, part of the General Programming Boards category; well i was reading here http://www.chapman-lab.uaf.edu/visualGuide.html how to begin. i created a workspace called CS201 project called hw1, and a ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    15

    starting programming c+ with visual studio 6.0

    well i was reading here
    http://www.chapman-lab.uaf.edu/visualGuide.html
    how to begin. i created a workspace called CS201
    project called hw1, and a source file called problem1_1.
    now do i have to use this names(cs2001 for workspace, hw1,hw2,hw3 for project and problem1_1 problem1_2... for source files)?.

    k but that isnt that importent, but i got some problems when i started to use.
    - first of all, after i close the visual studio, enter again and open the workspeace, when i try to run the programm (creat hw1.exe) so it says:

    --------------------Configuration: hw1 - Win32 Debug--------------------
    Linking...
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/hw1.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    hw1.exe - 2 error(s), 0 warning(s)


    what is that means?

    - why when i write a code it dissapear after a sec? how to keep it?.

    - when i type

    #include <iostream.h>

    int main (void)
    {
    cout << "Hello World";
    }


    it doesnt show me the "hello world". why?


    i'll glad to get help. thx

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    15
    ok. now i noticed sometimesi got the trouble that i cant save the hw1.exe even without closing and oppening the program again, and the code of hello world works but why is it only when i press on "excute program" and not in "go" ?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,338
    Maybe this will help with one of the problems
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Apr 2004
    Posts
    15
    actually i understood almost everything. just i dont know how to make my page not dissapear after a sec

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    23

    Kepping the screen

    I assume you are asking for keeping the console screen.
    IN case of VC++ when you run the code in debug mode unless you require any input from user the program will close itself (or terminate) after it's work is done. So if you want to see the output you can set up break points (read help in VC++) and go to each statement step by step.

    2) Another way to keep the scree is to run the exe file directly. You can see an exclamation mark symbol on the top icons click on that and you will be able to see the screen.In the end it will mention "Press any key to continue"

    3) One other way is just to give one more statment in the end
    cin<<user_input;
    unless you press any key the screen won't go

    Hope this helps

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. MS Visual Studio 6.0
    By overspray in forum Windows Programming
    Replies: 2
    Last Post: 07-26-2003, 06:56 PM
  4. Visual Studio 6.0 Help
    By L_I_Programmer in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2003, 09:35 PM
  5. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21