Thread: new programer help

  1. #1
    Registered User
    Join Date
    Apr 2008
    Location
    New Zealand
    Posts
    3

    new programer help

    im a bit new and when i try programing things a keep getting 'undeclared founction' and i try diffrent things but that normly makes more problems what could i do to fix this using Dev-c++

  2. #2
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    We need to know what functions you're using.
    Post your code?
    OS: Windows XP Home Edition SP3, Windows 7 Ultimate Beta Build 7000
    LANGUAGES: C++, VB6
    SKILL: Novice/Intermediate

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Undeclared function simple means you tried to call a function that doesn't exist, or the compiler don't know its existence.
    Check if you've included the proper header.
    Also check if you haven't misspelled the name (remember, it's CaSe SeNsItIvE).
    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.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Also remember that C++ has overloading of functions, so writing

    func( "hello world" );

    whilst only implementing
    void func ( int myVar );

    will also cause a certain amount of fun.
    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.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Location
    New Zealand
    Posts
    3
    using cout<<" "

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Post your whole program, not random syntactic elements from the language reference manual which make no sense at all.

    Perhaps you meant
    using std::cout;

    Or perhaps
    cout << " ";

    Or perhaps
    std::cout << " ";
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New Programer
    By maacor80 in forum C Programming
    Replies: 6
    Last Post: 09-12-2006, 02:23 AM
  2. Replies: 2
    Last Post: 10-23-2004, 03:46 AM
  3. Newbie C Programer Needs Help ASAP
    By Halo in forum C Programming
    Replies: 4
    Last Post: 02-21-2002, 01:52 AM