Thread: Beginner's Questions

  1. #1
    Registered User
    Join Date
    Jan 2008

    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.


  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    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!

    "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
    Registered User
    Join Date
    Jan 2008
    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 08:07 PM.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    cout >> endl
    cout << endl? Note the direction of the angle brackets . . .

    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:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Jan 2008
    cout << endl

    happy now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 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
    Replies: 23
    Last Post: 12-26-2004, 09: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