Beginner's Questions

This is a discussion on Beginner's Questions within the C++ Programming forums, part of the General Programming Boards category; Hey, everybody, I'm a beginning C++ programmer, and I've started out using the Code::Blocks editing environment with the Microsoft Visual ...

  1. #1
    bjl
    bjl is offline
    Registered User
    Join Date
    Jan 2008
    Posts
    11

    Beginner's Questions

    Hey, everybody, I'm a beginning C++ programmer, and I've started out using the Code::Blocks editing environment with the Microsoft Visual C++ compiler. I've had a couple of problems, the first one being that pieces of code such as "/n" and "/t" do not work. Also, a lot of times when I'm trying to compile source code for games on my computer I get a lot of error messages such as "directory does not exist", etc. Most of these error messages occur in the preprocessors. Any help would be greatly appreciated.

    Thanks

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    It's "\n" and "\t". Note the direction of the slash.

    3rd party source code sometimes needs a bit special build instructions, and often works only with the environment of the original developers, because they didn't bother to make it work in others. Such problems can be overcome, but doing so requires some programming knowledge, so you'd be better off just learning C++ from tutorials for now.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    bjl
    bjl is offline
    Registered User
    Join Date
    Jan 2008
    Posts
    11
    All right, will do. Thanks a bunch. Also, I feel kind of dumb about the \n things now. I've been using the cout >> endl the entire time
    Last edited by bjl; 01-28-2008 at 07:07 PM.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    cout >> endl
    cout << endl? Note the direction of the angle brackets . . .
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    bjl
    bjl is offline
    Registered User
    Join Date
    Jan 2008
    Posts
    11
    cout << endl

    happy now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A few beginner's questions
    By Megidolaon in forum C++ Programming
    Replies: 33
    Last Post: 10-24-2008, 09:21 AM
  3. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. Float/double compiler error and TONS of questions!
    By musayume in forum C Programming
    Replies: 5
    Last Post: 10-24-2001, 01:40 PM

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