Total noob problem. QUICK!

This is a discussion on Total noob problem. QUICK! within the C Programming forums, part of the General Programming Boards category; See for yourself. Console outputs some number instead of 2. http://i55.tinypic.com/vr8v2x.jpg What am I doing wrong? Need help ASAP have ...

  1. #1
    DCN
    DCN is offline
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Total noob problem. QUICK!

    See for yourself.

    Console outputs some number instead of 2.

    http://i55.tinypic.com/vr8v2x.jpg


    What am I doing wrong? Need help ASAP have a lab soon!

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,258
    Print the number, not its address.

    By the way, you can post code here within [code][/code] bbcode tags.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    DCN
    DCN is offline
    Registered User
    Join Date
    Sep 2010
    Posts
    2
    Oh man, I feel retarded now.

    Thanks!

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,992
    Putting quick really won't help getting this solved any faster. If anything, it annoys people.
    Be out in good time with questions and let people answer them in time. That's the best way.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. don't get this problem??
    By limitmaster in forum C++ Programming
    Replies: 3
    Last Post: 09-11-2006, 03:37 AM
  2. What is the problem here? (noob question)
    By p_m63 in forum C++ Programming
    Replies: 9
    Last Post: 07-10-2006, 03:50 AM
  3. Noob problem - function call
    By Ultraman in forum C++ Programming
    Replies: 4
    Last Post: 05-20-2006, 03:28 AM
  4. Noob problem with "for" statement
    By Ultraman in forum C++ Programming
    Replies: 4
    Last Post: 05-15-2006, 10:26 PM
  5. total noob with a problem
    By dwainpipe in forum C++ Programming
    Replies: 5
    Last Post: 03-07-2006, 07:48 AM

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