Thread: itoa on Dev??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    itoa on Dev??

    I'm using Dev-C++ 4.9.9.2 and this seems weird to me. I have used itoa on the older version of Dev-C++ and it worked but now I try to use it on the new one and it says that it's undeclared, yet I looked into stdlib.h and I see it declared. Here is a sample program that won't work on my compiler:
    Code:
    #include <iostream>
    #include <cstdlib>
    
    int main()
    {
        int a=5;
        char buffer[256];
        itoa(a,buffer,10);  //Error right here, undeclared.....
        return 0;
    }
    Anybody know why this is happening?? I mean I used it before on the older Dev and it worked fine. I even looked in stdlib.h and it is in there. Any suggestions?
    Last edited by jmd15; 10-23-2005 at 07:48 AM.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem using itoa
    By g_p in forum C Programming
    Replies: 2
    Last Post: 05-03-2008, 06:38 AM
  2. Really Weird itoa Problem
    By Grantyt3 in forum C++ Programming
    Replies: 8
    Last Post: 12-20-2005, 12:44 AM
  3. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  4. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  5. Tutorial about Bloodshed Dev!
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 07:42 PM