Thread: Struct errors...

  1. #1

    Post Struct errors...

    At least, that's my main problem. I'm getting a few errors, and while I don't remember what they were exactly, I'm pretty sure most have to do with the struct. Aside from that, I know I need to use atoi, only my teacher wasn't overly clear on how exactly to use it...So, I'm pretty stuck on this. If anyone could please help me out with this, I'd really appreciate it.

    Here's the project spec:


    And the source code(so far):


  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    int MyVar1 = atoi("123");
    char* MyString = "456";
    int MyVar2 = atoi(MyString);

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Saying you get errors and not providing a list of the errors is a waste of time. Please be more percise next time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linked list question
    By brb9412 in forum C Programming
    Replies: 16
    Last Post: 01-04-2009, 04:05 PM
  2. Replies: 1
    Last Post: 12-03-2008, 03:10 AM
  3. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Search Engine - Binary Search Tree
    By Gecko2099 in forum C Programming
    Replies: 9
    Last Post: 04-17-2005, 02:56 PM