Thread: data structure problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    10

    fixed!

    It works with global variable, but i wanted to make it work with passigf the arguements..
    I fix it and work with arguements now.
    Just have to change

    countModified(car);
    and
    void listModified(warehouse ArrayOfStruct[]) ;

    Elysia: I tried to change it to
    warehouse car[2];

    but i get runtime error
    Stack around the variable 'car' was corrupted....

    Thanks for the help!
    Last edited by fukki; 10-03-2010 at 05:03 AM.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by fukki View Post
    Elysia: I tried to change it to
    warehouse car[2];

    but i get runtime error
    Stack around the variable 'car' was corrupted....

    Thanks for the help!
    It means you tried to use a car which didn't exist, eg: car[2] in your case.
    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. Problem Passing Structure Reference To Function
    By soj0mq3 in forum C Programming
    Replies: 9
    Last Post: 04-24-2010, 10:27 AM
  2. problem with data in allocated memory
    By supi in forum C Programming
    Replies: 3
    Last Post: 06-09-2008, 02:06 AM
  3. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  4. can't insert data into my B-Tree class structure
    By daluu in forum C++ Programming
    Replies: 0
    Last Post: 12-05-2002, 06:03 PM
  5. Dynamic Data Structure -- Which one is better?
    By Yin in forum C++ Programming
    Replies: 0
    Last Post: 04-10-2002, 11:38 PM