Thread: printf()?

  1. #1
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    printf()?

    hey im new at c++ programming and i know cout, but i was wondering how and why you would use printf()

    thanks for the help
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  2. #2
    Unregistered
    Guest
    printf should never be used unless you do C programming instead of C++ programming.

    The printf command is as I said a C command and is used as following

    ex.

    #include <stdio.h>

    int main()
    {
    printf("Message");
    return 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making it portable.....?
    By ShadeS_07 in forum C Programming
    Replies: 11
    Last Post: 12-24-2008, 09:38 AM
  2. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM
  3. segmentation fault upon reload
    By yabud in forum C Programming
    Replies: 8
    Last Post: 12-18-2006, 06:54 AM
  4. Simple C question: user input to repeat a loop
    By evernaut in forum C Programming
    Replies: 2
    Last Post: 11-18-2006, 09:23 AM
  5. Drawing tables in C
    By stanoman in forum C Programming
    Replies: 5
    Last Post: 10-09-2003, 10:14 AM